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