function display() { $this->setContents('_TITLE_', 'Welcome to my site'); $this->setContents(PAGE_DEFAULT_REGION, '<h1>Welcome friend</h1>'); $this->appendContents(PAGE_DEFAULT_REGION, '<a href="' . SAUrl::Url('nested/index', array(APPLICATION_EVENTS_VAR_NAME => 'update')) . '">Click me</a>'); parent::display(); }
function display() { $this->_header->sendStatusCode('404'); $this->setContents('_TITLE_', '404 - Page not found'); $this->setContents(PAGE_DEFAULT_REGION, '<h1 style="color: red">Page not found</h1>'); parent::display(); }
function display() { ob_start(); phpinfo(); $contents = ob_get_contents(); ob_end_clean(); $this->setContents(CONTENT_FOR_LAYOUT, $contents); $this->setTemplate(null); parent::display(); }