Kohana is an elegant HMVC PHP5 framework that provides a rich set of components for building web applications. These slides describe some useful features in Kohana.
in views echo View::factory('user/login')->bind('user', $user); Loading view in controller: public function action_about() { $this->response->body(View::factory('pages/about')); }
->filter(function($route, $params, $request) { if ($request->method() !== HTTP_Request::POST) { return FALSE; // This route only matches POST requests } });