Different pagination condition for different functions

2008-04-14 Thread aj
Hello, I want to have different pagination conditions for different functions in my controller. For example: function index() { $criteria = nodeType LIKE 'Blog'; $data = $this-Blog-paginate($criteria); $this-set('data',$data); } function myBlogs() {

Re: Business Benifit?

2008-01-24 Thread AJ
In a company like that I would try to convince them of the increased development speed. Show them the stuff with the form helpers, and the save() method on objects and stuff like that. Try to make them realise that CakePHP will drasticly reduce development time, but in the mean time to still

Re: findAllThreaded Returning Empty

2007-12-13 Thread AJ
to just give me a hierarchal array like that. If that's possible, I'd certainly prefer it, but might need a couple pointers. Thanks much, AJ --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP group. To post

Re: findAllThreaded Returning Empty

2007-12-13 Thread AJ
')); ...and in my layout: echo $tree-generate($navContent); And I'm getting these errors: Undefined variable: node [CORE/app/views/helpers/tree.php, line 65] Undefined variable: itemReturn [CORE/app/views/helpers/tree.php, line 65] AJ --~--~-~--~~~---~--~~ You received

Re: findAllThreaded Returning Empty

2007-12-13 Thread AJ
The code does not know the name of the model (array key) to loop on, look at the example usage in the comments (you need to pass something in the 2nd parameter) PS. there /is/ a typo $itemReturn should just be $return. Both changed, but still getting the $node error. Where is that variable

Re: findAllThreaded Returning Empty

2007-12-13 Thread AJ
Ah, $node should also be $return. It works now! The ul and li structure doesn't seem to be building quite right, but that's the least of my worries now. I'm sure I can figure that out. Thanks again! AJ http://atlantajones.com --~--~-~--~~~---~--~~ You received

Re: findAllThreaded Returning Empty

2007-12-12 Thread AJ
Trying to bump this a bit. Either nobody saw it, or maybe a solution isn't all that obvious? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP group. To post to this group, send email to

Re: findAllThreaded Returning Empty

2007-12-12 Thread AJ
Chris, Thanks for the response. Actually that made a lot of sense. Unfortunately I was already in debug mode 2. I tried setting it to every other value and even deleted the cache file. Same result. And again, I checked the SQL output and it runs fine by itself. Open to other ideas :) AJ

Re: findAllThreaded Returning Empty

2007-12-12 Thread AJ
Content.section_id IS NOT NULL But a condition like this returns absolutely nothing: Content.section_id = 1 ...even though I can take the generated SQL and it returns the appropriate pages. AJ --~--~-~--~~~---~--~~ You received this message because you are subscribed

Re: New Cake App In The Wild

2007-12-11 Thread AJ
-generating is an idea, but then I've got to write it on a post-it (or my hand) until I pick it up. Again, defeating its purpose. AJ On Dec 3, 9:45 am, Jon Bennett [EMAIL PROTECTED] wrote: Just launched an extremely basic web app using the 1.2 alpha. It's called ClipRunner and basically served

findAllThreaded Returning Empty

2007-12-11 Thread AJ
NO conditions (or even 1 = 1), it populates the array with all pages. And no other conditions work, no matter what fields I try to match. I'm really stuck as this makes no sense whatsoever and I *seem* to be doing it right. could this be a bug that has been resolved in the pre- beta? Thanks in advance! AJ

New Cake App In The Wild

2007-12-02 Thread AJ
Just launched an extremely basic web app using the 1.2 alpha. It's called ClipRunner and basically served my own need of getting basic text data from one computer to another. http://www.cliprunner.com Comments welcome! --~--~-~--~~~---~--~~ You received this

Re: Bakery Article : How to use ACL in 1.2.x

2007-08-30 Thread AJ
Great article that's really helped me a lot, thank you. However, I'm still having a block on ACL that I can't find answers for. So in your basic example, you can easily allow/deny access to 'posts' as a whole. However, if each post is an ACO, how do you query the database to only show records

Re: Bakery Article : How to use ACL in 1.2.x

2007-08-30 Thread AJ
Great article that's really helped me a lot, thank you. However, I'm still having a block on ACL that I can't find answers for. So in your basic example, you can easily allow/deny access to 'posts' as a whole. However, if each post is an ACO, how do you query the database to only show records

Re: ACL Implementation Discussion

2007-08-30 Thread AJ
specific (with actual code) on how to accomplish this? Many thanks in advance. AJ --~--~-~--~~~---~--~~ 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