Mvc\View::pick

public pick (mixed $renderView)

Choose a different view to render instead of last-controller/last-action

use Phalcon\Mvc\Controller;

 class ProductsController extends Controller
 {

    public function saveAction()
    {

         // Do some save stuff...

         // Then show the list view
         $this->view->pick("products/list");
    }
 }
doc_Phalcon
2016-10-16 09:55:47
Comments
Leave a Comment

Please login to continue.