Solved thread

This post is marked as solved. If you think the information contained on this thread must be part of the official documentation, please contribute submitting a pull request to its repository.

Print variable to view not using Volt

Hello, I'm beginning with Phalcon and I don't know how to set a variable in the controller so I it can be printed in the view. I'm not using volt.

I'm using this code in the controller:

$this->view->UsrUsername = $user->UsrUsername;

but I don't know how to printed. Thanks.


in view: <?php echo $UsrUsername ?>


Thanks :D