Location: PHPKode > projects > Tigermouse > tigermouse-DR1.7/ctrl/MainCtrl.class.php
<?php

class MainCtrl extends Ctrl {



	public function show() {
		$index = new Index();
		$a = new Action('Login/LoginCtrl/show'); // see file ctrl/Login/LoginCtrl.class.php
		$index->add($a->run());
		return $index;
	}



	public function xmlTest() {
		$sx = simplexml_load_file('view/app/test.xml');
		$index = new Index();
		$index->add(ViewXMLBuilder::build($sx));
		return $index;
	}



	public function xmlAction($name, $v2) {
		$sx = simplexml_load_file('view/app/test2.xml');
		return ViewXMLBuilder::build($sx);
	}



} // class MainCtrl

?>
Return current item: Tigermouse