Location: PHPKode > projects > ASf MVC > asf-mvc/asmvc/sysfiles/plugins/internal.ASfMVC_Controller.php
<?php
/***
 * Name:	AlexSnet's framework MVC
 * About:	An MVC application framework for PHP
 * Copyright:	(C) 2008, Sudo me.
 * Author:	Alex Snet, me [at] alexsnet [dot] ru
 * Site:	http://alexsnet.ru/
 ***/

// ------------------------------------------------------------------------

/**
 * ASfMVC_Controller
 *
 * @package		ASMVC
 * @author		Alex Snet
 */

class ASfMVC_Controller
{

 	/**
	 * class constructor
	 *
	 * @access	public
	 */
	public function __construct()
	{
		/* set the class instance */
		asmvc::instance($this);
		
		/* instantiate load library */
		$this->load = new ASfMVC_Load;  
		
		/* instantiate view library */
		$this->view = new ASfMVC_View;  
	}
  
	/**
	 * index
	 *
	 * the default controller method
	 *
	 * @access	public
	 */    
	public function index() { }
		
	
	/**
	 * error
	 *
	 * add some magick! =)
	 *
	 * @access	public
	 */    
	public function error($num=404)
	{
		 $this->view->display('error_'.$num.'_view');
		 $this->view->assign('REQUEST_URI',$_SERVER['REQUEST_URI']);
	}
}
?>
Return current item: ASf MVC