 | News Feed |
 | Jobs Feed |
Sections
|
| feed this: |  |
DevShed: Working with the Active Record Class in Code Igniter
by Chris Cornutt September 17, 2008 @ 13:44:59
DevShed has posted the next part of their series focusing on the CodeIgniter framework. This new tutorial looks at the Active Record class that sits at the heart of the framework.
Welcome to the sixth installment of the series entitled "Introducing the Code Igniter PHP Framework." By using a hands-on approach, this series of articles walks you through the main features that come packaged with this friendly yet powerful development software that lets you quickly build robust PHP applications.
They show a simple example of how to pull information out of your database, how to get a little more complex with conditional select statements and how to use a where to narrow down your results.
voice your opinion now!
codeigniter framework activerecord tutorial series conditional
Bill Karwin's Blog: ActiveRecord does not suck
by Chris Cornutt May 29, 2008 @ 17:07:50
Bill Karwin (formerly of Zend and the Zend Framework project) has a new post to his blog defending one of the more abused (both in code and in opinions) design patterns, ActiveRecord:
ActiveRecord is fine. It is a tool that does just what it's designed to do. What sucks is when developers try to make it do other things than what it's intended to do.
He cites his work with the Zend_Db component and how Mike Seth gets it right when he says that the pattern shouldn't be "ActiveRecord-View-Controller". He compares the ideas of a true Model in an MVC application with the incorrect ideas that many developers seem to hold.
A Model is a class that provides a logical component of your application domain. Models are products of OO design, which is a development activity I see get very little attention in the developer blogosphere or the developer tools market.
Models can reference one or many (or no) database tables and are not where the hard work is being done. That's saved for the ORM (or ActiveRecord) to do.
voice your opinion now!
activerecord designpattern modelviewcontroller mvc model orm
ActsAsFlinn Blog: PHP and ActiveRecord
by Chris Cornutt August 09, 2007 @ 10:12:00
On the ActsAsFlinn blog, a new article's been posted talking about ActiveRecord and some of the problems with implementing it in PHP.
I'm starting a new job soon and I'll be working primarily with PHP. Since I've been a rubyist for the last 2 years I'm looking at PHP from a Rails development perspective. Before working exclusively with Ruby I hung onto to PHP (because of the project I was working on) by porting Rails bits to PHP. I eventually gave up on porting Rails to PHP after my project's funding was cut.
His experience found that there were a few things that caused the problem in the transition between Ruby and PHP like "in Ruby everything is an object" and some Reflection differences between the two languages. He has a little sample object he's created the code for, but it still doesn't work quite right.
In the end, he points out that the Row Data Gateway is a much easier method to get working in PHP (complete with sample code).
voice your opinion now!
activerecord designpattern ruby port database activerecord designpattern ruby port database
Chris Shiflett's Blog: CakePHP Visits New York
by Chris Cornutt September 27, 2006 @ 16:09:54
In his latest blog post, Chris Shiflett talks about CakePHP "visiting" New York at this month's NYPHP meeting as well of some of his impressions on the framework.
Last night at the monthly NYPHP meeting, Nate Abele presented an introduction to CakePHP, a web application framework. The New York subway wasn't cooperating with my schedule, and due to a problem affecting all uptown 4/5 trains, I was 30 minutes late to the talk.
Here are some of my notes from the talk as well as the conversation we had over dinner and drinks later.
He wonders about if the fact that Cake supports PHP4 hinders it, the scaffolding available, Ajax functionality, and, of course, some of the security features of the framework. He notes that "as long as you stick to the Cake way of generating output, it handles the escaping for you" - definitely a plus.
voice your opinion now!
cakephp framework php4 support activerecord ajax scaffolding security cakephp framework php4 support activerecord ajax scaffolding security
|
Community Events
Don't see your event here? Let us know!
|