Welcome Guest, Not a member yet? Register   Sign In
Problem using ActiveRecord Class from Wiki
#3

[eluser]xwero[/eluser]
the load->model method doesn't return an object so you your news variable can't be used to query the database.
I don't know why it works on your localhost but it's a bad construction because CI appends an object to the controller with the name news because the model is named news.

The best solution is to create a method in your news model that gets a part of the table.


Messages In This Thread
Problem using ActiveRecord Class from Wiki - by El Forum - 02-11-2009, 02:42 AM
Problem using ActiveRecord Class from Wiki - by El Forum - 02-11-2009, 03:22 AM
Problem using ActiveRecord Class from Wiki - by El Forum - 02-11-2009, 03:51 AM
Problem using ActiveRecord Class from Wiki - by El Forum - 02-11-2009, 04:00 AM
Problem using ActiveRecord Class from Wiki - by El Forum - 02-11-2009, 04:48 AM
Problem using ActiveRecord Class from Wiki - by El Forum - 02-11-2009, 05:16 AM
Problem using ActiveRecord Class from Wiki - by El Forum - 02-11-2009, 02:21 PM
Problem using ActiveRecord Class from Wiki - by El Forum - 02-11-2009, 02:29 PM
Problem using ActiveRecord Class from Wiki - by El Forum - 02-11-2009, 02:33 PM
Problem using ActiveRecord Class from Wiki - by El Forum - 02-12-2009, 01:34 AM



Theme © iAndrew 2016 - Forum software by © MyBB