コード例 #1
0
 /**
  * Initlization of settings usually required by controllers.
  */
 public function init()
 {
     $this->_helper->viewRenderer->setNoRender(TRUE);
     $this->_helper->layout()->disableLayout();
     /*
      * To show debug messages.
      */
     if ('development' == APPLICATION_ENV) {
         self::$debug = true;
     }
     /**
      * Automatically creates model object
      */
     if (TRUE == $this->_autoModel) {
         self::createModel();
     }
     //Automatically Setup Database Columns
     if (TRUE == $this->_autoDbCols) {
         self::createDbCols();
         /*
         			if ($this->debug) {
         				$this->_helper->logger->info ( 'Auto $dbCols' );
         				$this->_helper->logger->debug ( $this->dbCols );
         				$this->_helper->logger->info ( 'Auto $_hideDbCols' );
         				$this->_helper->logger->debug ( $this->_hideDbCols );
         			}*/
     }
 }