Example #1
0
 public function __construct($from = '')
 {
     # CHECK INIT STATUS
     Init::genosage();
     # SET THE GLOBAL VARIABLE
     $this->load_define();
     # ROUTER ANALYZE
     if (in_array($from, array('CHANNEL', 'APP', 'PAGE'), TRUE)) {
         $this->_dispatcher = $this->core('Router')->analyze();
         if (isset($this->_dispatcher['parameter'])) {
             foreach ($this->_dispatcher['parameter'] as $key => $value) {
                 $this->v('v.' . $key, $value);
             }
         }
     }
 }