Đăng nhập | Đăng ký
  • Home
  • Thế giới trẻ
  • Đoàn hội
    • Bảo vệ nền tảng tư tưởng của Đảng
    • Trung ương Đoàn
    • Trung ương Hội LHTN Việt Nam
    • Hội thành viên
    • Thông tin cơ sở
    • Bảo vệ môi trường
    • Đại hội Hội LHTN Việt Nam
    • Chia sẻ cùng thầy cô
    • Xây dựng Gia đình trẻ hạnh phúc
    • Tháng Thanh niên
    • Thanh niên tình nguyện hè
  • Tri thức trẻ
    • Giáo dục
    • Khoa học
    • Công nghệ
  • Góc nhìn trẻ
    • Tôi đi
    • Tôi nghĩ
    • Tôi viết
  • Khởi nghiệp
    • Lập thân - Lập nghiệp
    • Khởi nghiệp sáng tạo
    • Thông tin khởi nghiệp
  • Kỹ năng
    • Kỹ năng Đoàn Hội
    • Kỹ năng sống
  • Gương thanh niên
    • Cán bộ Đoàn Hội
    • Sống đẹp
    • Gương thanh niên làm kinh tế giỏi
  • Sáng tạo trẻ
    • Mô hình
    • Sáng kiến

Vận rủi của Howard Stringer

  • 11/12/2016

(CTG) Đã 6 năm trôi qua, Howard Stringer vẫn chưa hoàn thành sứ mạng vực dậy Sony. Nhiều người xem ông là kẻ thất bại, nhưng thực tế không hẳn vậy.

  • Share Post
  • Share on Facebook
  • Share on Twitter
  • Share Post
  • Share on Facebook
  • Share on Twitter
  • Tin khác của thành viên này

Tin cùng chuyên mục

Nữ cử nhân Sinh học 'đánh thức' vùng dược liệu, làm giàu ở đất Cố đô

Nữ cử nhân Sinh học 'đánh thức' vùng dược liệu, làm giàu ở đất Cố đô

  • 2025-12-12 14:26:45
Nữ sinh Tày sáng tạo hệ thống cảnh báo lũ quét tích hợp AI

Nữ sinh Tày sáng tạo hệ thống cảnh báo lũ quét tích hợp AI

  • 2025-12-10 10:12:02
Kỹ sư cơ khí bỏ việc lương cao, về quê nuôi 'con đặc sản' thu bộn tiền

Kỹ sư cơ khí bỏ việc lương cao, về quê nuôi 'con đặc sản' thu bộn tiền

  • 2025-12-09 09:25:35
Cô gái vượt 'chướng ngại vật' giành học bổng tiến sĩ tại Hàn Quốc

Cô gái vượt 'chướng ngại vật' giành học bổng tiến sĩ tại Hàn Quốc

  • 2025-12-09 09:23:20
Sở hữu 3 bằng đại học, chàng trai về quê trồng nấm mối đen

Sở hữu 3 bằng đại học, chàng trai về quê trồng nấm mối đen

  • 2025-12-08 09:40:39
Sáng kiến bảo tồn vĩnh cửu di sản lịch sử của nữ đại úy quân giới

Sáng kiến bảo tồn vĩnh cửu di sản lịch sử của nữ đại úy quân giới

  • 2025-12-08 09:11:36
  • Tiêu điểm
  • Nổi bật
  • Xem nhiều
  • Hạt giống đỏ từ Mùa hè xanh - Bài 2: Trách nhiệm trên vai người trẻ

    Hạt giống đỏ từ Mùa hè xanh - Bài 2: Trách nhiệm trên vai người trẻ

    • 2025-08-12 10:36:18
  • Thanh niên tình nguyện Tiếp sức mùa thi ở Kon Tum, Huế, Lạng Sơn

    Thanh niên tình nguyện Tiếp sức mùa thi ở Kon Tum, Huế, Lạng Sơn

    • 2024-06-27 09:51:10
  • Xây dựng Đảng trong sạch, vững mạnh trước sự chống phá của các thế lực thù địch

    Xây dựng Đảng trong sạch, vững mạnh trước sự chống phá của các thế lực thù địch

    • 2023-07-18 15:53:41
  • “Dành cả thanh xuân” cho Đoàn

    “Dành cả thanh xuân” cho Đoàn

    • 2023-07-04 08:13:34
  • Tạo nhiều cơ hội việc làm và khởi nghiệp

    Tạo nhiều cơ hội việc làm và khởi nghiệp

    • 2023-05-05 09:25:33
  • 290 đại biểu sẽ tham dự Đại hội Đoàn TNCS Hồ Chí Minh Thành phố Hải Phòng lần thứ I

    290 đại biểu sẽ tham dự Đại hội Đoàn TNCS Hồ Chí Minh Thành phố Hải Phòng lần thứ I

    • 2025-12-16 14:03:34
  • Thanh niên Lạng Sơn “Đoàn kết – Bản lĩnh – Tiên phong – Đột phá – Phát triển”

    Thanh niên Lạng Sơn “Đoàn kết – Bản lĩnh – Tiên phong – Đột phá – Phát triển”

    • 2025-12-15 21:53:52
  • Khai mạc phiên thứ nhất Đại hội đại biểu Đoàn TNCS Hồ Chí Minh tỉnh Lạng Sơn lần thứ XV

    Khai mạc phiên thứ nhất Đại hội đại biểu Đoàn TNCS Hồ Chí Minh tỉnh Lạng Sơn lần thứ XV

    • 2025-12-15 09:30:17
  • Hơn 3.000 người dân Thủ đô được khám sàng lọc sức khoẻ từ Ứng dụng trí tuệ nhân tạo

    Hơn 3.000 người dân Thủ đô được khám sàng lọc sức khoẻ từ Ứng dụng trí tuệ nhân tạo

    • 2025-12-13 11:11:43
  • Tổng kết cuộc thi trắc nghiệm tìm hiểu 80 năm Ngày Tổng tuyển cử đầu tiên bầu Quốc hội Việt Nam

    Tổng kết cuộc thi trắc nghiệm tìm hiểu 80 năm Ngày Tổng tuyển cử đầu tiên bầu Quốc hội Việt Nam

    • 2025-12-12 13:46:22
  • Cuộc thi “Nét chữ từ trái tim”: “Em yêu Tổ quốc” là bài thơ được các em thiếu nhi viết nhiều nhất

    Cuộc thi “Nét chữ từ trái tim”: “Em yêu Tổ quốc” là bài thơ được các em thiếu nhi viết nhiều nhất

    • 2020-04-07 15:36:28
  • Giới thiệu

    Giới thiệu

    • 2018-08-03 12:16:14
  • 8 Câu nói lưu danh sử sách của Hưng Đạo Đại Vương Trần Quốc Tuấn

    8 Câu nói lưu danh sử sách của Hưng Đạo Đại Vương Trần Quốc Tuấn

    • 2019-12-08 23:38:05
  • Ban Bí thư Trung ương Đoàn trao Quyết định bổ nhiệm, điều động cán bộ.

    Ban Bí thư Trung ương Đoàn trao Quyết định bổ nhiệm, điều động cán bộ.

    • 2019-07-08 11:18:24
  • Thể lệ Cuộc thi Hoa khôi Sinh viên Việt Nam 2020

    Thể lệ Cuộc thi Hoa khôi Sinh viên Việt Nam 2020

    • 2019-11-11 16:16:31

Video

Sacombank đồng hành cùng Doanh nghiệp

  • 2025-10-15 09:32:49

SACOMBANK - ĐỒNG HÀNH CÙNG PHÁT TRIỂN

  • 2025-07-30 15:23:31

SACOMBANK - ĐỒNG HÀNH CÙNG PHÁT TRIỂN

  • 2025-07-17 15:31:11

Đăng ký nhận thông tin

Tag Phổ Biến

  • đoàn hội
  • khởi nghiệp
  • tình nguyện
  • tin cơ sở
  • đoàn viên
  • tuổi trẻ
  • sinh viên
  • học sinh
  • Đại hội Đoàn
  • Đại hội
Đơn vị đối tác
    ParseError: syntax error, unexpected '='
    Phalcon Framework 3.4.5

    ParseError: syntax error, unexpected '='

    /home/congvieclamtn/data/cache/volt/%%home%%congvieclamtn%%app%%themes%%hotmagazine%%views%%desktop%%menu%%widget%%get_li_menu.volt.php (1)
    • Backtrace
    • Request
    • Server
    • Included Files
    • Memory
    #0Phalcon\Mvc\View\Engine\Volt->render(/home/congvieclamtn/app/themes/hotmagazine/views/desktop/Menu/widget/get_li_menu.volt, Array(23), false)
    #1Phalcon\Mvc\View->_engineRender(Array([.volt] => Object(Application\Mvc\View\Engine\Volt), [.phtml] => Object(Phalcon\Mvc\View\Engine\Php)), /home/congvieclamtn/app/themes/hotmagazine/views/desktop/Menu/widget/get_li_menu, false, false)
    #2Phalcon\Mvc\View->partial(widget/get_li_menu, Array([menu] => Object(Phalcon\Mvc\Model\Resultset\Simple), [liClass] => (empty string)))
    /home/congvieclamtn/library/modules/Application/Mvc/Helper.php (180)
    <?php
     
    /**
     * Helper
     * @copyright Copyright (c) 2017 MuaBanNhanh FlatForm
     * @author Nhan Phong <nhanphong@vinadesign.vn>
     */
     
    namespace Application\Mvc;
     
    use Application\Mvc\Router\DefaultRouter;
    use Cms\Model\Language;
    use Lib\Menu\Helper\Menu;
     
    class Helper extends \Phalcon\Mvc\User\Component
    {
        const StaticWidgetDefaultOptions = [
            'lifetime' => 120
        ];
     
        private $translate = null;
        private $admin_translate = null;
     
        public $menu;
     
        public function __construct()
        {
            $this->menu = Menu::getInstance();
        }
     
        /**
         * 
         */
        public function translate($string, $placeholders = null)
        {
            if (!$this->translate) {
                $this->translate = $this->getDi()->get('translate');
            }
            return $this->translate->query($string, $placeholders);
     
        }
     
        /**
         * 
         */
        public function at($string, $placeholders = null)
        {
            if (!$this->admin_translate) {
                $this->admin_translate = $this->getDi()->get('admin_translate');
            }
            return $this->admin_translate->query($string, $placeholders);
     
        }
     
        public function widget($namespace = 'Index', array $params = [])
        {
            return new \Application\Widget\Proxy($namespace, $params);
        }
     
        public function staticWidget($id, $params = [])
        {
            $mergeConfig = array_merge(self::StaticWidgetDefaultOptions, $params);
            $widget = \Widget\Model\Widget::findFirst(["id='{$id}'", "cache" => ["lifetime" => $mergeConfig["lifetime"], "key" => HOST_HASH . md5("Widget::findFirst({$id})")]]);
            if ($widget) {
                return $widget->getHtml();
            }
        }
     
        public function langUrl($params)
        {
            $routeName = $params['for'];
            $routeName = DefaultRouter::ML_PREFIX . $routeName . '_' . LANG;
            $params['for'] = $routeName;
            return $this->url->get($params);
        }
     
        public function languages()
        {
            return Language::findCachedLanguages();
     
        }
     
        public function langSwitcher($lang, $string)
        {
            $helper = new \Application\Mvc\Helper\LangSwitcher();
            return $helper->render($lang, $string);
        }
     
        public function cacheExpire($seconds)
        {
            $response = $this->getDi()->get('response');
            $expireDate = new \DateTime();
            $expireDate->modify("+$seconds seconds");
            $response->setExpires($expireDate);
            $response->setHeader('Cache-Control', "max-age=$seconds");
        }
     
        public function isAdminSession()
        {
            $session = $this->getDi()->get('session');
            $auth = $session->get('auth');
            if ($auth) {
                if ($auth->admin_session == true) {
                    return true;
                }
            }
        }
     
        public function error($code = 404)
        {
            $helper = new \Application\Mvc\Helper\ErrorReporting();
            return $helper->{'error' . $code}();
     
        }
     
        public function title($title = null, $h1 = false)
        {
            return \Application\Mvc\Helper\Title::getInstance($title, $h1);
        }
     
        public function meta()
        {
            return \Application\Mvc\Helper\Meta::getInstance();
        }
     
        public function activeMenu()
        {
            return \Application\Mvc\Helper\ActiveMenu::getInstance();
        }
     
        public function announce($incomeString, $num)
        {
            $object = new \Application\Mvc\Helper\Announce();
            return $object->getString($incomeString, $num);
        }
     
        public function dbProfiler()
        {
            $object = new \Application\Mvc\Helper\DbProfiler();
            return $object->DbOutput();
        }
     
        public function constant($name)
        {
            return get_defined_constants()[$name];
        }
     
        public function image($args, $attributes = [])
        {
            $imageFilter = new \Image\Storage($args, $attributes);
            return $imageFilter;
        }
     
        public function querySymbol()
        {
            $object = new \Application\Mvc\Helper\RequestQuery();
            return $object->getSymbol();
        }
     
        public function javascript($id)
        {
            $javascript = \Cms\Model\Javascript::findCachedById($id);
            if ($javascript) {
                return $javascript->getText();
            }
        }
     
        public function modulePartial($template, $data, $module = null)
        {
            $view = clone $this->getDi()->get('view');
            $partialsDir = '';
            $session = $this->getDi()->get('session');
            $device = $session->get('device_detect');
            if ($module) {
                $moduleName = \Application\Utils\ModuleName::camelize($module);
                $partialsDir = THEME_PATH . '/views/' . $device . '/' . $moduleName . '/';
            }
            $view->setPartialsDir($partialsDir);
     
            return $view->partial($template, $data);
        }
     
        public function modulePartialAdmin($template, $data, $module = null)
        {
            $view = clone $this->getDi()->get('view');
            $partialsDir = '';
            if ($module) {
                $moduleName = \Application\Utils\ModuleName::camelize($module);
                $partialsDir = '../../../modules/' . $moduleName . '/views/';
            }
            $view->setPartialsDir($partialsDir);
            return $view->partial($template, $data);
        }
     
        public function modulePartialLib($template, $data, $module = null)
        {
            $view = clone $this->getDi()->get('view');
            $partialsDir = '';
            if ($module) {
                $moduleName = $module;
                $partialsDir = LIBRARY_PATH .'/modules/' . $moduleName . '/views/';
            }
     
            $view->setPartialsDir($partialsDir);
            return $view->partial($template, $data);
        }
     
        /**
         * register parameter breadcumb in view
         */
        public function breadcrumb($breadcrumb = null, $status = false)
        {
            return \Application\Mvc\Helper\Breadcrumb::getInstance($breadcrumb, $status);
        }
     
        public function htmlSelectCategory($cate, $valueActive, $valueDefault)
        {
            $helper = new \Application\Mvc\Helper\Category();
            return $helper->categorySelect($cate, $valueActive, $valueDefault);
        }
     
        public function htmlTableCategory($cate, $valueActive = 0)
        {
            $helper = new \Application\Mvc\Helper\Category();
            return $helper->tableCategory($cate, $valueActive);
        }
     
        public function htmlTableCategoryProduct($cate, $valueActive = 0)
        {
            $helper = new \Application\Mvc\Helper\Category();
            return $helper->tableCategoryProduct($cate, $valueActive);
        }
     
        public function htmlTableTag($tag)
        {
            $helper = new \Application\Mvc\Helper\Tag();
            return $helper->tableTag($tag);
        }
     
        public function htmlTableSlider($sliderGroup)
        {
            $helper = new \Application\Mvc\Helper\Slider();
            return $helper->tableSlider($sliderGroup);
        }
     
        public function getCategoryName($id)
        {
            $helper = new \Application\Mvc\Helper\Category();
            return $helper->getName($id);
        }
     
        public function getTagName($id)
        {
            $helper = new \Application\Mvc\Helper\Tag();
            return $helper->getName($id);
        }
     
        public function getTagSlug($id)
        {
            $helper = new \Application\Mvc\Helper\Tag();
            return $helper->getSlug($id);
        }
     
        public function getTagId($name)
        {
            $helper = new \Application\Mvc\Helper\Tag();
            return $helper->getId($name);
        }
     
        public function flashSuccessHtml($text)
        {
            $html = '<button data-dismiss="alert" class="close">
                        ×
                    </button>
                    <i class="fa fa-check-circle"></i>';
            $html .= ' ' . $text;  
            return $html;      
        }
     
        public function flashInfoHtml($text)
        {
            $html = '<button data-dismiss="alert" class="close">
                        ×
                    </button>
                    <i class="fa fa-info-circle"></i>';
            $html .= ' ' . $text;  
            return $html;      
        }
     
        public function flashWarningHtml($text)
        {
            $html = '<button data-dismiss="alert" class="close">
                        ×
                    </button>
                    <i class="fa fa-exclamation-triangle"></i>';
            $html .= ' ' . $text;  
            return $html;      
        }
     
        public function flashErrorHtml($text)
        {
            $html = '<button data-dismiss="alert" class="close">
                        ×
                    </button>
                    <i class="fa fa-times-circle"></i>';
            $html .= ' ' . $text;  
            return $html;      
        }
     
        public function slug($string, $separator = '-')
        {
            $string = self::ascii($string);
            $string = trim(preg_replace('/[^a-zA-Z0-9]/', ' ', $string));
            $string = trim(preg_replace('/[\s]+/', ' ', $string));
            $string = trim(preg_replace('/\s/', $separator, $string));
     
            return strtolower($string);
        }
     
        public static function ascii($string)
        {
            $string = preg_replace('/(à|á|ạ|ả|ã|â|ầ|ấ|ậ|ẩ|ẫ|ă|ằ|ắ|ặ|ẳ|ẵ)/', 'a', $string);
            $string = preg_replace('/(è|é|ẹ|ẻ|ẽ|ê|ề|ế|ệ|ể|ễ)/', 'e', $string);
            $string = preg_replace('/(ì|í|ị|ỉ|ĩ)/', 'i', $string);
            $string = preg_replace('/(ò|ó|ọ|ỏ|õ|ô|ồ|ố|ộ|ổ|ỗ|ơ|ờ|ớ|ợ|ở|ỡ)/', 'o', $string);
            $string = preg_replace('/(ù|ú|ụ|ủ|ũ|ư|ừ|ứ|ự|ử|ữ)/', 'u', $string);
            $string = preg_replace('/(ỳ|ý|ỵ|ỷ|ỹ)/', 'y', $string);
            $string = preg_replace('/(đ)/', 'd', $string);
     
            $string = preg_replace('/(À|Á|Ạ|Ả|Ã|Â|Ầ|Ấ|Ậ|Ẩ|Ẫ|Ă|Ằ|Ắ|Ặ|Ẳ|Ẵ)/', 'A', $string);
            $string = preg_replace('/(È|É|Ẹ|Ẻ|Ẽ|Ê|Ề|Ế|Ệ|Ể|Ễ)/', 'E', $string);
            $string = preg_replace('/(Ì|Í|Ị|Ỉ|Ĩ)/', 'I', $string);
            $string = preg_replace('/(Ò|Ó|Ọ|Ỏ|Õ|Ô|Ồ|Ố|Ộ|Ổ|Ỗ|Ơ|Ờ|Ớ|Ợ|Ở|Ỡ)/', 'O', $string);
            $string = preg_replace('/(Ù|Ú|Ụ|Ủ|Ũ|Ư|Ừ|Ứ|Ự|Ử|Ữ)/', 'U', $string);
            $string = preg_replace('/(Ỳ|Ý|Ỵ|Ỷ|Ỹ)/', 'Y', $string);
            $string = preg_replace('/(Đ)/', 'D', $string);
     
            $string = trim($string);
     
            return $string;
        }
     
        public function niceWordsByChars($text, $max_char = 100, $end = '...')
        {
            $text = trim(strip_tags($text));
            $max_char = (int) $max_char;
            $end = trim($end);
     
            if ($text != '') {
                $text = self::removeJunkSpace($text);
            }
     
            $output = '';
     
            if (mb_strlen($text, 'UTF-8') > $max_char) {
                $words = explode(' ', $text);
                $i = 0;
     
                while (1) {
                    $length = mb_strlen($output, 'UTF-8') + mb_strlen($words[$i], 'UTF-8');
     
                    if ($length > $max_char) {
                        break;
                    } else {
                        $output .= ' ' . $words[$i];
                        ++$i;
                    }
                }
     
                $output .= $end;
            } else {
                $output = $text;
            }
     
            return trim($output);
        }
     
        public static function removeJunkSpace($string)
        {
            $words = array_filter(explode(' ', trim($string)));
            return trim(implode(' ', $words));
        }
     
        public function currencyFormat($number)
        {
            return number_format($number, 0, ',', '.');
        }
     
        public function getGravatar( $email = '', $s = 80, $d = 'mp', $r = 'g', $img = false, $atts = array() ) {
            $url = 'https://www.gravatar.com/avatar/';
            $url .= md5( strtolower( trim( $email ) ) );
            $url .= "?s=$s&d=$d&r=$r";
            if ( $img ) {
                $url = '<img src="' . $url . '"';
                foreach ( $atts as $key => $val )
                    $url .= ' ' . $key . '="' . $val . '"';
                $url .= ' />';
            }
            return $url;
        }
    }
    
    #3Application\Mvc\Helper->modulePartial(null, null, null)
    /home/congvieclamtn/library/modules/Application/Widget/AbstractWidget.php (18)
    <?php
     
    /**
     * WidgetAbstract
     * @copyright Copyright (c) 2011 - 2012 Aleksandr Torosh (http://wezoom.com.ua)
     * @author Aleksandr Torosh <webtorua@gmail.com>
     */
     
    namespace Application\Widget;
     
    class AbstractWidget extends \Phalcon\Mvc\User\Component
    {
     
        private $module;
     
        public function widgetPartial($template, array $data = array())
        {
            return $this->helper->modulePartial($template, $data, $this->module);
     
        }
     
        public function widgetPartialAdmin($template, array $data = array())
        {
            return $this->helper->modulePartialAdmin($template, $data, $this->module);
     
        }
     
        public function widgetPartialLib($template, array $data = array())
        {
            return $this->helper->modulePartialLib($template, $data, $this->module);
     
        }
     
        public function setModule($module)
        {
            $this->module = $module;
        }
     
    }
    
    #4Application\Widget\AbstractWidget->widgetPartial(widget/get_li_menu, Array([menu] => Object(Phalcon\Mvc\Model\Resultset\Simple), [liClass] => (empty string)))
    /home/congvieclamtn/app/themes/hotmagazine/modules/Menu/Widget/MenuWidget.php (41)
    <?php
    /**
     * Created by PhpStorm.
     * User: nhanphong
     * Date: 6/4/18
     * Time: 5:10 PM
     */
     
    namespace Menu\Widget;
     
    use Application\Widget\AbstractWidget;
     
    class MenuWidget extends AbstractWidget
    {
     
        public function getMenu($id, $ulClass, $liClass)
        {
            $columns = ['m.*'];
     
            $qb = $this->modelsManager->createBuilder()
                ->columns($columns)
                ->addFrom('Lib\Menu\Model\Menu', 'm')
                ->andWhere('m.root = :root:', ['root' => $id]);
     
            $menu = $qb->getQuery()->execute();
     
            $this->widgetPartial('widget/get_menu', ['menu' => $menu, 'ulClass' => $ulClass, 'liClass' => $liClass]);
        }
     
        public function getLiMenu($id, $liClass)
        {
            $columns = ['m.*'];
     
            $qb = $this->modelsManager->createBuilder()
                ->columns($columns)
                ->addFrom('Lib\Menu\Model\Menu', 'm')
                ->andWhere('m.root = :root:', ['root' => $id]);
     
            $menu = $qb->getQuery()->execute();
     
            $this->widgetPartial('widget/get_li_menu', ['menu' => $menu, 'liClass' => $liClass]);
        }
    }
    #5Menu\Widget\MenuWidget->getLiMenu(2, )
    #6call_user_func_array(Array([0] => Object(Menu\Widget\MenuWidget), [1] => getLiMenu), Array([0] => 2, [1] => (empty string)))
    /home/congvieclamtn/library/modules/Application/Widget/Proxy.php (93)
    <?php
     
    /**
     * Proxy
     * @copyright Copyright (c) 2011 - 2012 Aleksandr Torosh (http://wezoom.com.ua)
     * @author Aleksandr Torosh <webtorua@gmail.com>
     */
     
    namespace Application\Widget;
     
    class Proxy extends \Phalcon\Mvc\User\Component
    {
     
        const NULLCACHE = 'NULLCACHE';
     
        public static $cache = null; // injected
        private $cacheEnabled = true;
        private $cacheTime = 60;
        private $object;
        private $namespace;
        private $hide_for_mobile = false;
     
        public function __construct($namespace = 'Index', array $params = array())
        {
            $this->namespace = $namespace;
     
            ucfirst($namespace);
            $class = $namespace . '\\Widget\\' . $namespace . 'Widget';
            $this->object = new $class();
            $this->object->setModule($namespace);
     
            $registry = $this->getDI()->get('registry');
            $this->cacheEnabled = $registry->cms['WIDGETS_CACHE'];
     
            if (isset($params['cache']) && !$params['cache']) {
                $this->cacheEnabled = false;
            }
            if (isset($params['time']) && $params['time']) {
                $this->cacheTime = (int) $params['time'];
            }
            if (isset($params['hide_for_mobile']) && $params['hide_for_mobile']) {
                if (MOBILE_DEVICE) {
                    $this->hide_for_mobile = true;
                }
            }
     
        }
     
        public function __call($method, array $params)
        {
            if ($this->hide_for_mobile) {
                return;
            }
            try {
                if ($this->cacheEnabled) {
                    $paramsString = md5(serialize($params));
                    $cacheKey = md5($this->namespace . '::' . $method . $paramsString . LANG . (string) MOBILE_DEVICE);
                    $results = self::$cache->get($cacheKey);
                    if (!$results) {
                        if (method_exists($this->object, $method)) {
                            $results = $this->getResults($method, $params);
                            if (!$results) {
                                $results = self::NULLCACHE;
                            }
                            $cacheTime = $this->cacheTime + rand(0, 60);
                            self::$cache->save($cacheKey, $results, $cacheTime);
                            if ($results !== self::NULLCACHE) {
                                return $results;
                            }
                        } else {
                            echo $this->namespace . 'Widget::' . $method . ' not exists';
                        }
                    } else {
                        if ($results == self::NULLCACHE) {
                            return;
                        } else {
                            return $results;
                        }
                    }
                } else {
                    return $this->getResults($method, $params);
                }
            } catch (\Exception $e) {
                $this->cacheEnabled = false;
                echo '<!--' . htmlspecialchars('Error. ' . $this->namespace . 'Widget::' . $method . '. ' . $e->getMessage()) . '-->';
            }
     
        }
     
        private function getResults($method, $params)
        {
            ob_start();
            call_user_func_array(array($this->object, $method), $params);
            $results = ob_get_contents();
            ob_end_clean();
            return $results;
     
        }
     
    }
    
    #7Application\Widget\Proxy->getResults(getLiMenu, Array([0] => 2, [1] => (empty string)))
    /home/congvieclamtn/library/modules/Application/Widget/Proxy.php (81)
    <?php
     
    /**
     * Proxy
     * @copyright Copyright (c) 2011 - 2012 Aleksandr Torosh (http://wezoom.com.ua)
     * @author Aleksandr Torosh <webtorua@gmail.com>
     */
     
    namespace Application\Widget;
     
    class Proxy extends \Phalcon\Mvc\User\Component
    {
     
        const NULLCACHE = 'NULLCACHE';
     
        public static $cache = null; // injected
        private $cacheEnabled = true;
        private $cacheTime = 60;
        private $object;
        private $namespace;
        private $hide_for_mobile = false;
     
        public function __construct($namespace = 'Index', array $params = array())
        {
            $this->namespace = $namespace;
     
            ucfirst($namespace);
            $class = $namespace . '\\Widget\\' . $namespace . 'Widget';
            $this->object = new $class();
            $this->object->setModule($namespace);
     
            $registry = $this->getDI()->get('registry');
            $this->cacheEnabled = $registry->cms['WIDGETS_CACHE'];
     
            if (isset($params['cache']) && !$params['cache']) {
                $this->cacheEnabled = false;
            }
            if (isset($params['time']) && $params['time']) {
                $this->cacheTime = (int) $params['time'];
            }
            if (isset($params['hide_for_mobile']) && $params['hide_for_mobile']) {
                if (MOBILE_DEVICE) {
                    $this->hide_for_mobile = true;
                }
            }
     
        }
     
        public function __call($method, array $params)
        {
            if ($this->hide_for_mobile) {
                return;
            }
            try {
                if ($this->cacheEnabled) {
                    $paramsString = md5(serialize($params));
                    $cacheKey = md5($this->namespace . '::' . $method . $paramsString . LANG . (string) MOBILE_DEVICE);
                    $results = self::$cache->get($cacheKey);
                    if (!$results) {
                        if (method_exists($this->object, $method)) {
                            $results = $this->getResults($method, $params);
                            if (!$results) {
                                $results = self::NULLCACHE;
                            }
                            $cacheTime = $this->cacheTime + rand(0, 60);
                            self::$cache->save($cacheKey, $results, $cacheTime);
                            if ($results !== self::NULLCACHE) {
                                return $results;
                            }
                        } else {
                            echo $this->namespace . 'Widget::' . $method . ' not exists';
                        }
                    } else {
                        if ($results == self::NULLCACHE) {
                            return;
                        } else {
                            return $results;
                        }
                    }
                } else {
                    return $this->getResults($method, $params);
                }
            } catch (\Exception $e) {
                $this->cacheEnabled = false;
                echo '<!--' . htmlspecialchars('Error. ' . $this->namespace . 'Widget::' . $method . '. ' . $e->getMessage()) . '-->';
            }
     
        }
     
        private function getResults($method, $params)
        {
            ob_start();
            call_user_func_array(array($this->object, $method), $params);
            $results = ob_get_contents();
            ob_end_clean();
            return $results;
     
        }
     
    }
    
    #8Application\Widget\Proxy->__call(getLiMenu, Array([0] => 2, [1] => (empty string)))
    /home/congvieclamtn/data/cache/volt/%%home%%congvieclamtn%%app%%themes%%hotmagazine%%views%%desktop%%partials%%main%%footer.volt.php (76)
    <section class="slide-logo">
        <div class="title-section">
            <span>Đơn vị đối tác</span>
        </div>
        <div class="slide-logo-box owl-wrapper">
            <div class="owl-carousel" data-num="7">
     
                <div class="item news-post">
                    <a href="https://muabannhanh.com" target="_blank">
                        <img alt="" src="/img/logo/muabannhanh.png">
                    </a>
                </div>
     
                <div class="item news-post">
                    <a href="http://thienlonggroup.com" target="_blank">
                        <img alt="" src="/img/logo/thienlong.png">
                    </a>
                </div>
     
                <div class="item news-post">
                    <a href="http://thp.com.vn" target="_blank">
                        <img alt="" src="/img/logo/thpgroup.png">
                    </a>
                </div>
     
                <div class="item news-post">
                    <a href="https://www.matbao.net/" target="_blank">
                        <img alt="" src="/img/logo/matbao.png">
                    </a>
                </div>
     
                <div class="item news-post">
                    <a href="https://topica.edu.vn/" target="_blank">
                        <img alt="" src="/img/logo/topica.png">
                    </a>
                </div>
     
                <div class="item news-post">
                    <a href="http://vinatech.net/" target="_blank">
                        <img alt="" src="/img/logo/vinatech.png">
                    </a>
                </div>
     
                <div class="item news-post">
                    <a href="http://baoninh.vn" target="_blank">
                        <img alt="" src="/img/logo/baoninh.png">
                    </a>
                </div>
     
                <div class="item news-post">
                    <a href="http://imcgroup.vn" target="_blank">
                        <img alt="" src="/img/logo/imc.png">
                    </a>
                </div>
     
                <div class="item news-post">
                    <a href="http://vietjetair.com" target="_blank">
                        <img alt="" src="/img/logo/vietjetair.png">
                    </a>
                </div>
     
                <div class="item news-post">
                    <a href="http://yeah1.com" target="_blank">
                        <img alt="" src="/img/logo/yeah1.png">
                    </a>
                </div>
            </div>
        </div>
    </section>
    <!-- footer ================================================== -->
    <footer>
        <div class="container">
            <div class="footer-widgets-part">
                <div class="row">
                    <ul class="category-list">
                        <?= $this->helper->widget('Menu')->getLiMenu($theme['menu_footer'], '') ?>
                    </ul>
     
                    <div class="col-sm-12">
                        <div class="row" style="border-top: 1px solid #333333;padding: 10px;">
                            <div class="col-md-4 align-center">
                                <span class="portal">Vận hành bởi: Thánh Gióng Portal</span>
                                <div class="logo-footer">
                                    <img src="/<?= $this->options->get('bg_footer') ?>" alt="logo footer thanhgiong" width="100%" />
                                </div>
                            </div>
                            <div class="col-md-4 align-center">
                                <span class="portal">Developer By MuaBanNhanh.Com</span>
                                <div class="logo-tech">
                                    <img src="/img/logo/mbn.png" alt="logo footer thanhgiong" height="98px" />
                                </div>
                            </div>
                            <div class="col-md-4 align-center">
                                <span class="portal">Hạ tầng bởi: Công ty Cổ phần Mắt Bão</span>
                                <div class="logo-footer">
                                    <img src="/img/matbao.png" alt="logo footer thanhgiong" height="98px" />
                                </div>
                            </div>
                        </div>
                    </div>
                    
                </div>
            </div>
            <div class="footer-last-line">
                <div class="row">
                    <div class="col-md-8">
                        <p>Cơ quan của Trung ương Hội Liên hiệp Thanh niên Việt Nam</p>
              <p>Giấy phép số 77/GP-TTĐT do Cục Phát thanh, Truyền hình và Thông tin Điện tử, ngày 30/6/2016</p>
              <p>Văn phòng TP. Hà Nội: 64 Bà Triệu, Hoàn Kiếm, Hà Nội</p>
              <p>Văn phòng TP.Hồ Chí Minh: Tầng 2, 145 Pasteur, Quận 3, TP. Hồ Chí Minh.</p>
              <p>Điện thoại: 023 62782663. Email: congtrithucthanhgiong@gmail.com</p>
                    </div>
                    <div class="col-md-4">
                        <p>&copy; COPYRIGHT 2017 thanhgiong.vn</p>
                    </div>
                </div>
            </div>
        </div>
    </footer>
    <!-- End footer -->
    #9unknown
    #10Phalcon\Mvc\View\Engine\Volt->render(/home/congvieclamtn/app/themes/hotmagazine/views/desktop/partials/main/footer.volt, Array(22), false)
    #11Phalcon\Mvc\View->_engineRender(Array([.volt] => Object(Application\Mvc\View\Engine\Volt), [.phtml] => Object(Phalcon\Mvc\View\Engine\Php)), /home/congvieclamtn/app/themes/hotmagazine/views/desktop/partials/main/footer, false, false)
    #12Phalcon\Mvc\View->partial(main/footer, null)
    #13Phalcon\Mvc\View\Engine->partial(main/footer)
    /home/congvieclamtn/data/cache/volt/%%home%%congvieclamtn%%app%%themes%%hotmagazine%%views%%desktop%%post%%index%%detail.volt.php (323)
    <!DOCTYPE html>
    <html lang="vi">
     
    <head>
        <!-- Basic -->
        <meta charset="utf-8">
        <meta http-equiv="X-UA-Compatible" content="IE=edge">
        <META NAME="ROBOTS" CONTENT="INDEX, FOLLOW">
        <title><?= $this->escaper->escapeHtml($this->helper->title()->get()) ?></title>
     
        <?= $this->helper->meta()->get('description') ?>
        <?= $this->helper->meta()->get('keywords') ?>
        <?= $this->helper->meta()->get('seo-manager') ?>
     
        <?= $this->helper->meta()->getFb('og:site_name') ?>
        <?= $this->helper->meta()->getFb('og:title') ?>
        <?= $this->helper->meta()->getFb('og:description') ?>
        <?= $this->helper->meta()->getFb('og:url') ?>
        <?= $this->helper->meta()->getFb('og:image') ?>
     
        <!-- Favicon -->
        <link href="<?= $this->url->path() ?>favicon.ico" rel="shortcut icon" type="image/vnd.microsoft.icon">
        <link rel="canonical" href="<?= $base_url . $this->router->getRewriteUri() ?>">
     
        <!-- Mobile Metas -->
        <meta name="viewport" content="width=device-width, initial-scale=1.0" />
     
        <!-- build:css css/main.css -->
     
        <!-- Theme CSS -->
     
        <link href='https://fonts.googleapis.com/css?family=Lato:300,400,700,900,400italic' rel='stylesheet' type='text/css'>
        <link href="https://maxcdn.bootstrapcdn.com/font-awesome/4.2.0/css/font-awesome.min.css" rel="stylesheet">
     
        <link rel="stylesheet" type="text/css" href="<?= $this->url->path() ?>themes/hotmagazine/css/bootstrap.min.css" media="screen">
        <link rel="stylesheet" type="text/css" href="<?= $this->url->path() ?>themes/hotmagazine/css/jquery.bxslider.css" media="screen">
        <link rel="stylesheet" type="text/css" href="<?= $this->url->path() ?>themes/hotmagazine/css/font-awesome.css" media="screen">
        <link rel="stylesheet" type="text/css" href="<?= $this->url->path() ?>themes/hotmagazine/css/magnific-popup.css" media="screen">
        <link rel="stylesheet" type="text/css" href="<?= $this->url->path() ?>themes/hotmagazine/css/owl.carousel.css" media="screen">
        <link rel="stylesheet" type="text/css" href="<?= $this->url->path() ?>themes/hotmagazine/css/owl.theme.css" media="screen">
        <link rel="stylesheet" type="text/css" href="<?= $this->url->path() ?>themes/hotmagazine/css/ticker-style.css"/>
        <link rel="stylesheet" type="text/css" href="<?= $this->url->path() ?>themes/hotmagazine/css/style.css?v=<?php echo time(); ?>" media="screen">
        <link rel="stylesheet" type="text/css" href="<?= $this->url->path() ?>themes/hotmagazine/css/style_desktop.css?v=<?php echo time(); ?>" media="screen">
        <!-- endbuild -->
        <!-- <link rel="stylesheet" type="text/css" href="<?= $this->url->path() ?>themes/hotmagazine/css/black_white.css?v=<?php echo time(); ?>" media="screen"> -->
    </head>
     
    <body>
    <div id="container">
        <!-- Header -->
        <?= $this->partial('main/header') ?>
        <!-- Header END -->
        <!-- Content -->
        
        <section class="block-wrapper">
            <div class="container">
                <div class="row">
                    <div class="col-sm-8">
     
                        <!-- block content -->
                        <div class="block-content">
     
                            <!-- single-post box -->
                            <div class="single-post-box">
     
                                <div class="title-post">
                                    <h1><?= $post->title ?> </h1>
                                    <ul class="post-tags">
                                        <li><i class="fa fa-clock-o"></i><?= $post->getPublish() ?></li>
                                    </ul>
                                </div>
                                <p><b><?= $post->intro ?></b></p>
                                <div class="share-post-box">
                                    <ul class="share-box">
                                        <li><i class="fa fa-share-alt"></i><span>Share Post</span></li>
                                        <li><a class="facebook" href="#" onclick="share_fb('<?= $domain . $this->router->getRewriteUri() ?>');return false;" rel="nofollow" share_url="<?= $this->router->getRewriteUri() ?>" target="_blank"><i class="fa fa-facebook"></i>Share on Facebook</a></li>
                                        <li><a class="twitter" href="#" onclick="share_twitter('<?= $domain . $this->router->getRewriteUri() ?>');return false;" rel="nofollow" share_url="<?= $this->router->getRewriteUri() ?>" target="_blank"><i class="fa fa-twitter"></i><span>Share on Twitter</span></a></li>
                                        <li><a class="google" href="#" onclick="share_gplus('<?= $domain . $this->router->getRewriteUri() ?>');return false;" rel="nofollow" share_url="<?= $this->router->getRewriteUri() ?>" target="_blank"><i class="fa fa-google-plus"></i><span></span></a></li>
                                        <li><a class="linkedin" href="#" onclick="share_linkedin('<?= $domain . $this->router->getRewriteUri() ?>');return false;" rel="nofollow" share_url="<?= $this->router->getRewriteUri() ?>" target="_blank"><i class="fa fa-linkedin"></i><span></span></a></li>
                                    </ul>
                                </div>
     
                                <div class="post-content">
                                    <?= $this->shortcode->do_shortcode($post->getPostContent()->content) ?>
                                </div>
                                <?php if (!empty($post->getPostTag()->toArray())) { ?>
                                <div class="post-tags-box">
                                    <ul class="tags-box">
                                        <li><i class="fa fa-tags"></i><span>Tags:</span></li>
                                        <?php foreach ($post->getPostTag() as $post_tag) { ?>
                                            <li><a href="<?= $this->url->get(['for' => 'post_tag', 'slug' => $this->helper->getTagSlug($post_tag->tag_id)]) ?>"><?= $this->helper->getTagName($post_tag->tag_id) ?></a></li>
                                        <?php } ?>
                                    </ul>
                                </div>
                                <?php } ?>
                                <div class="share-post-box">
                                    <ul class="share-box">
                                        <li><i class="fa fa-share-alt"></i><span>Share Post</span></li>
                                        <li><a class="facebook" href="#" onclick="share_fb('<?= $domain . $this->router->getRewriteUri() ?>');return false;" rel="nofollow" share_url="<?= $this->router->getRewriteUri() ?>" target="_blank"><i class="fa fa-facebook"></i>Share on Facebook</a></li>
                                        <li><a class="twitter" href="#" onclick="share_twitter('<?= $domain . $this->router->getRewriteUri() ?>');return false;" rel="nofollow" share_url="<?= $this->router->getRewriteUri() ?>" target="_blank"><i class="fa fa-twitter"></i><span>Share on Twitter</span></a></li>
                                        <li><a class="google" href="#" onclick="share_gplus('<?= $domain . $this->router->getRewriteUri() ?>');return false;" rel="nofollow" share_url="<?= $this->router->getRewriteUri() ?>" target="_blank"><i class="fa fa-google-plus"></i><span></span></a></li>
                                        <li><a class="linkedin"href="#" onclick="share_linkedin('<?= $domain . $this->router->getRewriteUri() ?>');return false;" rel="nofollow" share_url="<?= $this->router->getRewriteUri() ?>" target="_blank"><i class="fa fa-linkedin"></i><span></span></a></li>
                                    </ul>
                                </div>
     
                                <!--  -->
     
                                <div class="about-more-autor">
                                    <ul class="nav nav-tabs">
                                        
                                        <li class="active">
                                            <a href="single-post.html#more-autor" data-toggle="tab">Tin khác của thành viên này</a>
                                        </li>
                                    </ul>
     
                                    <div class="tab-content">
     
                                        
     
                                        <div class="tab-pane active" id="more-autor">
                                            <div class="more-autor-posts">
                                                <?php if ($postHelper['author']['post_count'] > 0) { ?>
                                                    <?php foreach ($postHelper['author']['posts'] as $postAuthor) { ?>
                                                        <div class="news-post image-post3">
                                                            <img src="/<?= $postAuthor['image'] ?>" alt="<?= $postAuthor['title'] ?>">
                                                            <div class="hover-box">
                                                                <h2><a href="<?= $this->url->get(['for' => 'post_detail', 'slug' => $postAuthor['slug'], 'id' => $postAuthor['id']]) ?>"><?= $postAuthor['title'] ?></a></h2>
                                                                <ul class="post-tags">
                                                                    <li><i class="fa fa-clock-o"></i><?= $postAuthor['created_at'] ?></li>
                                                                </ul>
                                                            </div>
                                                        </div>
                                                    <?php } ?>
                                                <?php } ?>
                                            </div>
                                        </div>
     
                                    </div>
                                </div>
     
                                <!-- carousel box -->
                                <div class="carousel-box owl-wrapper">
                                    <div class="title-section">
                                        <h1><span>Tin cùng chuyên mục</span></h1>
                                    </div>
                                    <div class="owl-carousel" data-num="3">
                                        <?php if (!empty($postRelate)) { ?>
                                            <?php foreach ($postRelate as $post_relate) { ?>
                                                <div class="item news-post image-post3">
                                                    <img height="210" src="/<?= $post_relate['post']['image'] ?>" alt="<?= $post_relate['post']['title'] ?>">
                                                    <div class="hover-box">
                                                        <h2><a href="<?= $post_relate['post']['url'] ?>"><?= $post_relate['post']['title'] ?></a></h2>
                                                        <ul class="post-tags">
                                                            <li><i class="fa fa-clock-o"></i><?= $post_relate['post']['created_at'] ?></li>
                                                        </ul>
                                                    </div>
                                                </div>
                                            <?php } ?>
                                        <?php } ?>
                                    </div>
                                </div>
                                <!-- End carousel box -->
     
                            </div>
                            <!-- End single-post box -->
     
                        </div>
                        <!-- End block content -->
     
                    </div>
     
                    <div class="col-sm-4">
     
                        <!-- sidebar -->
                        <div class="sidebar">
     
                            <div class="widget tab-posts-widget">
     
                                <ul class="nav nav-tabs" id="myTab">
                                    <li class="active">
                                        <a href="index.html#option1" data-toggle="tab">Tiêu điểm</a>
                                    </li>
                                    <li>
                                        <a href="index.html#option2" data-toggle="tab">Nổi bật</a>
                                    </li>
                                    <li>
                                        <a href="index.html#option3" data-toggle="tab">Xem nhiều</a>
                                    </li>
                                </ul>
     
                                <div class="tab-content">
                                    <div class="tab-pane active" id="option1">
                                        <ul class="list-posts">
                                            <?php if ($tabFeaturePost) { ?>
                                                <?php foreach ($tabFeaturePost as $post) { ?>
                                                    <li>
                                                        <a href="<?= $post['post']['url'] ?>"><img src="/<?= $post['post']['image'] ?>" alt="<?= $post['post']['title'] ?>"></a>
                                                        <div class="post-content">
                                                            <h2><a href="<?= $post['post']['url'] ?>"><?= $post['post']['title'] ?> </a></h2>
                                                            <ul class="post-tags">
                                                                <li><i class="fa fa-clock-o"></i><?= $post['post']['created_at'] ?></li>
                                                            </ul>
                                                        </div>
                                                    </li>
                                                <?php } ?>
                                            <?php } ?>
                                        </ul>
                                    </div>
                                    <div class="tab-pane" id="option2">
                                        <ul class="list-posts">
     
                                            <?php if ($tabHotPost) { ?>
                                                <?php foreach ($tabHotPost as $post) { ?>
                                                    <li>
                                                        <a href="<?= $post['post']['url'] ?>"><img src="/<?= $post['post']['image'] ?>" alt="<?= $post['post']['title'] ?>"></a>
                                                        <div class="post-content">
                                                            <h2><a href="<?= $post['post']['url'] ?>"><?= $post['post']['title'] ?> </a></h2>
                                                            <ul class="post-tags">
                                                                <li><i class="fa fa-clock-o"></i><?= $post['post']['created_at'] ?></li>
                                                            </ul>
                                                        </div>
                                                    </li>
                                                <?php } ?>
                                            <?php } ?>
                                        </ul>
                                    </div>
                                    <div class="tab-pane" id="option3">
                                        <ul class="list-posts">
     
                                            <?php if ($tabMostView) { ?>
                                                <?php foreach ($tabMostView as $post) { ?>
                                                    <li>
                                                        <a href="<?= $post['post']['url'] ?>"><img src="/<?= $post['post']['image'] ?>" alt="<?= $post['post']['title'] ?>"></a>
                                                        <div class="post-content">
                                                            <h2><a href="<?= $post['post']['url'] ?>"><?= $post['post']['title'] ?> </a></h2>
                                                            <ul class="post-tags">
                                                                <li><i class="fa fa-clock-o"></i><?= $post['post']['created_at'] ?></li>
                                                            </ul>
                                                        </div>
                                                    </li>
                                                <?php } ?>
                                            <?php } ?>
                                        </ul>
                                    </div>
                                </div>
                            </div>
     
                            <div class="widget post-widget">
                                <div class="title-section">
                                    <h1><span>Video</span></h1>
                                </div>
                                <?php foreach ($videos as $video) { ?>
                                    <div class="news-post video-post">
                                        <img alt="" src="/<?= $video['post']['image'] ?>">
                                        <a href="https://www.youtube.com/watch?v=LL59es7iy8Q" class="video-link"><i class="fa fa-play-circle-o"></i></a>
                                        <div class="hover-box">
                                            <h2><a href="<?= $video['post']['url'] ?>"><?= $video['post']['title'] ?> </a></h2>
                                            <ul class="post-tags">
                                                <li><i class="fa fa-clock-o"></i><?= $video['post']['created_at'] ?></li>
                                            </ul>
                                        </div>
                                    </div>
                                <?php } ?>
                            </div>
     
                            <div class="widget subscribe-widget">
                                <form class="subscribe-form">
                                    <h1>Đăng ký nhận thông tin</h1>
                                    <input type="text" name="sumbscribe" id="subscribe" placeholder="Email"/>
                                    <button id="submit-subscribe">
                                        <i class="fa fa-arrow-circle-right"></i>
                                    </button>
                                </form>
                            </div>
     
                            <div class="widget tags-widget">
     
                                <div class="title-section">
                                    <h1><span>Tag Phổ Biến</span></h1>
                                </div>
     
                                <ul class="tag-list">
                                    <?php if (!empty($topTags)) { ?>
                                        <?php foreach ($topTags as $item) { ?>
                                            <li><a href="<?= $this->url->get(['for' => 'post_tag', 'slug' => $item->slug]) ?>"><?= $item->name ?></a></li>
                                        <?php } ?>
                                    <?php } ?>
                                </ul>
     
                            </div>
                            <?= $this->partial('widget', ['widgets' => $sidebarPost]) ?>
                        </div>
                        <!-- End sidebar -->
     
                    </div>
     
                </div>
     
            </div>
        </section>
        <script type="text/javascript">
            function share_fb(url) {
                window.open('https://www.facebook.com/sharer/sharer.php?u='+url,'facebook-share-dialog',"width=600, height=600")
            }
            function share_gplus(url) {
                window.open('https://plus.google.com/share?url='+url,'','menubar=no,toolbar=no,resizable=yes,scrollbars=yes,height=600,width=600')
            }
            function share_twitter(url) {
                window.open('https://twitter.com/share?'+url,'', 'left=0,top=0,width=600,height=600,personalbar=0,toolbar=0,scrollbars=0,resizable=0')
            }
            function share_linkedin(url) {
                window.open('https://www.linkedin.com/shareArticle?mini=true&url='+url,'', 'left=0,top=0,width=600,height=600,personalbar=0,toolbar=0,scrollbars=0,resizable=0')
            }
        </script>
        <style type="text/css">
            .video-container {
                height: auto !important;
            }
        </style>
     
        <!-- Content END -->
        <!-- Footer -->
        <?= $this->partial('main/footer') ?>
        <!-- Footer END -->
    </div>
    <script type="text/javascript" src="<?= $this->url->path() ?>themes/hotmagazine/js/jquery.min.js"></script>
    <script type="text/javascript" src="<?= $this->url->path() ?>themes/hotmagazine/js/jquery.migrate.js"></script>
    <script type="text/javascript" src="<?= $this->url->path() ?>themes/hotmagazine/js/jquery.bxslider.min.js"></script>
    <script type="text/javascript" src="<?= $this->url->path() ?>themes/hotmagazine/js/jquery.magnific-popup.min.js"></script>
    <script type="text/javascript" src="<?= $this->url->path() ?>themes/hotmagazine/js/bootstrap.min.js"></script>
    <script type="text/javascript" src="<?= $this->url->path() ?>themes/hotmagazine/js/jquery.ticker.js"></script>
    <script type="text/javascript" src="<?= $this->url->path() ?>themes/hotmagazine/js/jquery.imagesloaded.min.js"></script>
    <script type="text/javascript" src="<?= $this->url->path() ?>themes/hotmagazine/js/jquery.isotope.min.js"></script>
    <script type="text/javascript" src="<?= $this->url->path() ?>themes/hotmagazine/js/owl.carousel.min.js"></script>
    <script type="text/javascript" src="<?= $this->url->path() ?>themes/hotmagazine/js/retina-1.1.0.min.js"></script>
    <script type="text/javascript" src="<?= $this->url->path() ?>themes/hotmagazine/js/plugins-scroll.js"></script>
    <script type="text/javascript" src="<?= $this->url->path() ?>themes/hotmagazine/js/script.js?v=<?php echo time() ?>"></script>
    <script type="text/javascript" src="<?= $this->url->path() ?>themes/hotmagazine/js/main.js?v=<?php echo time() ?>"></script>
     
    <script>
        $( document ).ready(function() {
            $('.post-content img').on('click', function () {
                var url = $(this).attr('src');
     
                window.open('https://www.facebook.com/sharer/sharer.php?u='+url,'facebook-share-dialog',"width=600, height=600")
            });
        });
    </script>
     
    <!-- endbuild -->
    </body>
     
    </html>
    #14unknown
    #15Phalcon\Mvc\View\Engine\Volt->render(/home/congvieclamtn/app/themes/hotmagazine/views/desktop/Post/index/detail.volt, Array(22), true)
    #16Phalcon\Mvc\View->_engineRender(Array([.volt] => Object(Application\Mvc\View\Engine\Volt), [.phtml] => Object(Phalcon\Mvc\View\Engine\Php)), Post/index/detail, true, true, null)
    #17Phalcon\Mvc\View->render(index, detail, Array([slug] => van-rui-cua-howard-stringer, [id] => 5089))
    /home/congvieclamtn/app/Bootstrap.php (402)
    <?php
     
    namespace PhalartCMS;
    use Application\Cache\Manager as CacheManager;
    use Cms\Model\Configuration as CmsConfiguration;
    use \PhalartCMS\Plugin\CheckPoint as CheckPointPlugin;
    use \PhalartCMS\Plugin\Localization as LocalizationPlugin;
    use \PhalartCMS\Plugin\AdminLocalization as AdminLocalizationPlugin;
    use \PhalartCMS\Plugin\Acl as AclPlugin;
    use \PhalartCMS\Plugin\MobileDetect as MobileDetectPlugin;
    use PhalartCMS\Plugin\Shortcode;
    use \PhalartCMS\Plugin\Title as TitlePlugin;
     
    /**
     * @copyright Copyright (c) 2018 Phalart
     * @author Nhan Phong <nhanphong@vinadesign.vn>
     * User: nhanphong
     * Date: 6/4/18
     * Time: 10:51 AM
     */
     
    if (APPLICATION_ENV == 'development') {
        date_default_timezone_set('Asia/Bangkok');
        ini_set('display_errors', true);
        error_reporting(E_ALL);
    }
    define('ROOT_APP', __DIR__);
     
    class Bootstrap
    {
     
        public function run()
        {
            $di = new \Phalcon\DI\FactoryDefault();
     
            $application = include_once APPLICATION_PATH . '/config/environment/' . APPLICATION_ENV . '.php';
     
            $config_default = [
                'base_path' => (isset($application['base_path'])) ? $application['base_path'] : null,
                'base_uri' => (isset($application['base_uri'])) ? $application['base_uri'] : null,
                'database'  => (isset($application['database'])) ? $application['database'] : null,
                'cache'     => (isset($application['cache'])) ? $application['cache'] : null,
                'memcache'  => (isset($application['memcache'])) ? $application['memcache'] : null,
                'memcached'  => (isset($application['memcached'])) ? $application['memcached'] : null,
                'assets'    => (isset($application['assets'])) ? $application['assets'] : null,
            ];
            $config = new \Phalcon\Config($config_default);
     
            // Database
            $db = new \Phalcon\Db\Adapter\Pdo\Mysql([
                "host"     => $config->database->host,
                "username" => $config->database->username,
                "password" => $config->database->password,
                "dbname"   => $config->database->dbname,
                "charset"  => $config->database->charset,
            ]);
            $di->set('db', $db);
     
            // Config
     
            $result = $db->fetchOne(
                "SELECT * FROM `cms_configuration` WHERE `key` = 'THEME'"
            );
            $theme = $result['value'];
            define('THEME', $theme);
            define('THEME_PATH', __DIR__ . '/themes/' . $theme);
            require_once LIBRARY_PATH . '/modules/Cms/ConfigApp.php';
            $config2 = \Cms\ConfigApp::get();
            $config->merge($config2);
            $di->set('config', $config);
     
            // Registry
            $registry = new \Phalcon\Registry();
            $di->set('registry', $registry);
     
            // Loader
            $loader = new \Phalcon\Loader();
            $loader->registerNamespaces($config->loader->namespaces->toArray());
            $loader->registerDirs([LIBRARY_PATH . "/plugins/"]);
            $loader->registerFiles([APPLICATION_PATH . '/../vendor/autoload.php']);
            $loader->register();
     
     
            // Get Option setting
            $di->set('options', new \PhalartCMS\Plugin\Options());
            // Get Option setting
     
            // View
            $this->initView($di);
            $this->initSimpleView($di);
     
            // URL
            $url = new \Phalcon\Mvc\Url();
            $url->setBasePath($config->base_path);
            $url->setBaseUri($config->base_path);
            $di->set('url', $url);
     
            // Cache
            $this->initCache($di);
     
            // CMS
            $cmsModel = new CmsConfiguration();
            $registry->cms = $cmsModel->getConfig(); // Отправляем в Registry
     
            // Application
            $application = new \Phalcon\Mvc\Application();
            $application->registerModules($config->modules->toArray());
     
            // Events Manager, Dispatcher
            $this->initEventManager($di);
     
            // Session
            $session = new \Phalcon\Session\Adapter\Files();
            $session->start();
            $di->set('session', $session);
     
            $acl = new \Application\Acl\DefaultAcl();
            $di->set('acl', $acl);
     
            // JS Assets
            $this->initAssetsManager($di);
     
            // Flash helper
            $flash = new \Phalcon\Flash\Session([
                'error'   => 'alert alert-danger',
                'success' => 'alert alert-success',
                'notice'  => 'alert alert-info',
                'warning' => 'alert alert-warning',
            ]);
            $flash->setAutoescape(false);
            $di->set('flash', $flash);
     
            $di->set('helper', new \Application\Mvc\Helper());
     
            // Routing
            $this->initRouting($application, $di);
     
            $application->setDI($di);
            $di->setShared('shortcode', new Shortcode($application));
     
            // Main dispatching process
            $response = $this->dispatch($di);
            $response->send();
     
        }
     
        private function initRouting($application, $di)
        {
            $router = new \Application\Mvc\Router\DefaultRouter();
            $router->setDi($di);
            foreach ($application->getModules() as $module) {
                $routesClassName = str_replace('Module', 'Routes', $module['className']);
                if (class_exists($routesClassName)) {
                    $routesClass = new $routesClassName();
                    $router = $routesClass->init($router);
                }
                $initClassName = str_replace('Module', 'Init', $module['className']);
                if (class_exists($initClassName)) {
                    new $initClassName();
                }
            }
            $di->set('router', $router);
        }
     
        private function initAssetsManager($di)
        {
            $config = $di->get('config');
            $assetsManager = new \Application\Assets\Manager();
            $js_collection = $assetsManager->collection('js')
                ->setLocal(true)
                ->addFilter(new \Phalcon\Assets\Filters\Jsmin())
                ->setTargetPath(ROOT . '/assets/js.js')
                ->setTargetUri('assets/js.js')
                ->join(true);
            if ($config->assets->js) {
                foreach ($config->assets->js as $js) {
                    $js_collection->addJs(ROOT . '/' . $js);
                }
            }
     
            // Admin JS Assets
            $assetsManager->collection('modules-admin-js')
                ->setLocal(true)
                ->addFilter(new \Phalcon\Assets\Filters\Jsmin())
                ->setTargetPath(ROOT . '/assets/modules-admin.js')
                ->setTargetUri('assets/modules-admin.js')
                ->join(true);
     
            // Admin LESS Assets
            $assetsManager->collection('modules-admin-less')
                ->setLocal(true)
                ->addFilter(new \Application\Assets\Filter\Less())
                ->setTargetPath(ROOT . '/assets/modules-admin.less')
                ->setTargetUri('assets/modules-admin.less')
                ->join(true)
                ->addCss(APPLICATION_PATH . '/modules/Admin/assets/admin.less');
     
            $di->set('assets', $assetsManager);
        }
     
        private function initEventManager($di)
        {
            $eventsManager = new \Phalcon\Events\Manager();
            $dispatcher = new \Phalcon\Mvc\Dispatcher();
     
            $eventsManager->attach("dispatch:beforeDispatchLoop", function ($event, $dispatcher) use ($di) {
                new CheckPointPlugin($di->get('request'));
                new LocalizationPlugin($dispatcher);
                new AdminLocalizationPlugin($di->get('config'));
                new AclPlugin($di->get('acl'), $dispatcher, $di->get('view'));
                new MobileDetectPlugin($di->get('session'), $di->get('view'), $di->get('request'));
            });
     
            $eventsManager->attach("dispatch:afterDispatchLoop", function ($event, $dispatcher) use ($di) {
                new \Seo\Plugin\SeoManager($dispatcher, $di->get('request'), $di->get('router'), $di->get('view'));
                new TitlePlugin($di);
            });
     
            // Profiler
            $registry = $di->get('registry');
            if ($registry->cms['PROFILER']) {
                $profiler = new \Phalcon\Db\Profiler();
                $di->set('profiler', $profiler);
     
                $eventsManager->attach('db', function ($event, $db) use ($profiler) {
                    if ($event->getType() == 'beforeQuery') {
                        $profiler->startProfile($db->getSQLStatement());
                    }
                    if ($event->getType() == 'afterQuery') {
                        $profiler->stopProfile();
                    }
                });
            }
     
            $db = $di->get('db');
            $db->setEventsManager($eventsManager);
     
            $dispatcher->setEventsManager($eventsManager);
            $di->set('dispatcher', $dispatcher);
        }
     
        private function initView($di)
        {
            $view = new \Phalcon\Mvc\View();
            $theme = THEME;
            define('MAIN_VIEW_PATH', ROOT_APP . "/themes/{$theme}/views/");
     
            /*$view->setViewsDir(MAIN_VIEW_PATH);
            $view->setPartialsDir(MAIN_VIEW_PATH . "/partials/");
            $view->setRenderLevel(\Phalcon\Mvc\View::LEVEL_ACTION_VIEW);*/
     
            // Volt
            $volt = new \Application\Mvc\View\Engine\Volt($view, $di);
            $volt->setOptions([
                'compiledPath' => APPLICATION_PATH . '/../data/cache/volt/',
                'compileAlways'     => !(APPLICATION_ENV == 'development'),
            ]);
            $volt->initCompiler();
     
     
            $phtml = new \Phalcon\Mvc\View\Engine\Php($view, $di);
            $viewEngines = [
                ".volt"  => $volt,
                ".phtml" => $phtml,
            ];
     
            $view->registerEngines($viewEngines);
     
            $ajax = $di->get('request')->getQuery('_ajax');
            if ($ajax) {
                $view->setRenderLevel(\Phalcon\Mvc\View::LEVEL_LAYOUT);
            }
     
            $di->set('view', $view);
     
            return $view;
        }
     
        private function initSimpleView($di)
        {
            $view = new \Phalcon\Mvc\View\Simple();
     
            // Volt
            $volt = new \Application\Mvc\View\Engine\Volt($view, $di);
            $volt->setOptions(['compiledPath' => APPLICATION_PATH . '/../data/cache/volt/']);
            $volt->initCompiler();
     
            $phtml = new \Phalcon\Mvc\View\Engine\Php($view, $di);
            $viewEngines = [
                ".volt"  => $volt,
                ".phtml" => $phtml,
            ];
     
            $view->registerEngines($viewEngines);
            $di->set('simpleView', $view);
     
            return $view;
        }
     
        private function initCache($di)
        {
            $config = $di->get('config');
     
            $cacheFrontend = new \Phalcon\Cache\Frontend\Data([
                "lifetime" => 60,
                "prefix"   => HOST_HASH,
            ]);
     
            $cache = null;
            switch ($config->cache) {
                case 'file':
                    $cache = new \Phalcon\Cache\Backend\File($cacheFrontend, [
                        "cacheDir" => APPLICATION_PATH . "/../data/cache/backend/"
                    ]);
                    break;
                case 'memcache':
                    $cache = new \Phalcon\Cache\Backend\Memcache(
                        $cacheFrontend, [
                        "host" => $config->memcache->host,
                        "port" => $config->memcache->port,
                    ]);
                    break;
                case 'memcached':
                    $cache = new \Phalcon\Cache\Backend\Libmemcached(
                        $cacheFrontend, [
                        "host" => $config->memcached->host,
                        "port" => $config->memcached->port,
                    ]);
                    break;
            }
            $di->set('cache', $cache, true);
            $di->set('modelsCache', $cache, true);
     
            \Application\Widget\Proxy::$cache = $cache; // Modules Widget System
     
            $modelsMetadata = new \Phalcon\Mvc\Model\Metadata\Memory();
            $di->set('modelsMetadata', $modelsMetadata);
     
            $di->set('cacheManager', new CacheManager());
        }
     
        private function dispatch($di)
        {
            $router = $di['router'];
     
            $router->handle();
     
            $view = $di['view'];
     
            $dispatcher = $di['dispatcher'];
     
            $response = $di['response'];
     
            $dispatcher->setModuleName($router->getModuleName());
            $dispatcher->setControllerName($router->getControllerName());
            $dispatcher->setActionName($router->getActionName());
            $dispatcher->setParams($router->getParams());
     
            $moduleName = \Application\Utils\ModuleName::camelize($router->getModuleName());
     
            $ModuleClassName = $moduleName . '\Module';
            
            if (class_exists($ModuleClassName)) {
                $module = new $ModuleClassName;
                $module->registerAutoloaders();
                $module->registerServices($di);
            }
     
            $view->start();
     
            $registry = $di['registry'];
            if ($registry->cms['DEBUG_MODE']) {
                $debug = new \Phalcon\Debug();
                $debug->listen();
     
                $dispatcher->dispatch();
            } else {
                try {
                    $dispatcher->dispatch();
                } catch (\Phalcon\Exception $e) {
                    // Errors catching
     
                    $view->setViewsDir(__DIR__ . '/modules/Index/views/');
                    $view->setPartialsDir('');
                    $view->e = $e;
     
                    if ($e instanceof \Phalcon\Mvc\Dispatcher\Exception) {
                        $response->setStatusCode(404, 'Not Found');
                        $view->partial('error/error404');
                    } else {
                        $response->setStatusCode(503, 'Service Unavailable');
                        $view->partial('error/error503');
                    }
     
                    return $response;
                }
            }
     
            $view->render(
                $dispatcher->getControllerName(),
                $dispatcher->getActionName(),
                $dispatcher->getParams()
            );
     
            $view->finish();
     
            // AJAX
            $request = $di['request'];
            $_ajax = $request->getQuery('_ajax');
            if ($_ajax) {
                $contents = $view->getContent();
     
                $return = new \stdClass();
                $return->html = $contents;
                $return->title = $di->get('helper')->title()->get();
                $return->success = true;
     
                if ($view->bodyClass) {
                    $return->bodyClass = $view->bodyClass;
                }
     
                $headers = $response->getHeaders()->toArray();
                if (isset($headers[404]) || isset($headers[503])) {
                    $return->success = false;
                }
                $response->setContentType('application/json', 'UTF-8');
                $response->setContent(json_encode($return));
            } else {
                $response->setContent($view->getContent());
            }
     
            return $response;
        }
     
    }
    
    #18PhalartCMS\Bootstrap->dispatch(null)
    /home/congvieclamtn/app/Bootstrap.php (142)
    <?php
     
    namespace PhalartCMS;
    use Application\Cache\Manager as CacheManager;
    use Cms\Model\Configuration as CmsConfiguration;
    use \PhalartCMS\Plugin\CheckPoint as CheckPointPlugin;
    use \PhalartCMS\Plugin\Localization as LocalizationPlugin;
    use \PhalartCMS\Plugin\AdminLocalization as AdminLocalizationPlugin;
    use \PhalartCMS\Plugin\Acl as AclPlugin;
    use \PhalartCMS\Plugin\MobileDetect as MobileDetectPlugin;
    use PhalartCMS\Plugin\Shortcode;
    use \PhalartCMS\Plugin\Title as TitlePlugin;
     
    /**
     * @copyright Copyright (c) 2018 Phalart
     * @author Nhan Phong <nhanphong@vinadesign.vn>
     * User: nhanphong
     * Date: 6/4/18
     * Time: 10:51 AM
     */
     
    if (APPLICATION_ENV == 'development') {
        date_default_timezone_set('Asia/Bangkok');
        ini_set('display_errors', true);
        error_reporting(E_ALL);
    }
    define('ROOT_APP', __DIR__);
     
    class Bootstrap
    {
     
        public function run()
        {
            $di = new \Phalcon\DI\FactoryDefault();
     
            $application = include_once APPLICATION_PATH . '/config/environment/' . APPLICATION_ENV . '.php';
     
            $config_default = [
                'base_path' => (isset($application['base_path'])) ? $application['base_path'] : null,
                'base_uri' => (isset($application['base_uri'])) ? $application['base_uri'] : null,
                'database'  => (isset($application['database'])) ? $application['database'] : null,
                'cache'     => (isset($application['cache'])) ? $application['cache'] : null,
                'memcache'  => (isset($application['memcache'])) ? $application['memcache'] : null,
                'memcached'  => (isset($application['memcached'])) ? $application['memcached'] : null,
                'assets'    => (isset($application['assets'])) ? $application['assets'] : null,
            ];
            $config = new \Phalcon\Config($config_default);
     
            // Database
            $db = new \Phalcon\Db\Adapter\Pdo\Mysql([
                "host"     => $config->database->host,
                "username" => $config->database->username,
                "password" => $config->database->password,
                "dbname"   => $config->database->dbname,
                "charset"  => $config->database->charset,
            ]);
            $di->set('db', $db);
     
            // Config
     
            $result = $db->fetchOne(
                "SELECT * FROM `cms_configuration` WHERE `key` = 'THEME'"
            );
            $theme = $result['value'];
            define('THEME', $theme);
            define('THEME_PATH', __DIR__ . '/themes/' . $theme);
            require_once LIBRARY_PATH . '/modules/Cms/ConfigApp.php';
            $config2 = \Cms\ConfigApp::get();
            $config->merge($config2);
            $di->set('config', $config);
     
            // Registry
            $registry = new \Phalcon\Registry();
            $di->set('registry', $registry);
     
            // Loader
            $loader = new \Phalcon\Loader();
            $loader->registerNamespaces($config->loader->namespaces->toArray());
            $loader->registerDirs([LIBRARY_PATH . "/plugins/"]);
            $loader->registerFiles([APPLICATION_PATH . '/../vendor/autoload.php']);
            $loader->register();
     
     
            // Get Option setting
            $di->set('options', new \PhalartCMS\Plugin\Options());
            // Get Option setting
     
            // View
            $this->initView($di);
            $this->initSimpleView($di);
     
            // URL
            $url = new \Phalcon\Mvc\Url();
            $url->setBasePath($config->base_path);
            $url->setBaseUri($config->base_path);
            $di->set('url', $url);
     
            // Cache
            $this->initCache($di);
     
            // CMS
            $cmsModel = new CmsConfiguration();
            $registry->cms = $cmsModel->getConfig(); // Отправляем в Registry
     
            // Application
            $application = new \Phalcon\Mvc\Application();
            $application->registerModules($config->modules->toArray());
     
            // Events Manager, Dispatcher
            $this->initEventManager($di);
     
            // Session
            $session = new \Phalcon\Session\Adapter\Files();
            $session->start();
            $di->set('session', $session);
     
            $acl = new \Application\Acl\DefaultAcl();
            $di->set('acl', $acl);
     
            // JS Assets
            $this->initAssetsManager($di);
     
            // Flash helper
            $flash = new \Phalcon\Flash\Session([
                'error'   => 'alert alert-danger',
                'success' => 'alert alert-success',
                'notice'  => 'alert alert-info',
                'warning' => 'alert alert-warning',
            ]);
            $flash->setAutoescape(false);
            $di->set('flash', $flash);
     
            $di->set('helper', new \Application\Mvc\Helper());
     
            // Routing
            $this->initRouting($application, $di);
     
            $application->setDI($di);
            $di->setShared('shortcode', new Shortcode($application));
     
            // Main dispatching process
            $response = $this->dispatch($di);
            $response->send();
     
        }
     
        private function initRouting($application, $di)
        {
            $router = new \Application\Mvc\Router\DefaultRouter();
            $router->setDi($di);
            foreach ($application->getModules() as $module) {
                $routesClassName = str_replace('Module', 'Routes', $module['className']);
                if (class_exists($routesClassName)) {
                    $routesClass = new $routesClassName();
                    $router = $routesClass->init($router);
                }
                $initClassName = str_replace('Module', 'Init', $module['className']);
                if (class_exists($initClassName)) {
                    new $initClassName();
                }
            }
            $di->set('router', $router);
        }
     
        private function initAssetsManager($di)
        {
            $config = $di->get('config');
            $assetsManager = new \Application\Assets\Manager();
            $js_collection = $assetsManager->collection('js')
                ->setLocal(true)
                ->addFilter(new \Phalcon\Assets\Filters\Jsmin())
                ->setTargetPath(ROOT . '/assets/js.js')
                ->setTargetUri('assets/js.js')
                ->join(true);
            if ($config->assets->js) {
                foreach ($config->assets->js as $js) {
                    $js_collection->addJs(ROOT . '/' . $js);
                }
            }
     
            // Admin JS Assets
            $assetsManager->collection('modules-admin-js')
                ->setLocal(true)
                ->addFilter(new \Phalcon\Assets\Filters\Jsmin())
                ->setTargetPath(ROOT . '/assets/modules-admin.js')
                ->setTargetUri('assets/modules-admin.js')
                ->join(true);
     
            // Admin LESS Assets
            $assetsManager->collection('modules-admin-less')
                ->setLocal(true)
                ->addFilter(new \Application\Assets\Filter\Less())
                ->setTargetPath(ROOT . '/assets/modules-admin.less')
                ->setTargetUri('assets/modules-admin.less')
                ->join(true)
                ->addCss(APPLICATION_PATH . '/modules/Admin/assets/admin.less');
     
            $di->set('assets', $assetsManager);
        }
     
        private function initEventManager($di)
        {
            $eventsManager = new \Phalcon\Events\Manager();
            $dispatcher = new \Phalcon\Mvc\Dispatcher();
     
            $eventsManager->attach("dispatch:beforeDispatchLoop", function ($event, $dispatcher) use ($di) {
                new CheckPointPlugin($di->get('request'));
                new LocalizationPlugin($dispatcher);
                new AdminLocalizationPlugin($di->get('config'));
                new AclPlugin($di->get('acl'), $dispatcher, $di->get('view'));
                new MobileDetectPlugin($di->get('session'), $di->get('view'), $di->get('request'));
            });
     
            $eventsManager->attach("dispatch:afterDispatchLoop", function ($event, $dispatcher) use ($di) {
                new \Seo\Plugin\SeoManager($dispatcher, $di->get('request'), $di->get('router'), $di->get('view'));
                new TitlePlugin($di);
            });
     
            // Profiler
            $registry = $di->get('registry');
            if ($registry->cms['PROFILER']) {
                $profiler = new \Phalcon\Db\Profiler();
                $di->set('profiler', $profiler);
     
                $eventsManager->attach('db', function ($event, $db) use ($profiler) {
                    if ($event->getType() == 'beforeQuery') {
                        $profiler->startProfile($db->getSQLStatement());
                    }
                    if ($event->getType() == 'afterQuery') {
                        $profiler->stopProfile();
                    }
                });
            }
     
            $db = $di->get('db');
            $db->setEventsManager($eventsManager);
     
            $dispatcher->setEventsManager($eventsManager);
            $di->set('dispatcher', $dispatcher);
        }
     
        private function initView($di)
        {
            $view = new \Phalcon\Mvc\View();
            $theme = THEME;
            define('MAIN_VIEW_PATH', ROOT_APP . "/themes/{$theme}/views/");
     
            /*$view->setViewsDir(MAIN_VIEW_PATH);
            $view->setPartialsDir(MAIN_VIEW_PATH . "/partials/");
            $view->setRenderLevel(\Phalcon\Mvc\View::LEVEL_ACTION_VIEW);*/
     
            // Volt
            $volt = new \Application\Mvc\View\Engine\Volt($view, $di);
            $volt->setOptions([
                'compiledPath' => APPLICATION_PATH . '/../data/cache/volt/',
                'compileAlways'     => !(APPLICATION_ENV == 'development'),
            ]);
            $volt->initCompiler();
     
     
            $phtml = new \Phalcon\Mvc\View\Engine\Php($view, $di);
            $viewEngines = [
                ".volt"  => $volt,
                ".phtml" => $phtml,
            ];
     
            $view->registerEngines($viewEngines);
     
            $ajax = $di->get('request')->getQuery('_ajax');
            if ($ajax) {
                $view->setRenderLevel(\Phalcon\Mvc\View::LEVEL_LAYOUT);
            }
     
            $di->set('view', $view);
     
            return $view;
        }
     
        private function initSimpleView($di)
        {
            $view = new \Phalcon\Mvc\View\Simple();
     
            // Volt
            $volt = new \Application\Mvc\View\Engine\Volt($view, $di);
            $volt->setOptions(['compiledPath' => APPLICATION_PATH . '/../data/cache/volt/']);
            $volt->initCompiler();
     
            $phtml = new \Phalcon\Mvc\View\Engine\Php($view, $di);
            $viewEngines = [
                ".volt"  => $volt,
                ".phtml" => $phtml,
            ];
     
            $view->registerEngines($viewEngines);
            $di->set('simpleView', $view);
     
            return $view;
        }
     
        private function initCache($di)
        {
            $config = $di->get('config');
     
            $cacheFrontend = new \Phalcon\Cache\Frontend\Data([
                "lifetime" => 60,
                "prefix"   => HOST_HASH,
            ]);
     
            $cache = null;
            switch ($config->cache) {
                case 'file':
                    $cache = new \Phalcon\Cache\Backend\File($cacheFrontend, [
                        "cacheDir" => APPLICATION_PATH . "/../data/cache/backend/"
                    ]);
                    break;
                case 'memcache':
                    $cache = new \Phalcon\Cache\Backend\Memcache(
                        $cacheFrontend, [
                        "host" => $config->memcache->host,
                        "port" => $config->memcache->port,
                    ]);
                    break;
                case 'memcached':
                    $cache = new \Phalcon\Cache\Backend\Libmemcached(
                        $cacheFrontend, [
                        "host" => $config->memcached->host,
                        "port" => $config->memcached->port,
                    ]);
                    break;
            }
            $di->set('cache', $cache, true);
            $di->set('modelsCache', $cache, true);
     
            \Application\Widget\Proxy::$cache = $cache; // Modules Widget System
     
            $modelsMetadata = new \Phalcon\Mvc\Model\Metadata\Memory();
            $di->set('modelsMetadata', $modelsMetadata);
     
            $di->set('cacheManager', new CacheManager());
        }
     
        private function dispatch($di)
        {
            $router = $di['router'];
     
            $router->handle();
     
            $view = $di['view'];
     
            $dispatcher = $di['dispatcher'];
     
            $response = $di['response'];
     
            $dispatcher->setModuleName($router->getModuleName());
            $dispatcher->setControllerName($router->getControllerName());
            $dispatcher->setActionName($router->getActionName());
            $dispatcher->setParams($router->getParams());
     
            $moduleName = \Application\Utils\ModuleName::camelize($router->getModuleName());
     
            $ModuleClassName = $moduleName . '\Module';
            
            if (class_exists($ModuleClassName)) {
                $module = new $ModuleClassName;
                $module->registerAutoloaders();
                $module->registerServices($di);
            }
     
            $view->start();
     
            $registry = $di['registry'];
            if ($registry->cms['DEBUG_MODE']) {
                $debug = new \Phalcon\Debug();
                $debug->listen();
     
                $dispatcher->dispatch();
            } else {
                try {
                    $dispatcher->dispatch();
                } catch (\Phalcon\Exception $e) {
                    // Errors catching
     
                    $view->setViewsDir(__DIR__ . '/modules/Index/views/');
                    $view->setPartialsDir('');
                    $view->e = $e;
     
                    if ($e instanceof \Phalcon\Mvc\Dispatcher\Exception) {
                        $response->setStatusCode(404, 'Not Found');
                        $view->partial('error/error404');
                    } else {
                        $response->setStatusCode(503, 'Service Unavailable');
                        $view->partial('error/error503');
                    }
     
                    return $response;
                }
            }
     
            $view->render(
                $dispatcher->getControllerName(),
                $dispatcher->getActionName(),
                $dispatcher->getParams()
            );
     
            $view->finish();
     
            // AJAX
            $request = $di['request'];
            $_ajax = $request->getQuery('_ajax');
            if ($_ajax) {
                $contents = $view->getContent();
     
                $return = new \stdClass();
                $return->html = $contents;
                $return->title = $di->get('helper')->title()->get();
                $return->success = true;
     
                if ($view->bodyClass) {
                    $return->bodyClass = $view->bodyClass;
                }
     
                $headers = $response->getHeaders()->toArray();
                if (isset($headers[404]) || isset($headers[503])) {
                    $return->success = false;
                }
                $response->setContentType('application/json', 'UTF-8');
                $response->setContent(json_encode($return));
            } else {
                $response->setContent($view->getContent());
            }
     
            return $response;
        }
     
    }
    
    #19PhalartCMS\Bootstrap->run()
    /home/congvieclamtn/public/index.php (46)
    <?php
     
    /**
     * @copyright Copyright (c) 2018 Phalart
     * @author Nhan Phong <nhanphong@vinadesign.vn>
     * User: nhanphong
     * Date: 6/4/18
     * Time: 10:51 AM
     */
    chdir(dirname(__DIR__));
     
    define('ROOT', __DIR__);
    define('HOST_HASH', substr(md5($_SERVER['HTTP_HOST']), 0, 12));
     
    if (isset($_SERVER['APPLICATION_ENV'])) {
        $applicationEnv = ($_SERVER['APPLICATION_ENV'] ? $_SERVER['APPLICATION_ENV'] : 'production');
    } else {
        $applicationEnv = (getenv('APPLICATION_ENV') ? getenv('APPLICATION_ENV') : 'production');
    }
    // if (!isset($_GET['dev'])) {
    //     echo "dang bao tri";
    //     die;
    // }
     
    define('APPLICATION_ENV', $applicationEnv);
    define('BASE_URL', (isset($_SERVER['HTTPS']) ? "https" : "http") . "://$_SERVER[HTTP_HOST]");
    $actual_link = (isset($_SERVER['HTTPS']) ? "https" : "http") . "://$_SERVER[HTTP_HOST]$_SERVER[REQUEST_URI]";
    $parts = parse_url($actual_link);
    $prefix = substr($parts['path'], 1);
    $part = explode('/', $prefix);
    $admin = 'admin';
    $theme = 'blog';
    //define('THEME', $theme);
    if ($part[0] != $admin) {
        define('IS_ADMIN', false);
        define('APPLICATION_PATH', __DIR__ . '/../app');
        require_once APPLICATION_PATH . '/Bootstrap.php';
    } else {
        define('IS_ADMIN', true);
        define('APPLICATION_PATH', __DIR__ . '/../admin');
        define('ADMINISTRATOR_PATH', __DIR__ . '/../admin');
        require_once ADMINISTRATOR_PATH . '/Bootstrap.php';
    }
    define('LIBRARY_PATH', __DIR__ . '/../library');
    $bootstrap = new PhalartCMS\Bootstrap();
    $bootstrap->run();
    
    KeyValue
    _url/van-rui-cua-howard-stringer-5089.html
    KeyValue
    USERcongvieclamtn
    HOME/home/congvieclamtn
    HTTP_HOSTthanhgiong.vn
    HTTP_ACCEPT_ENCODINGgzip, br, zstd, deflate
    HTTP_USER_AGENTMozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)
    HTTP_ACCEPT*/*
    APPLICATION_ENVproduction
    SCRIPT_FILENAME/home/congvieclamtn/public/index.php
    PATH_TRANSLATED/home/congvieclamtn/public
    PATH_INFO
    REDIRECT_STATUS200
    SERVER_NAMEthanhgiong.vn
    SERVER_PORT443
    SERVER_ADDR192.168.51.101
    REMOTE_PORT25404
    REMOTE_ADDR216.73.216.128
    SERVER_SOFTWAREnginx/1.18.0
    GATEWAY_INTERFACECGI/1.1
    HTTPSon
    REQUEST_SCHEMEhttps
    SERVER_PROTOCOLHTTP/1.1
    DOCUMENT_ROOT/home/congvieclamtn/public
    DOCUMENT_URI/index.php
    REQUEST_URI/van-rui-cua-howard-stringer-5089.html
    SCRIPT_NAME/index.php
    CONTENT_LENGTH
    CONTENT_TYPE
    REQUEST_METHODGET
    QUERY_STRING_url=/van-rui-cua-howard-stringer-5089.html
    FCGI_ROLERESPONDER
    PHP_SELF/index.php
    REQUEST_TIME_FLOAT1765901935.9635
    REQUEST_TIME1765901935
    #Path
    0/home/congvieclamtn/public/index.php
    1/home/congvieclamtn/app/Bootstrap.php
    2/home/congvieclamtn/app/config/environment/production.php
    3/home/congvieclamtn/library/modules/Cms/ConfigApp.php
    4/home/congvieclamtn/app/config/global.php
    5/home/congvieclamtn/app/config/modules.php
    6/home/congvieclamtn/library/modules/Application/Loader/Modules.php
    7/home/congvieclamtn/library/config/modules.php
    8/home/congvieclamtn/vendor/autoload.php
    9/home/congvieclamtn/vendor/composer/autoload_real.php
    10/home/congvieclamtn/vendor/composer/ClassLoader.php
    11/home/congvieclamtn/vendor/composer/autoload_static.php
    12/home/congvieclamtn/vendor/cakephp/core/functions.php
    13/home/congvieclamtn/vendor/symfony/polyfill-ctype/bootstrap.php
    14/home/congvieclamtn/vendor/symfony/polyfill-mbstring/bootstrap.php
    15/home/congvieclamtn/vendor/cakephp/utility/bootstrap.php
    16/home/congvieclamtn/vendor/cakephp/utility/Inflector.php
    17/home/congvieclamtn/vendor/cakephp/collection/functions.php
    18/home/congvieclamtn/library/plugins/Options.php
    19/home/congvieclamtn/library/modules/Cms/Model/Configuration.php
    20/home/congvieclamtn/library/modules/Application/Mvc/View/Engine/Volt.php
    21/home/congvieclamtn/library/modules/Application/Widget/Proxy.php
    22/home/congvieclamtn/library/modules/Application/Cache/Manager.php
    23/home/congvieclamtn/library/modules/Application/Acl/DefaultAcl.php
    24/home/congvieclamtn/app/config/acl.php
    25/home/congvieclamtn/library/modules/Application/Assets/Manager.php
    26/home/congvieclamtn/library/modules/Application/Assets/Filter/Less.php
    27/home/congvieclamtn/library/modules/Application/Mvc/Helper.php
    28/home/congvieclamtn/library/modules/Menu/Helper/Menu.php
    29/home/congvieclamtn/library/modules/Application/Mvc/Router/DefaultRouter.php
    30/home/congvieclamtn/library/modules/Api/Routes.php
    31/home/congvieclamtn/app/themes/hotmagazine/modules/Index/Routes.php
    32/home/congvieclamtn/library/modules/Application/Mvc/Helper/CmsCache.php
    33/home/congvieclamtn/app/themes/hotmagazine/modules/Seo/Routes.php
    34/home/congvieclamtn/app/themes/hotmagazine/modules/Admin/Routes.php
    35/home/congvieclamtn/app/themes/hotmagazine/modules/Post/Routes.php
    36/home/congvieclamtn/app/themes/hotmagazine/modules/ShopMbn/Routes.php
    37/home/congvieclamtn/app/themes/hotmagazine/modules/Search/Routes.php
    38/home/congvieclamtn/app/themes/hotmagazine/modules/Contact/Routes.php
    39/home/congvieclamtn/app/themes/hotmagazine/modules/Sitemap/Routes.php
    40/home/congvieclamtn/app/themes/hotmagazine/modules/Product/Routes.php
    41/home/congvieclamtn/app/themes/hotmagazine/modules/Cart/Routes.php
    42/home/congvieclamtn/app/themes/hotmagazine/modules/Documents/Routes.php
    43/home/congvieclamtn/library/plugins/Shortcode.php
    44/home/congvieclamtn/library/plugins/WP/formatting.php
    45/home/congvieclamtn/library/plugins/WP/shortcodes.php
    46/home/congvieclamtn/library/modules/Application/Utils/ModuleName.php
    47/home/congvieclamtn/app/themes/hotmagazine/modules/Post/Module.php
    48/home/congvieclamtn/library/plugins/CheckPoint.php
    49/home/congvieclamtn/library/plugins/Localization.php
    50/home/congvieclamtn/library/modules/Cms/Model/Translate.php
    51/home/congvieclamtn/library/plugins/AdminLocalization.php
    52/home/congvieclamtn/data/translations/admin/en.php
    53/home/congvieclamtn/library/plugins/Acl.php
    54/home/congvieclamtn/library/plugins/MobileDetect.php
    55/home/congvieclamtn/vendor/mobiledetect/mobiledetectlib/Mobile_Detect.php
    56/home/congvieclamtn/app/themes/hotmagazine/modules/Post/Controller/IndexController.php
    57/home/congvieclamtn/library/modules/FrontEnd/Controller/LoaderController.php
    58/home/congvieclamtn/library/modules/Application/Mvc/Controller.php
    59/home/congvieclamtn/library/modules/Theme/Model/Theme.php
    60/home/congvieclamtn/library/modules/Application/Mvc/Model/Model.php
    61/home/congvieclamtn/app/themes/hotmagazine/modules/Admin/Model/AdminUser.php
    62/home/congvieclamtn/library/modules/Admin/Model/AdminUser.php
    63/home/congvieclamtn/library/modules/Menu/Model/Menu.php
    64/home/congvieclamtn/library/modules/Slider/Model/Slider.php
    65/home/congvieclamtn/app/themes/hotmagazine/modules/Post/Model/Post.php
    66/home/congvieclamtn/library/modules/Post/Model/Post.php
    67/home/congvieclamtn/library/modules/Post/Model/PostCategory.php
    68/home/congvieclamtn/library/modules/Category/Model/Category.php
    69/home/congvieclamtn/library/modules/Application/Mvc/Helper/Breadcrumb.php
    70/home/congvieclamtn/library/modules/Post/Model/PostContent.php
    71/home/congvieclamtn/library/modules/Application/Mvc/Helper/Title.php
    72/home/congvieclamtn/library/modules/Application/Mvc/Helper/Meta.php
    73/home/congvieclamtn/app/themes/hotmagazine/modules/Post/Model/Helper/PostHelper.php
    74/home/congvieclamtn/library/modules/Post/Model/Helper/PostHelper.php
    75/home/congvieclamtn/library/modules/Tag/Model/Tag.php
    76/home/congvieclamtn/app/themes/hotmagazine/modules/Seo/Plugin/SeoManager.php
    77/home/congvieclamtn/app/themes/hotmagazine/modules/Seo/Model/Manager.php
    78/home/congvieclamtn/library/plugins/Title.php
    79/home/congvieclamtn/data/cache/volt/%%home%%congvieclamtn%%app%%themes%%hotmagazine%%views%%desktop%%post%%index%%detail.volt.php
    80/home/congvieclamtn/data/cache/volt/%%home%%congvieclamtn%%app%%themes%%hotmagazine%%views%%desktop%%partials%%main%%header.volt.php
    81/home/congvieclamtn/app/themes/hotmagazine/modules/Base/Widget/BaseWidget.php
    82/home/congvieclamtn/library/modules/Application/Widget/AbstractWidget.php
    83/home/congvieclamtn/library/modules/Application/Utils/Utility.php
    84/home/congvieclamtn/library/modules/Post/Model/PostTag.php
    85/home/congvieclamtn/data/cache/volt/%%home%%congvieclamtn%%app%%themes%%hotmagazine%%views%%desktop%%partials%%widget.volt.php
    86/home/congvieclamtn/app/themes/hotmagazine/modules/Index/Widget/IndexWidget.php
    87/home/congvieclamtn/data/cache/volt/%%home%%congvieclamtn%%app%%themes%%hotmagazine%%views%%desktop%%index%%widget%%widget_banner.volt.php
    88/home/congvieclamtn/data/cache/volt/%%home%%congvieclamtn%%app%%themes%%hotmagazine%%views%%desktop%%partials%%main%%footer.volt.php
    89/home/congvieclamtn/app/themes/hotmagazine/modules/Menu/Widget/MenuWidget.php
    Memory
    Usage4194304