One way of implementing this would be as followed:

app/app_controller.php


<?php

class AppController extends Controller
{

var $uses = array('Categoria');

function beforeFilter(){
$this->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
}

}

?>


If I'm not mistaken that should work for you :)


--~--~---------~--~----~------------~-------~--~----~
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