define('DS', DIRECTORY_SEPARATOR); define('ROOT', realpath(dirname(__FILE__)) . DS); define('APP_PATH', ROOT . 'application' . DS); try{ require_once APP_PATH . 'Config.php'; require_once APP_PATH . 'Request.php'; require_once APP_PATH . 'Bootstrap.php'; require_once APP_PATH . 'Controller.php'; require_once APP_PATH . 'Model.php'; require_once APP_PATH . 'View.php'; // require_once APP_PATH . 'Registro.php'; require_once APP_PATH . 'Datasource.php'; require_once APP_PATH . 'Session.php'; Session::getInstancia(); Bootstrap::run(new Request()); } catch (Exception $e){ $e->getMessage(); } ?>
public function index(){ Session::getInstancia(); $this->_view->titulo = "Gestionar amistades"; $this->_view->renderizar('index','amistades'); }