On Thursday, July 26, 2012 9:37:17 PM UTC+7, André Luis wrote:
>
> I dont know if i am doing it wrong but i´ve tryed this:
>
> *$rep*=ClassRegistry::init('Representatives.Category');
> *$con*=ClassRegistry::init('Contact.Category');
> pr(*$rep*->find('first'));
> pr(*$con*->find('first'));
>
> But BOTH returns me the same value, the value from
> RepresentativesCategory, but if i change the order of thr pr() function,
> both shows the value of Contatct´s category.
>
> Any idea??
>
It's not possible to use the same class name in a single application.
http://cakephp.lighthouseapp.com/projects/42648/tickets/2471-appload-defect-defect-when-cache-is-enabled#ticket-2471-4
http://cakephp.lighthouseapp.com/projects/42648/tickets/2191-plugin-file-mapping-class-loading-issue#ticket-2191-4
--
Our newest site for the community: CakePHP Video Tutorials
http://tv.cakephp.org
Check out the new CakePHP Questions site http://ask.cakephp.org and help others
with their CakePHP related questions.
To unsubscribe from this group, send email to
[email protected] For more options, visit this group at
http://groups.google.com/group/cake-php