This is interesting indeed...

As far as I could establish, I was not requesting the file to be
loaded twice. What is further interesting though is even if I did run
loadModel twice with the same instruction, the class_exists function
call within loadModel should have prevented this anyway.

Any ideas on this then?

Dr. Tarique Sani wrote:
> On 12/12/07, lordG <[EMAIL PROTECTED]> wrote:
> > Then, with the 1.2 branch release, does anyone know why in the
> > loadmodel function, they use require and not require_once? I've hit a
> > snack with this one, and change the require to require_once int he
> > code manually.
>
> Well, ideally require_once should never be needed if your program flow
> is correct ;) besides that require_once has a higher overhead than
> require. Still further you can always check if a given model is
> already available before calling loadmodel()
>
> Hope that helps
>
> Tarique
>
> --
> =============================================================
> Cheesecake-Photoblog: http://cheesecake-photoblog.org
> PHP for E-Biz: http://sanisoft.com
> =============================================================

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to