Skip to content

Instantly share code, notes, and snippets.

@ferfabricio
Created August 18, 2015 13:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ferfabricio/fada1acca77282aa4c58 to your computer and use it in GitHub Desktop.
Save ferfabricio/fada1acca77282aa4c58 to your computer and use it in GitHub Desktop.
<?php
use Phalcon\Mvc\Controller;
use Phalcon\Mvc\View\Simple as SimpleView;
class TestController extends Controller
{
public functino testAction() {
$this->view = new SimpleView();
$this->view->setViewsDir('/your/view/directory');
echo $this->view->render('yourviewfile');
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment