# |
Oct 22nd 2009, 12:32 |
zyro |
'Parent' => array( |
# |
Oct 22nd 2009, 12:32 |
zyro |
$test = array( |
# |
Oct 22nd 2009, 12:32 |
zyro |
lo people.. just hit a problem with Set::extract ... maybe someone can provide help: |
# |
Oct 22nd 2009, 12:31 |
alan|macbook |
$programmes = $this->Programme->find('list'); gives a list of checkboxes |
# |
Oct 22nd 2009, 12:31 |
alan|macbook |
ok. You are right about flat data arrays |
# |
Oct 22nd 2009, 12:30 |
alan|macbook |
right |
# |
Oct 22nd 2009, 12:28 |
teknoid |
alan|macbook: but i certainly cannot guess what you mean by "things you don't understand" ... because i can't even see them |
# |
Oct 22nd 2009, 12:28 |
teknoid |
alan|macbook: like i said i am not sure if it's going to automagically build a tree structure for you. it works well for "flatter" data arrays |
# |
Oct 22nd 2009, 12:27 |
alan|macbook |
where is my mistake ? |
# |
Oct 22nd 2009, 12:27 |
alan|macbook |
teknoid: ok... it's displaying things i don't understant... I guess it comes from the 'options' => $programmes wich is set by $programmes = $this->Programme->find('all',array('fields' => array('title', 'lft', 'rght'), 'order' => 'lft ASC')); |
# |
Oct 22nd 2009, 12:22 |
alan|macbook |
Batuchi : maybe... |
# |
Oct 22nd 2009, 12:22 |
Batuchi |
alan|macbook, dont u need ajax helper for that? |
# |
Oct 22nd 2009, 12:20 |
alan|macbook |
Batuchi : see http://crepitus.com/misc/ext/tree.html |
# |
Oct 22nd 2009, 12:19 |
Batuchi |
a tree of checkboxes? |
# |
Oct 22nd 2009, 12:18 |
alan|macbook |
dam it ! |
# |
Oct 22nd 2009, 12:18 |
teknoid |
alan|macbook: possibly the options.... to be used |
# |
Oct 22nd 2009, 12:17 |
alan|macbook |
morning Batuchi |
# |
Oct 22nd 2009, 12:17 |
alan|macbook |
what am i missing ? |
# |
Oct 22nd 2009, 12:17 |
Batuchi |
good morning everyone |
# |
Oct 22nd 2009, 12:17 |
alan|macbook |
doesn't show anything |
# |
Oct 22nd 2009, 12:17 |
alan|macbook |
teknoid : <? echo $form->input('Programme', array('type' => 'select', 'multiple' => 'checkbox' )); ?> |
# |
Oct 22nd 2009, 12:16 |
teknoid |
alan|macbook: but you have you tried with 'multiple' => 'checkbox' |
# |
Oct 22nd 2009, 12:16 |
alan|macbook |
teknoid : i tried http://bakery.cakephp.org/articles/view/tree-helper-1 but i keep having a notice message and it doesn't work |
# |
Oct 22nd 2009, 12:14 |
teknoid |
alan|macbook: not that i know of |
# |
Oct 22nd 2009, 12:14 |
alan|macbook |
i thought cakePHP could do that for me... |
# |
Oct 22nd 2009, 12:14 |
alan|macbook |
then, am i supposed to generate the checkboxes with a loop ? |
# |
Oct 22nd 2009, 12:13 |
alan|macbook |
i set the datas from $this->Programme->find('threaded'); |
# |
Oct 22nd 2009, 12:12 |
alan|macbook |
no matter what i try, it doesn't work |
# |
Oct 22nd 2009, 12:12 |
alan|macbook |
i can't fin a way to generate a tree of checkboxes |
# |
Oct 22nd 2009, 12:12 |
teknoid |
alan|macbook: ok, so what exactly is the problem? |
# |
Oct 22nd 2009, 12:11 |
alan|macbook |
well... yes i AM |
# |
Oct 22nd 2009, 12:11 |
alan|macbook |
teknoid : yes i do |
# |
Oct 22nd 2009, 12:11 |
teknoid |
alan|macbook: and are you using the tree behavior? |
# |
Oct 22nd 2009, 12:10 |
alan|macbook |
teknoid : yes i do |
# |
Oct 22nd 2009, 12:10 |
teknoid |
alan|macbook: do you the tree structure in your DB? |
# |
Oct 22nd 2009, 12:08 |
alan|macbook |
i guess the recursive checking will be achieved by JS, but how do i generate the checkboxes ??? |
# |
Oct 22nd 2009, 12:06 |
alan|macbook |
i want to do something like this : http://crepitus.com/misc/ext/tree.html |
# |
Oct 22nd 2009, 12:06 |
alan|macbook |
but no matter what i try, it never works |
# |
Oct 22nd 2009, 12:05 |
alan|macbook |
i'd like to generate a tree of checkboxes |
# |
Oct 22nd 2009, 12:05 |
alan|macbook |
rhaaaaaaaa... Help ! It's driving me crazy... |
# |
Oct 22nd 2009, 11:55 |
PhpNut |
nice way to promote it though :) |