router
new Router(false);
view
module/views/index/index.volt
route
$router->add("/", array(
'module' => 'module',
'controller' => 'index',
'action' => 'index',
));
How would you call an action named "otherAction" set in the index controller from the index.volt using a button or an anchor without adding a new route?
<?php
namespace Multiple\Module\Controllers;
class IndexController extends \Phalcon\Mvc\Controller
{
public function indexAction()
{
}
public function otherAction()
{
}
}
In short Id like to dispatch directly from the view itself.