public function callAction($method, $parameters)
 {
     parent::initLayout($method, $parameters);
     if (!$this->is_ajax) {
         $this->_current_controller = $this->getCurrentController();
         $this->_current_controller_parts = explode('/', $this->_current_controller);
         $this->_current_action = $this->getCurrentAction();
         $assets = json_decode(file_get_contents(base_path('assets.json')), true);
         foreach ($assets['libraries'] as $library_name => $library_data) {
             $css = isset($library_data['css']) ? $library_data['css'] : null;
             $js = isset($library_data['js']) ? $library_data['js'] : null;
             $this->addLibrary($library_name, $css, $js);
         }
         $this->loadPages($assets['pages']);
     }
     return parent::callAction($method, $parameters);
 }