Exemple #1
0
 /**
  * import static content
  * 
  * @param  string $item 
  * @return void       
  */
 public static function import($item)
 {
     $url = Printemps_Request::baseUrl();
     self::$assets = $url . str_replace(APP_PUBLIC, "", APP_ASSETS);
     if (!is_array($item)) {
         self::doImport($item);
     } else {
         foreach ($item as $value) {
             self::doImport($value);
         }
     }
 }
Exemple #2
0
 /**
  * instance construction
  *
  * @return void
  */
 function __construct()
 {
     self::$_instance = $this;
     ini_set('date.timezone', 'Asia/Shanghai');
     //ini_set('display_errors', 'no');
     $this->__printemps['start'] = mktime(true);
     $_dbconfig = Printemps_Config::read('database');
     if ($_dbconfig) {
         $this->db = Printemps_Db::getInstance();
     }
     $this->view = Printemps_View::getInstance();
     $this->request = Printemps_Request::getInstance();
 }
Exemple #3
0
 function __construct()
 {
     self::$_instance = $this;
 }