# |
Aug 8th 2008, 23:33 |
freebox |
markstory: yes |
# |
Aug 8th 2008, 23:33 |
markstory |
freebox: does your controller action return anything? |
# |
Aug 8th 2008, 23:33 |
freebox |
its because im using it in home.ctp? |
# |
Aug 8th 2008, 23:33 |
Veracious |
markstory: thanks so much! =) |
# |
Aug 8th 2008, 23:32 |
freebox |
but my element dosent work |
# |
Aug 8th 2008, 23:32 |
freebox |
and worked |
# |
Aug 8th 2008, 23:32 |
markstory |
paramS: not the easiest option but it works. |
# |
Aug 8th 2008, 23:32 |
freebox |
i've created an view to the action menu |
# |
Aug 8th 2008, 23:32 |
freebox |
dosent work this element! XD |
# |
Aug 8th 2008, 23:32 |
paramS |
i like the sound of ACL option... |
# |
Aug 8th 2008, 23:31 |
markstory |
paramS: not sure but google might know. |
# |
Aug 8th 2008, 23:31 |
freebox |
lol |
# |
Aug 8th 2008, 23:31 |
paramS |
is there any article about common ways of making navigation system in Bakery or any Cake related blog ; this should be a very common problem that must have been solved ;) |
# |
Aug 8th 2008, 23:30 |
markstory |
if you are using ACL there are ways of making menus off of an Acl that is filled with controllers/actions as well. |
# |
Aug 8th 2008, 23:30 |
paramS |
i just dont want to hard-code the navigation links anywhere in my application as i am sure they will change all the time |
# |
Aug 8th 2008, 23:29 |
markstory |
well you could make a menu model/controller and use treebehavior to help nest them. |
# |
Aug 8th 2008, 23:28 |
harrison |
bonjour senorita |
# |
Aug 8th 2008, 23:28 |
M4ngoB00M |
harrison |
# |
Aug 8th 2008, 23:28 |
M4ngoB00M |
hi harrisn |
# |
Aug 8th 2008, 23:27 |
markstory |
paramS: define easy. |
# |
Aug 8th 2008, 23:26 |
paramS |
hi all, a newbie here ... just started fiddling with cakephp. I was wondering if there's an easy way to handle "Menu_System/Navigation" .. I dont want to put hard-links in "layout/default.ctp" ... |
# |
Aug 8th 2008, 23:24 |
TonkaTruck |
generatetreelist breaks for me when any 'conditions' are present. The conditions translate fine in the sql. Error is "array_combine() expects parameter 1 to be array" Is this a bug? |
# |
Aug 8th 2008, 23:23 |
Veracious |
markstory: thanks, I'll try that |
# |
Aug 8th 2008, 23:23 |
markstory |
Veracious: and I think Model::save() will get them all, if not Model::saveAll() will |
# |
Aug 8th 2008, 23:22 |
markstory |
Veracious: Model.0.field, Model.1.field etc. |
# |
Aug 8th 2008, 23:22 |
freebox |
uhm |
# |
Aug 8th 2008, 23:21 |
markstory |
freebox: just put the set() in the action you need the menu on. |
# |
Aug 8th 2008, 23:21 |
freebox |
but, same thing: Warning (2): Invalid argument supplied for foreach() [APP\views\elements\menu_categorias.ctp, line 4] |
# |
Aug 8th 2008, 23:21 |
freebox |
lol |
# |
Aug 8th 2008, 23:21 |
markstory |
and again you forgot the / at the front :) |
# |
Aug 8th 2008, 23:21 |
freebox |
no? uhm |
# |
Aug 8th 2008, 23:21 |
freebox |
and $cats = NULL again |
# |
Aug 8th 2008, 23:21 |
markstory |
you don't need to use requestAction. |
# |
Aug 8th 2008, 23:20 |
freebox |
my element: $cats = $this->requestAction('categorias/menu'); |
# |
Aug 8th 2008, 23:20 |
freebox |
i've created in categories menu: $this->set('cats', $this->Categoria->find('all')); |
# |
Aug 8th 2008, 23:20 |
markstory |
like? |
# |
Aug 8th 2008, 23:20 |
freebox |
markstory: something is wrong |
# |
Aug 8th 2008, 23:18 |
Veracious |
I'm trying to make multiple models in one form to work so I can add a row to multiple tables in one go. Any idea how to go about it? I searched about an hour on google but didn't find anything that would work |
# |
Aug 8th 2008, 23:05 |
freebox |
ok, i'll test |
# |
Aug 8th 2008, 23:03 |
markstory |
in view: echo $this->element('categories', compact('categories')); |
# |
Aug 8th 2008, 23:03 |
markstory |
make a categories element. |