for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* Class with MVC implementation
*
* @file Application.php
* PHP version 5.4+
* @author Alexander Yancharuk <alex at itvault dot info>
* @copyright © 2012-2015 Alexander Yancharuk <alex at itvault at info>
* @date Птн Июн 08 18:10:37 2012
* @license The BSD 3-Clause License
* <https://tldrlegal.com/license/bsd-3-clause-license-(revised)>
*/
namespace Veles\Application;
use Veles\Auth\UsrAuth;
use Veles\View\View;
* Class Application
class Application
{
use RouteTrait;
* Application start
public function run()
UsrAuth::instance();
$controller = $this->getRoute()->getController();
$action_name = $this->getRoute()->getActionName();
$template = $this->getRoute()->getTemplate();
View::setAdapter($this->getRoute()->getAdapter());
View::set($controller->$action_name());
View::show($template);
}