loadModel('Foo'); includes the model's php file. e.e. /app/models/
foo.php
http://api.cakephp.org/basics_8php-source.html line 209 (version
1.1.x)
On Sep 11, 8:07 am, Ravi <[EMAIL PROTECTED]> wrote:
> Hai,
> I am trying to use a model class in a component as in documentation
>
> $foo =& new Foo(); , here Foo is the model class.
> but i am getting error FatalError: Class Foo not found.
>
> when i searched in the net found that using loadModel('Foo') solves
> the problem.
>
> My questions:
> 1. Why the first method $foo =& new Foo() not working as specified in
> the document.
> 2. is there any other way to solve the problem without using
> loadModel.
>
> Thanks in advance
>
> Ravi
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake
PHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---