Re: include everywhere | app_controller.php

2007-12-29 Thread Pablo Viojo
Try searching this group[1]. I did it for you and found [2] [3] among others. Hope that helps. -- Pablo Viojo [EMAIL PROTECTED] http://pviojo.net [1] http://groups.google.com/group/cake-php/search?hl=engroup=cake-phpq=app_controller+model [2]

Re: include everywhere | app_controller.php

2007-12-28 Thread carSign
I am getting close. My beforeFilter function in the app controller is being called on each page (just like I want) but it seems to have trouble running something in a model. Anyone have any ideas on what I am doing wrong. app_controller.php ?php class AppController extends Controller {

include everywhere | app_controller.php

2007-12-21 Thread carSign
Hi - So I am trying to include a small snippet of code in each page of my site. Is there a way to do this without modifying each controller? For example - I want to log visitors to my site. Each page visited would have some information put into the database. URL User info tiestamp browser

Re: include everywhere | app_controller.php

2007-12-21 Thread daphonz
Sure. You can use the controller callback functions in app_controller, listed here: http://tempdocs.cakephp.org/#TOC52711 So try doing something like: function beforeFilter() { /* Super controller logic that accesses a function in app_model or something */ return true; } If you need

Re: include everywhere | app_controller.php

2007-12-21 Thread Chris Hartjes
On Dec 21, 2007 10:33 AM, carSign [EMAIL PROTECTED] wrote: Hi - So I am trying to include a small snippet of code in each page of my site. Is there a way to do this without modifying each controller? For example - I want to log visitors to my site. Each page visited would have some