Using Bake - Class not found

2007-07-02 Thread hostdesigner
Whenever I try to create to controler for some model the Bake informs that the classroom was not found referring. In the case I created a table "mb_uf" where the states are stored, and "mb_cidades" where the cities of each state are stored. I created controller to uf_controller and functioned norm

How paginate results of search?

2007-05-22 Thread hostdesigner
Like know how paginate results of search with cakePHP, I know do with PHP, but in cakePHP... Thanks! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to cake-php@g

Re: How execute method in all pages

2007-05-22 Thread hostdesigner
Ok, functions now Thanks! On 22 maio, 20:45, SeanCallan <[EMAIL PROTECTED]> wrote: > One way of implementing this would be as followed: > > app/app_controller.php > > > class AppController extends Controller > { > > var $uses = array('Categoria'); > > function beforeFilter(){ > $this->menu();

Re: How execute method in all pages

2007-05-22 Thread hostdesigner
Notice: Undefined property: AppController::$Categoria in D:\DW\xampp \htdocs\barato\app\app_controller.php on line 15 Fatal error: Call to a member function findAll() on a non-object in D: \DW\xampp\htdocs\barato\app\app_controller.php on line 15 This error appears when acess some page, in other

Re: How execute method in all pages

2007-05-22 Thread hostdesigner
It funtioned, thanks. On 22 maio, 20:45, SeanCallan <[EMAIL PROTECTED]> wrote: > One way of implementing this would be as followed: > > app/app_controller.php > > > class AppController extends Controller > { > > var $uses = array('Categoria'); > > function beforeFilter(){ > $this->menu(); > >

Re: How execute method in all pages

2007-05-22 Thread hostdesigner
d before the page > is output. This way, you just right it once and all of your views > have access to the data. > > On May 22, 4:24 pm, hostdesigner <[EMAIL PROTECTED]> wrote: > > > I created one controller with name CategoriasController and it have > > the method

How execute method in all pages

2007-05-22 Thread hostdesigner
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

Re: Problems with session

2007-05-21 Thread hostdesigner
In the file homes_controller.php exist this set("dadosHomeProduto", $this -> Produto -> findAll("Produto.nome_produto != '' LIMIT 4"));// // LISTA AS CONFIGURAÇÕES //$this -> Config -> "Config.nomeConfig = 'listaProduto' AND Config.config LIKE 'palavra:%'"

Problems with session

2007-05-19 Thread hostdesigner
 Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at D:\DW\xampp \htdocs\barato\app\controllers\homes_controller.php:1) in D:\DW\xampp \htdocs\barato\cake\libs\session.php on line 154 Warning: Cannot modify header infor