Class App
A service to build an MVC application
- Wei\Base
 - 
			
Wei\App			
			
			
		 
			 public 
			
			
			
		 | 
		|
			 public 
			array|
		 | 
		|
			 protected 
			RuntimeException
			
			
		 | 
		|
			 protected 
			
		 | 
		|
			 protected 
			array
			
			
		 | 
		|
			 public 
			
		 | 
		|
			 public 
			string
			
			
		 | 
		|
			 public 
			
			
			
		 | 
		|
			 public 
			string
			
			
		 | 
		|
			 public 
			string
			
			
		 | 
		|
			 public 
			string
			
			
		 | 
		|
			 public 
			string
			
			
		 | 
		|
			 public 
			string
			
			
		 | 
		|
			 public 
			array
			
			
		 | 
		
		#
		 getControllerClasses( string $controller )
		Return the controller class names by controllers (without validate if the class exists)  | 
	
			 public 
			
			
			
		 | 
		|
			 protected 
			
		 | 
		
		#
		 getControllerInstance( string $class )
		Get the controller instance, if not found, return false instead  | 
	
			 public 
			boolean
			
			
		 | 
		|
			 public 
			
			
			
		 | 
		|
			 public 
			string
			
			
		 | 
		
		#
		 getDefaultTemplate( )
		Get default template file according to the controller, action and file extension provided by the view engine  | 
	
			 public 
			
			
			
		 | 
		
			__call(), 
			__construct(), 
			__get(), 
			getOption(), 
			setOption()
		 | 
	
integer | 
		
			
				FORWARD
			
			The exception code for forward action  | 
		
			 
				#
				 
		1302
			 | 
	
			protected  
			string
		 | 
		
				$controllerFormat
			 The format of controller class  | 
		
			 
				#
				 
		'controllers\%controller%'
			 | 
	
			protected  
			string
		 | 
		
				$defaultController
			 The default controller name  | 
		
			 
				#
				 
		'index'
			 | 
	
			protected  
			string
		 | 
		
				$defaultAction
			 The default action name  | 
		
			 
				#
				 
		'index'
			 | 
	
			protected  
			string
		 | 
		
				$namespace
			 The name of current application  | 
		|
			protected  
			string
		 | 
		
				$controller
			 The name of controller  | 
		|
			protected  
			string
		 | 
		
				$action
			 The name of action  | 
		|
			protected  
			array
		 | 
		
				$controllerInstances
			 The instanced controller objects  | 
		
			 
				#
				 
		array()
			 | 
	
			protected  
			array
		 | 
		
				$controllerMap
			 An array that stores predefined controller class, the key is controller name and value is controller class name  | 
		
			 
				#
				 
		array()
			 | 
	
			$providers, 
			$wei
		 | 
	
			public  
			 | 
		
				$router
			 A service that parse the URL to request data  | 
	
			public  
			 | 
		
				$request
			 A service that handles the HTTP request data  | 
	
			public  
			 | 
		
				$response
			 A service that handles the HTTP response data  | 
	
			public  
			 | 
		
				$view
			 A service that use to render PHP template  |