![]() |
Fatal error: Call to undefined method Cedarevaluation::where_user() - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23) +--- Thread: Fatal error: Call to undefined method Cedarevaluation::where_user() (/showthread.php?tid=24093) |
Fatal error: Call to undefined method Cedarevaluation::where_user() - El Forum - 10-30-2009 [eluser]sooner[/eluser] //this is my controller <?php class Cedarevaluation extends Controller { function Cedarevaluation() { parent::Controller(); $this->output->enable_profiler(FALSE); $this->load->helper(array('form', 'url')); } function index() { echo "test"; } function evaluation($id) {$a = new Cedarevaluation(); $a->where_user('id',$id)->get();//error is here }}?> Fatal error: Call to undefined method Cedarevaluation::where_user() - El Forum - 10-30-2009 [eluser]pistolPete[/eluser] Please use [ code ] tags! Your controller does not have a function called "where_user()", that's what the error message also tells you. You probably want to create a model or access the database directly. Fatal error: Call to undefined method Cedarevaluation::where_user() - El Forum - 10-30-2009 [eluser]sooner[/eluser] Thx i changed it to where it works. |