Welcome Guest, Not a member yet? Register   Sign In
Message: Undefined variable: x
#2

(This post was last modified: 09-15-2020, 10:42 AM by Omar Crespo.)

Hello, in your controller, call the model in lowercase: $this->load->model('procedure');

In the view use the function empty($var).
Code:
if(!empty($recipes){
all your code
} else{
echo "Error, recipes var does not exist";
}
Reply


Messages In This Thread
Message: Undefined variable: x - by lapz_anry123 - 09-14-2020, 05:40 AM
RE: Message: Undefined variable: x - by Omar Crespo - 09-15-2020, 09:29 AM



Theme © iAndrew 2016 - Forum software by © MyBB