Ejemplo n.º 1
0
 protected function prerun()
 {
     $assets = array();
     M_Assets::instance();
     if ('manager' == ENV) {
         $assets = M_Assets::get_manager_assets();
     } else {
         $assets = M_Assets::get_frontend_assets();
     }
     foreach ($assets as $key => $value) {
         if (is_array($assets[$key]) && sizeof($assets[$key]) > 0) {
             foreach ($value as $asset) {
                 $this->add_page_asset($key, $asset);
             }
         }
     }
 }