On Mar 27, 2:56 pm, "double07" <[EMAIL PROTECTED]> wrote:
> Still wrestling with this issue. Managed to contact the author of the
> script and they re-wrote it a bit, but still no joy for me. See
> comments here:http://othy.wordpress.com/2006/06/03/generatenestedlist/
>
> The generateNestedList(
Still wrestling with this issue. Managed to contact the author of the
script and they re-wrote it a bit, but still no joy for me. See
comments here: http://othy.wordpress.com/2006/06/03/generatenestedlist/
The generateNestedList() function just produces an empty variable. I
did notice in debug mo
Using this in the controller: $this->set('category_tree',
$category_tree);
Just produces this error: Undefined variable: category_tree in C:\wamp
\www\cake\app\controllers\nodes_controller.php on line 47
I think this is correct: $this->set('category_tree', $this->Node-
>generateNestedList('--',
$this->set('category_tree', $category_tree); //in the controller, so the
view can use the variable...
HTH,
Eric
On 3/11/07, double07 <[EMAIL PROTECTED]> wrote:
>
>
> Hi all,
>
> I just wanted to re-visit this again. I've come back after a couple of
> weeks break to attempt to finish this projec
Hi all,
I just wanted to re-visit this again. I've come back after a couple of
weeks break to attempt to finish this project, in particular the
'parent' select list which needs to be indented (for ease of use). Now
I found what I thought was the perfect bit of code by 'Othy' here:
http://othy.wor
Success!
Yes I admit :) I just copied the code from Eric without checking it
(I'm a cake n00b with a design background - not much php/programming).
Just needed to refer to the 'Node' model and change around a few other
things and I managed to get the array out. Then I used the tree helper
to conv
Um...should be a method of the model class:
http://api.cakephp.org/class_model.html#181aefe1bf7efe1504692c485c83caa8
http://api.cakephp.org/1.2/classModel.html#181aefe1bf7efe1504692c485c83caa8
Are you calling it as $this->Node->findAllThreaded(...), as in the example
in your first post?
Eric
On
On Feb 26, 11:51 am, "double07" <[EMAIL PROTECTED]> wrote:
> Firstly, thanks for your feedback, but I'm getting this error?
>
> Fatal error: Call to undefined method stdClass::findAllThreaded() in C:
> \wamp\www\cake\app\controllers\nodes_controller.php on line 45
>
> Am I missing something here
Firstly, thanks for your feedback, but I'm getting this error?
Fatal error: Call to undefined method stdClass::findAllThreaded() in C:
\wamp\www\cake\app\controllers\nodes_controller.php on line 45
Am I missing something here?
Cheers.
On Feb 24, 1:30 pm, "Eric C Blount" <[EMAIL PROTECTED]> wro
The following helped me when I was setting up something like this:
$this->Category->recursive = 0;
$this->set('category_tree', $this->Category->findAllThreaded(null,
array('id','parent_id','name'),'parent_id, name'));
It'll give you a multidimensional array based on parent_id. You could a
Ok, this is doing my head in. Basically I'm trying to setup a simple
CMS. So the part I'm wrestling with here is the pages or what I've
called 'Nodes'
Now my nodes basically have fairly simple fields; id, parent_id,
title, summary, body, node_type_id, link, members and publish. It's
all pretty mu
11 matches
Mail list logo