In this screencast I cover the installation of CI2 and PHP ActiveRecord. We install PHP ActiveRecord using Sparks, create a users table, and then test ActiveRecord.
Be sure to choose HD.
Find more screencasts and articles on web development and design at http://heybigname.com
@lordyrich Make sure that your db has a 'username' field.
ShawnMcCool 4 months ago
dam mine doesnt work, the array at 0:81 comes up but the fields such as id, username dont appear. The array is empty. When I do the foreach loop I get
"Fatal error: Uncaught exception 'ActiveRecord\UndefinedPropertyException' with message 'Undefined property: Users->username in C:\..."
Gone back but still cant work out what i missed.
lordyrich 4 months ago