Annotations is a cool feature =) Look at this class:
<?php
namespace Controller;
use Phalcon;
class Comment extends Phalcon\Mvc\Controller
{
/**
* @Action
*/
public function index()
{
}
/**
* @Action
*/
public function show()
{
}
/**
* Doing something secret...
*/
public function internalMethod()
{
}
}
Isn't it pretty tidily? (Suffixes could be "disabled" by $dispatcher->setControllerSuffix('') & $dispatcher->setActionSuffix('') if someone don't know). With beforeExecuteRoute event you can easily allow only @Action-annotated methods to be dispatched. So you can have easy-to-understand, simple, tidily code and an the same time still safe.