Zend Framework

class IndexController extends Zend_Controller_Action {
 public function indexAction() {
  $this->render();
  //views/script/index/index.phtml
 }
}

Kohana

class Site_Controller extends Controller {
 public function index() {
  View::factory('template')->render(true);
  //views/template.php
 }
}

CodeIgniter

class Site extends Controller {
 function index() {
  $this->load->view('site.php');
  //views/site.php
 }
}
Anúncios