Cakephp control submenu

时间:2017-08-04 12:42:53

标签: cakephp

I am using CakePhp 2.5, i do write a controller called certificate, and i do not want any submenu to appear at the view for the activate method from this controller.

I do already write an empty submenu named activate.ctp into the elements/submenu/certificate folder but the submenu wich appear is another submenu from another controller!?!.

<?php

$submenu = Configure::read('App.Menu.children.service.children.certificate.children');
Configure::write('App.Menu.Submenu', array('class'=>'nav nav-tabs','children'=>$submenu));

How can i control wich submenu appear ?

1 个答案:

答案 0 :(得分:0)

您需要使用View Blocks