ManiaLib 1.0b1 API Reference

Abstract Class View

Description

View rendering features

  • abstract:

Located in /mvc/libraries/View.class.php (line 14)


	
			
Method Summary
 static void render ( $controllerName, [ $actionName = null])
Methods
static render (line 27)

Renders a view You can use this method from within a view to render another view.

Usefull for things like rendering a navigation menu on every page.

Examples:

  1.  View::render('header')// Renders /views/header.php
  2.  View::render('Home''_navigation')// Renders /views/Home/_navigation.php

  • access: public
void render ( $controllerName, [ $actionName = null])
  • $controllerName
  • $actionName