Hi,
Yesterday I wrote about the new CodeIgniter book: CodeIgniter 1.7 Professional Development By Adam Griffiths.
Packt Publishing extracted an article from the book, “Database Interaction with Codeigniter 1.7” which can be very helpful for beginners. You’ll read about the Database class, ActiveRecord and Database Forge class that gives you few methods to perform different [not so casual] operations in your database.
I really recommend you to not use ActiveRecord if you’re not familiar with SQL. If you’ll use ActiveRecord from day 1, you wouldn’t really know whats happening under the hood. My opinion is the same about PHP frameworks, I don’t think its good idea to start working with a framework before you know the language good enough.
Although not using ActiveRecord you won’t enjoy the security of injections-free queries and multiple DB types support – but in the long run its better for you as web developer.
Moreover, consider extending the native Model and writing simple CRUD [Create/Read/Update/Delete] methods that can help you working faster and better. I promise I’ll write about it more, I wrote for my self a quite powerful MY_Model class.
This is it for now,
If you already got the book, share your thoughts with me.
