I’m on 2.6, can’t get why a link is not working.
Here the View link code:
echo $this->Html->link(__('Develope'),
array( 'controller' => 'developer',
'action' => 'devit));
Here is the referred Controller (DeveloperController) code:
public function devit () {
return $this->redirect(array('controller'=>'generale', 'action' => 'index'));
}
It’s a simple redirecting just to check if I’m “entering” the controller… and it’s not: it redirect (apparently without error) to the same page of the link (sort of a refresh, in fact).