<?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');
}
}