public function Init () {
		if ($this->dispatchState > 0) return;
		self::$allControllers[spl_object_hash($this)] = & $this;
		if ($this->parentController === NULL && !$this->request->IsCli()) {
			if ($this->autoStartSession) 
				$this->application->SessionStart();
			$responseContentType = $this->ajax ? 'text/javascript' : 'text/html';
			$this->response->SetHeader('Content-Type', $responseContentType);
		}
		if ($this->autoInitProperties)
			$this->processAutoInitProperties();
		foreach ($this->childControllers as $controller) {
			$controller->Init();
			if ($controller->dispatchState == 5) break;
		}
		if ($this->dispatchState === 0) 
			$this->dispatchState = 1;
	}
public function Init () {
		if ($this->dispatchState > 0) return;
		self::$allControllers[spl_object_hash($this)] = & $this;
		if ($this->parentController === NULL && !$this->request->IsCli()) {
			if ($this->autoStartSession) 
				$this->application->SessionStart();
			$responseContentType = $this->ajax ? 'text/javascript' : 'text/html';
			$this->response->SetHeader('Content-Type', $responseContentType);
		}
		if ($this->autoInitProperties)
			$this->processAutoInitProperties();
		foreach ($this->childControllers as $controller) {
			$controller->Init();
			if ($controller->dispatchState == 5) break;
		}
		if ($this->dispatchState === 0) 
			$this->dispatchState = 1;
	}
public function Init ( ) { if ( $ this -> dispatchState > 0 ) return ; self :: $ allControllers [ spl_object_hash ( $ this ) ] = & $ this ; if ( $ this -> parentController === NULL && ! $ this -> request -> IsCli ( ) ) { if ( $ this -> autoStartSession ) $ this -> application -> SessionStart ( ) ; $ responseContentType = $ this -> ajax ? 'text/javascript' : 'text/html' ; $ this -> response -> SetHeader ( 'Content-Type' , $ responseContentType ) ; } if ( $ this -> autoInitProperties ) $ this -> processAutoInitProperties ( ) ; foreach ( $ this -> childControllers as $ controller ) { $ controller -> Init ( ) ; if ( $ controller -> dispatchState == 5 ) break ; } if ( $ this -> dispatchState === 0 ) $ this -> dispatchState = 1 ; }
Application controllers initialization.
This is best time to initialize language, locale, session etc.
There is also called auto initialization processing - instance creation
on each controller class member implementing `\MvcCore\IController`
and marked in doc comments as `@autoinit`.
then there is of course called `\MvcCore\Controller::Init();` method on each
automatically created sub-controller.
@return void
Application controllers initialization . This is best time to initialize language locale session etc . There is also called auto initialization processing - instance creation on each controller class member implementing \ MvcCore \ IController and marked in doc comments as