Undefined variable

I am new to phalcon framework. I have set the variable email in my TblUserController's edit action as

$tbl_user = TblUser::findFirstByuser_id($user_id); $this->view->setVar("email", $tbl_user->email);

and in tbl_user/edit.volt I write like:

{{ tbl_user.email }}

but it gives error

Undefined variable: tbl_user


7.5k

You send to view variable by name email, and volt use this name

$this->view->setVar("email", $tbl_user->email);

...

{{ email }}