Why doesn't the controller?

Cloned the project INVO with Gita https://github.com/phalcon/invo open the browser all the rules,trying to create a new controller open in the browser adress and there Page not found and in the log php fatal error class not found in securityplugin app/config/services.php on line 28, services 28 open line
$eventsManager->attach('dispatch:beforeDispatch', new SecurityPlugin);


The controller itself
<?php

class TestController extends ControllerBase
{
 public function initialize()
{
 $this--->tag->setTitle('Test controller');
parent::initialize();
}

 public function indexAction()
{
}
}
July 9th 19 at 13:12
2 answers
July 9th 19 at 13:14
But where does the controller? You wrote:
php fatal error class not found in securityplugin app/config/services.php on line 28

Look where you lost the class.
July 9th 19 at 13:16
You need to SecurityPlugin.php located in the app/plugins (if memory serves), to register the ACL settings page (controller and action(Iya)).

If you want to make the page accessible to all (public) - ~59 a string:
$publicResources = array(
 'index' => array('index'),
 'about' => array('index'),
 'register' => array('index'),
 'errors' => array('show401', 'show404', 'show500'),
 'session' => array('index', 'register', 'start', 'end'),
 'contact' => array('index', 'send'),
 'test' => array('index') // something Like this: test indicates TestController, index by indexAction 
);


If the page should be available only to registered users (private), do similar in $privateResources (~48 line):
$privateResources = array(
 'companies' => array('index', 'search', 'new', 'edit', 'save', 'create', 'delete'),
 'products' => array('index', 'search', 'new', 'edit', 'save', 'create', 'delete'),
 'producttypes' => array('index', 'search', 'new', 'edit', 'save', 'create', 'delete'),
 'invoices' => array('index', 'profile'),
 'test' => array('index') // Here, something like that:)
);


Good luck!

Find more questions by tags PhalconPHP