Location: PHPKode > projects > GnomePHP > peec-GnomePHP-b5a360b/apps/myapp/controller/Main.php
<?php
namespace myapp\controller;

class Main extends \gnomephp\mvc\Controller{
	
	public function index(){
		
		// See conf/application.yml for this. 
		// We can use all kinds of objects from other applications.
		// This allow extreme reusability!
		$model = new \anotherapp\model\ModelFromAnotherApp();
		$model->onePlusOne();
		
		
		
		// Render the view .
		$this->view->render('index');
		
	}
	
}
Return current item: GnomePHP