loadJQuery(); $this->addJS(Script::CORE); $this->addJS(Script::ACCOUNT); $this->loadBootstrap(); $this->loadFontawesome(); } protected function initMetas() { return array( array('name' => 'viewport', 'content' => 'width=device-width, initial-scale=1.0'), array('name' => 'format-detection', 'content' => 'telephone=yes'), array('charset' => 'utf-8'), array("http-equiv" => 'expires', 'content' => '0'), array("name" => 'robots', 'content' => 'noarchive'), ); } protected function initRawFields() { return array(); } protected function initTitle() { return "Account"; } } class AccountBody extends SimpleBody { public function __construct($document) { parent::__construct($document); } protected function getContent() { $view = $this->getDocument()->getView(); if ($view === null) { return "The page you does not exist or is no longer valid. Return to start page"; } return $view->getCode(); } } }