2
// In example 2, we load the view without using the Smarty plugin, just a view in good old PHP.
4
class exampleTwo extends PHPDS_controller
7
* We always start by overriding the execute method for the controller.
8
* @author Jason Schoeman
10
public function execute()
12
// Lets do it without Smarty.
13
$title = "Some Title";
14
$some_text = "This is some text to show that you can have a view in PHP.";
17
// View will be looking for in plugins/ExamplePlugin/views/example/example-two.tpl.php notice its related to controller.
18
include_once $this->template->getTpl();