initialize() public method

public initialize ( string $type )
$type string The type of init to load, possible values are: frontend, frontend_ajax, frontend_js.
示例#1
0
文件: Init.php 项目: forkcms/forkcms
 /**
  * @param string $type The type of init to load, possible values are: frontend, frontend_ajax, frontend_js.
  */
 public function initialize($type)
 {
     parent::initialize($type);
     \SpoonFilter::disableMagicQuotes();
 }
示例#2
0
 /**
  * @param string $type The type of init to load, possible values are: frontend, frontend_ajax, frontend_js.
  */
 public function initialize($type)
 {
     parent::initialize($type);
     $this->requireFrontendClasses();
     \SpoonFilter::disableMagicQuotes();
 }