Re: Extending AppModel

2009-09-04 Thread mark_story
Well if you are going to override the constructor you should do so with all the params. Otherwise certain things stop working well. As for TriadApi, you can just import TriadApi before the classes that use it. App::import('Model', 'TriadApi'); class Subscriber extends TriadApi { Like that. If

Re: Extending AppModel

2009-09-03 Thread RhythmicDevil
Hi Mark, thanks for taking the time to write back. However I am not entirely sure what you mean. I tried to pass an integer to AppModel's constructor which is called in TriadAPI's constructor but I am still getting the same error which is: Fatal error: Class 'TriadApi' not found in C:\vhosts\loca

Re: Extending AppModel

2009-09-03 Thread mark_story
You forgot all the parameters to the model constructor. http://api.cakephp.org/class/model#method-Model__construct -Mark On Sep 3, 11:00 am, RhythmicDevil wrote: > Hi, > I have an app. It has to get data from two different sources, a mysql > db and an XML API > > For the API model I want to be

Re: Extending AppModel and/or AppController

2007-04-16 Thread quincy
Thanks Tarique, I'm surprised i hadn't looked at that before. I guess i don't have as much time as i'd like to get to know the ins and outs of Cake whilst i'm at work!! :) Cheers On 16 Apr, 12:26, "Dr. Tarique Sani" <[EMAIL PROTECTED]> wrote: > On 4/16/07, quincy <[EMAIL PROTECTED]> wrote: > >

Re: Extending AppModel and/or AppController

2007-04-16 Thread Dr. Tarique Sani
On 4/16/07, quincy <[EMAIL PROTECTED]> wrote: > seems that the developers suggested that the best option is to copy > AppModel (or AppController) into the app directory in orer to create > and application-specific version then make changes in that. #1 Take a look at the AppModel (or AppController