Welcome Guest, Not a member yet? Register   Sign In
Fatal error: Call to undefined method Cedarevaluation::where_user()
#1

[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
}}?>
#2

[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.
#3

[eluser]sooner[/eluser]
Thx i changed it to where it works.




Theme © iAndrew 2016 - Forum software by © MyBB