Re: ClassRegistry::init and Model function availability problem

2011-10-14 Thread Tom Belknap
Ok, interesting: the problem appears to be related to the types of joins I have. There are three tables: FacetedItem, Facet and FacetedItemsFacet. You can obviously see that this is a HABTM situation, however, because the nexus of Facets and Items is where the value lies, I have to access the

Re: ClassRegistry::init and Model function availability problem

2011-10-14 Thread Tom Belknap
Thanks for your reply. I had an inkling it was something like that, but the Model's already in use elsewhere. So I'm not sure why it wouldn't be able to find it. Do you suppose the fact that the Model is sitting in a subdirectory of the /models directory is causing an issue? Anyway, including i

Re: ClassRegistry::init and Model function availability problem

2011-10-13 Thread Tom Belknap
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

Re: ClassRegistry::init and Model function availability problem

2011-10-13 Thread Tom Belknap
Can someone help me out with this? This seems to be a scoping issue, somehow. For example, when I had these two values echoed out, I get true for the function I created, but false for the AppModel subquery function: $subquery= method_exists($this->fi, 'subquery'); $userdefined

Re: fopen(.../app/tmp/cache/persistent/cake_core_default_en-us) [function.fopen]: failed to open stream: No such file or directory

2011-09-13 Thread Tom Belknap
Here's the thing: these files and folders are supposed to be managed by Cake. I'm not required to *create* the directories, other than making sure that the app/tmp/cache directory is created. All of the basic caching directories are there and they're all set to 777. The directories that come pr

Re: fopen(.../app/tmp/cache/persistent/cake_core_default_en-us) [function.fopen]: failed to open stream: No such file or directory

2011-09-13 Thread Tom Belknap
And yes, by the way: I've attempted to clear those files. Actually, the error seems to be indicating that the CakePHP system was unable to create the folders (they do not, in fact, exist). Seems like, beyond my problem, a patch should be developed to work around this problem: if there is a prob

Re: "The page isn't redirecting properly" error. on Simple Acl controlled Applicaiton

2011-09-12 Thread Tom Belknap
This isn't enough information to gaurantee a correct response. However, offhand, I'd say that you've got your ACLs blocking both the action that is the initial request AND the login function. Hence, with $this->redirect($this->referrer()), you end up ping-ponging back and forth until the server

Re: ClassRegistry::init and Model function availability problem

2011-09-12 Thread Tom Belknap
Bumpty-bump. Anybody got any guesses? -- 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 cake-p

Re: fopen(.../app/tmp/cache/persistent/cake_core_default_en-us) [function.fopen]: failed to open stream: No such file or directory

2011-09-12 Thread Tom Belknap
Yeah, I actually wrote a script to open a random file and output the results elsewhere on the server, just to be sure this wasn't the case. It worked fine. -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.c

Re: fopen(.../app/tmp/cache/persistent/cake_core_default_en-us) [function.fopen]: failed to open stream: No such file or directory

2011-09-12 Thread Tom Belknap
Apache/2.2.8 (Ubuntu) DAV/2 PHP/5.2.4-2ubuntu5.17 with Suhosin-Patch Cake 1.3.11 -- 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 unsubs

Re: fopen(.../app/tmp/cache/persistent/cake_core_default_en-us) [function.fopen]: failed to open stream: No such file or directory

2011-09-12 Thread Tom Belknap
Sorry, no. That's just me editing out the entire full path to the dir for the sake of security. -- 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 quest

Re: fopen(.../app/tmp/cache/persistent/cake_core_default_en-us) [function.fopen]: failed to open stream: No such file or directory

2011-09-11 Thread Tom Belknap
Hmm... No luck, any other ideas? I've been using CakePHP for over a year and never had this problem. I upgraded to the latest version of CakePHP, maybe that's the problem, somehow? But I don't have a similar problem on my dev server, so that's strange. -- Our newest site for the community: Cak

Re: fopen(.../app/tmp/cache/persistent/cake_core_default_en-us) [function.fopen]: failed to open stream: No such file or directory

2011-09-11 Thread Tom Belknap
Thank you for your reply. I'm going to see how that works. -- 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,

Re: fopen(.../app/tmp/cache/persistent/cake_core_default_en-us) [function.fopen]: failed to open stream: No such file or directory

2011-09-11 Thread Tom Belknap
I guess I'm a bit confused as to why a flamer's rant against CakePHP seems more important to the community here than answering a question? Where have all the admins gone? -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions si

fopen(.../app/tmp/cache/persistent/cake_core_default_en-us) [function.fopen]: failed to open stream: No such file or directory

2011-09-10 Thread Tom Belknap
Ok, I have two separate Cake applications, both experiencing this error. And in the one case, its a brand-new installation. I quite literally just uploaded the files and setup permissions on the tmp directory. I'm running an Ubuntu Linux server. The other installation has been running without i

Re: ClassRegistry::init and Model function availability problem

2011-09-10 Thread Tom Belknap
Bumps. Can anybody help me out with this? -- 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 ca

ClassRegistry::init and Model function availability problem

2011-09-08 Thread Tom Belknap
I am calling a Model inside of a Component to use as a faceted search Component. However, in two different contexts, I'm getting widely different results. The function seems to work fine when I'm loading a page, however, when using the AJAX call, I'm getting the "You have an error in your SQL s

ClassRegistry usage: "You have an error in your SQL syntax"

2011-09-08 Thread Tom Belknap
I'm a bit confused, of course... I'm trying to use a Model in a Component, so I'm registering it like this: /* // __facetConditions: Assembles subqueries for each facet/value pair // @var arr $facets: Array of facet/value pair arrays // @data arr $conditions: Model-usable array of subqueries. */ p