Location: PHPKode > projects > ArasPhp Framework > ArasPhp-0.03/core/actions/ExecuteController.php
<?php

/*
 * Creates and executes the dispatcher
 * Leaves 
 */
 
 if(isset($handuri)) {
 
	$dispatcher = new Dispatcher($handuri);
	
} else {

	$dispatcher = new Dispatcher();

}

$errors = $dispatcher->getErrors();

/*
 * Session stuff: the keep alive session must be placed here.
 */
Session::keepAlive();

// If name declared, we set the name =)
if(isset($_SESSION['sessionName']))
{
	Session::setName($_SESSION['sessionName']);
}

if($errors == NULL) {
	   
	// We execute the action and store the results
	$Legacy = $dispatcher->process();
	  
	include(ACTION . "VarProcess.php");
	  
	// And get rid of legacy
	unset($Legacy);
	    
} else {

	$title_for_layout = TITLE . CONNECTOR . "An error has ocurred";

}

?>
Return current item: ArasPhp Framework