October 20th, 2007
Popel, D. (2007) Learning PHP Data Objects, Packt Pub
Commendably the book keeps a tight focus, providing the minimum context in which to show PDO features: in this case a basic library program with simple PHP methods providing HTML. However in a later chapter it provides a useful example that shows the advantage of the model, […]
October 6th, 2007
In the Code Igniter Models documentation it details the Active Record insert, which builds the insert around your class variables, allowing you to do this:
$this->title = $_POST[’title’];
$this->content = $_POST[’content’];
$this->date = time();
$this->db->insert(’entries’, $this);
However there’s a bug: it doesn’t distinguish against private class variables, leaving you with errors like this:
error, no fields […]
October 1st, 2007
After a month of use, I’m still a big fan of Code Igniter; it’s a lightweight PHP framework that hasn’t got in my way, which is a big factor regarding how long things last. I particular like its flexibility regarding handling URLs, as it doesn’t force you to use its default segment-based approach, providing direct […]