Undefined variable

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

$tbluser = TblUser::findFirstByuserid($userid); $this->view->setVar("email", $tbluser->email);

and in tbl_user/edit.volt I write like:

{{ tbl_user.email }}

but it gives error

Undefined variable: tbl_user


7.0k

You send to view variable by name email, and volt use this name ```php $this->view->setVar("email", $tbl_user->email);

...

{{ email }} ```