/** * The index handler. * * @access public * @return string The HTML code. */ public function index() { $Page = new Content_Page(); if (!Request::get('t')) { $_GET['t'] = 'root'; } $this->getView()->set('Pages', $Page->findList(array('ParentId = 0'), 'Position asc')); return $this->getView()->render(); }