Class View
A view.
- ICanBoogie\View\View implements ArrayAccess uses ICanBoogie\PrototypeTrait (not available) ICanBoogie\View\ViewBindings
 
Methods summary
				 protected 
				ICanBoogie\Routing\Controller
				
				
			 | 
			|
				 protected 
				array
				
				
			 | 
			|
				 protected 
				mixed
				
				
			 | 
			|
				 protected 
				
				
				
			 | 
			|
				 protected 
				string|null
				
				
			 | 
			|
				 protected 
				string
				
				
			 | 
			|
				 public 
				
				
				
			 | 
			
			#
			 __construct( ICanBoogie\Routing\Controller $controller )
			An event hook is attached to the   | 
		
				 public 
				
				
				
			 | 
			|
				 public 
				
				
				
			 | 
			|
				 public 
				
				
				
			 | 
			|
				 public 
				
				
				
			 | 
			|
				 public 
				
				
				
			 | 
			|
				 protected 
				string|false
				
				
			 | 
			
			#
			 resolve_template( string $name, string $prefix, array & $tries = [] )
			Resolve a template pathname from its name and type.  | 
		
				 public 
				
				
				
			 | 
			|
				 protected 
				mixed
				
				
			 | 
			|
				 public 
				string
				
				
			 | 
			|
				 protected 
				string
				
				
			 | 
			
			#
			 render_with_template( mixed $content, string $template, string $type )
			Renders the content using a template.  | 
		
				 protected 
				array
				
				
			 | 
			|
				 protected 
				
				
				
			 | 
			
Constants summary
integer | 
				
					
						TEMPLATE_TYPE_VIEW
					
					 | 
				
					 
						#
						 
				1
					 | 
			
integer | 
				
					
						TEMPLATE_TYPE_LAYOUT
					
					 | 
				
					 
						#
						 
				2
					 | 
			
integer | 
				
					
						TEMPLATE_TYPE_PARTIAL
					
					 | 
				
					 
						#
						 
				3
					 | 
			
string | 
				
					
						TEMPLATE_PREFIX_VIEW
					
					 | 
				
					 
						#
						 
				''
					 | 
			
string | 
				
					
						TEMPLATE_PREFIX_LAYOUT
					
					 | 
				
					 
						#
						 
				'@'
					 | 
			
string | 
				
					
						TEMPLATE_PREFIX_PARTIAL
					
					 | 
				
					 
						#
						 
				'_'
					 | 
			
Properties summary
Magic properties
				public  
				mixed
			 | 
			
					$content
				 The content of the view.  | 
		
				public  
				string
			 | 
			
					$layout
				 The name of the layout that should decorate the content.  | 
		
				public  
				string
			 | 
			
					$template
				 The name of the template that should render the content.  | 
		
				public  read-only
				ICanBoogie\Routing\Controller
			 | 
			
					$controller
				 The controller invoking the view.  | 
		
				public  read-only
				array
			 | 
			
					$variables
				 The variables to pass to the template.  | 
		
				public  read-only
				callable[]
			 | 
			
					$layout_resolvers
				 @internal  | 
		
				public  read-only
				callable[]
			 | 
			
					$template_resolvers
				 @internal  |