I created one controller with name CategoriasController and it have
the method menu() is responsible for create the menu of page, but, how
execute this method in all pages?

OBS.: Can'not use directly in the layout of default.thtml page

This is the method menu

                // EXIBE O MENU
                function menu(){

                        // SELECIONA TODAS AS CATEGORIAS RAIZ
                        $conditions = array("subCategoria" => "0");
                        //$this -> set("dadosMenu", $this -> Categoria -> 
read());

                        $this -> set("dadosMenu", $this -> Categoria ->
findAllBy("Categoria.subCategoria = '0'")); // findBysubCategoria = 0
                }


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to