public function __construct() { if (Request::isAjax()) { Render::setReply(['reply' => false, 'message' => self::$_content]); } else { Layout::renderMenu(false); Layout::renderFooter(false); Layout::loadContent(self::$_content); if (!Layout::haveContent()) { Layout::putContent(self::$_content); } } }