Ok, here's what I've done. I've used PHPs get_class_methods() function to
list out the methods available. Here's what's strange: I get two different
results from two different contexts.
When I use my Component in a standard HTTP call, I get a list that includes
my functions:
[0] => getItem
[1] => getAssociations
[2] => matchItem
[3] => getFacets
[4] => subquery
[5] => __construct
[6] => call__
...
However, when I use the same Component in an AJAX call (which is touching a
different Controller using the same Component), I do not get the same list of
methods:
["__construct","call__","bindModel","unbindModel","__createLinks", ...]
Its the same Component, therefore the same ClassRegistry::init call. I don't
know why it would work in the one Controller and not in the other?
--
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