Re: Execute function on every page

2008-06-18 Thread Sanfly
Okay, so Im trying this out, but have run into a problem, im getting the following error, and I cant figure out where I'm going wrong: Fatal error: Call to undefined method stdClass::save() in G:\WAMP \www\UASC Sourceforge\trunk\app\app_controller.php on line 60 I have a table whos_online

Re: Execute function on every page

2008-06-18 Thread dr. Hannibal Lecter
Obviously, your model does not exist in AppController. Did you put var $uses = array('WhosOnline'); in there? If you did, try putting a debug($this) in your controller and look at the dump, maybe it's there but not called WhosOnline? On Jun 18, 12:47 pm, Sanfly [EMAIL PROTECTED] wrote: Okay,

Execute function on every page

2008-06-17 Thread Sanfly
Hi all If I have a function or script that I want to execute automatically on every page of my website, how would I go about it? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups CakePHP group. To post to this group,

Re: Execute function on every page

2008-06-17 Thread Dr. Tarique Sani
On Wed, Jun 18, 2008 at 7:58 AM, Sanfly [EMAIL PROTECTED] wrote: If I have a function or script that I want to execute automatically on every page of my website, how would I go about it? The correct CakePHP terms would be I have a function that I want to execute before every action -