On Dec 12, 3:08 am, AJ [EMAIL PROTECTED] wrote:
I searched through the list and could not find anyone having this
specific issue.
I am using 1.2 (not exactly sure what version, but not pre-beta). I
have a table of content pages, which includes a parent_id field. I am
trying to pull a
On Dec 13, 1:46 pm, AJ [EMAIL PROTECTED] wrote:
Youd be better off IMO getting familiar with and using the tree
behavior though
Actually, I am. Rather, that model is set up for it. I use
generateTreeList other places for dropdowns, but didn't think I could
have it generate an unordered
Youd be better off IMO getting familiar with and using the tree
behavior though
Actually, I am. Rather, that model is set up for it. I use
generateTreeList other places for dropdowns, but didn't think I could
have it generate an unordered list. So far I can't see how to use the
tree behavior
Something to play with:http://bin.cakephp.org/view/375925194
$data would be flat findAll sorted by lft.
Thanks a ton, but I'm having some issues.
Here is what's in my controller:
var $helpers = array('Tree' );
$this-set('navContent', $this-Content-
findAll(null,null,'Content.lft ASC'));
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
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
On Dec 13, 3:34 pm, AJ [EMAIL PROTECTED] wrote:
Something to play with:http://bin.cakephp.org/view/375925194
$data would be flat findAll sorted by lft.
Thanks a ton, but I'm having some issues.
Here is what's in my controller:
var $helpers = array('Tree' );
$this-set('navContent',
On Dec 13, 8:24 pm, AJ [EMAIL PROTECTED] wrote:
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!
AJhttp://atlantajones.com
$node should
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
On Dec 11, 2007 9:08 PM, AJ [EMAIL PROTECTED] wrote:
But the array keeps coming back empty. However, if I copy the SQL
query that Cake builds and run it, it returns exactly the records it
should.
Are you by chance developing with debug in config/core.php set to 0?
Try setting it to at least
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
On Dec 12, 2007 4:12 PM, AJ [EMAIL PROTECTED] wrote:
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
I will say this: if CakePHP is generating the proper queries then
perhaps you are looking at the wrong array? Try pasting the code in
question over athttp://bin.cakephp.organd posting the link here. It
might be something really silly.
I'm totally willing to believe that's the case, but
I searched through the list and could not find anyone having this
specific issue.
I am using 1.2 (not exactly sure what version, but not pre-beta). I
have a table of content pages, which includes a parent_id field. I am
trying to pull a threaded array like this:
$test =
14 matches
Mail list logo