<?php /** * Module controller in the Mymodule module */ namespace Template; class Controller_Template extends \Controller{ /** * The index action. * * @access public * @return void */ public function action_index() { $this->response->body = View::factory("stripes/index"); //$this->render('stripes/index'); } public function action_hello() { $this->response->body("hello"); } // put your controller code here, just like for an application controller }
<?php /** * Template Module Controller. * * A module to manage templates * * @extends Controller */ namespace Template; class Controller_Template extends \Controller /** * The index action. * * @access public * @return void */ public function action_index() $this->response->body = [u]\View[/u]::factory("stripes/index"); } public function action_hello() $this->response->body("hello"); } } /* End of file welcome.php */
It looks like you're new here. If you want to get involved, click one of these buttons!