# |
Aug 8th 2008, 23:44 |
freebox |
i've deleted the cache and worked fine |
# |
Aug 8th 2008, 23:44 |
markstory |
at least the caching works :) |
# |
Aug 8th 2008, 23:44 |
markstory |
doh. |
# |
Aug 8th 2008, 23:43 |
freebox |
markstory: the cache element is cheating me |
# |
Aug 8th 2008, 23:43 |
freebox |
LOL |
# |
Aug 8th 2008, 23:43 |
markstory |
so you do need to return the vars, unless when you make the requestAction you specify 'return' => 1 then you get back a rendered view with no layout. |
# |
Aug 8th 2008, 23:42 |
markstory |
look at the first example. the recent comments section. |
# |
Aug 8th 2008, 23:41 |
markstory |
freebox: http://book.cakephp.org/view/434/requestaction |
# |
Aug 8th 2008, 23:41 |
markstory |
M4ngoB00M: not really, more like regex comfortable :) |
# |
Aug 8th 2008, 23:41 |
M4ngoB00M |
k thx |
# |
Aug 8th 2008, 23:40 |
M4ngoB00M |
heh - regex guru |
# |
Aug 8th 2008, 23:40 |
markstory |
M4ngoB00M: there is a single page view. you can save that. or print to pdf. |
# |
Aug 8th 2008, 23:40 |
M4ngoB00M |
i have to go on vacation for a week! can I download the whole documentation or is it online only? |
# |
Aug 8th 2008, 23:40 |
markstory |
/^[0-9]{1,10}\s[a-z\-.]+$/i ? just off the top of my head. |
# |
Aug 8th 2008, 23:38 |
M4ngoB00M |
tx |
# |
Aug 8th 2008, 23:38 |
M4ngoB00M |
yeah - i have a mental block on regex. |
# |
Aug 8th 2008, 23:38 |
markstory |
M4ngoB00M: that would work. outside of a complicated regex |
# |
Aug 8th 2008, 23:38 |
M4ngoB00M |
withou defining a regex or custome validator? |
# |
Aug 8th 2008, 23:37 |
markstory |
Veracious: $model->find('list'); |
# |
Aug 8th 2008, 23:37 |
M4ngoB00M |
markstory: check this out: http://bin.cakephp.org/saved/35922 is this the best way to validate a field like an "address 1st line" |
# |
Aug 8th 2008, 23:37 |
paramS |
I am now thinking , that a helper might come handy in creating menu system. Define all the Menu and Sub-Menus in my helper and then from each controller function just pass which Menu and Sub-Menu is "active" ( for theming ) |
# |
Aug 8th 2008, 23:37 |
Veracious |
is there an in-built way at the moment to get enums from a mysql table field in cakephp? I found one solution but it dates back to late 2006 |
# |
Aug 8th 2008, 23:37 |
markstory |
see line 260 of dispatcher.php |
# |
Aug 8th 2008, 23:36 |
markstory |
freebox: sorry I just looked at dispatcher. and the controller's output comes back as the requestAction. |
# |
Aug 8th 2008, 23:35 |
paramS |
cool, lemme try that for navigation stuff .. thanks for the info |
# |
Aug 8th 2008, 23:35 |
markstory |
freebox: try return $categories; see if that works. |
# |
Aug 8th 2008, 23:35 |
markstory |
paramS: yeah $this->set('navigation', $stuff) in your controller. |
# |
Aug 8th 2008, 23:34 |
markstory |
(in 1.1) |
# |
Aug 8th 2008, 23:34 |
markstory |
at least it did the last time I used it. |
# |
Aug 8th 2008, 23:34 |
paramS |
markstory << can i define a variable which can then be used in layout/default.ctp ; i want to export $navigation , separate from $content_for_layout |
# |
Aug 8th 2008, 23:34 |
markstory |
not the set vars. |
# |
Aug 8th 2008, 23:34 |
markstory |
requestAction takes the __return__ of the controller action. |
# |
Aug 8th 2008, 23:34 |
freebox |
¬¬ |
# |
Aug 8th 2008, 23:33 |
markstory |
fail. |
# |
Aug 8th 2008, 23:33 |
freebox |
markstory: the action: $this->set('cats', $this->Categoria->find('all')); |
# |
Aug 8th 2008, 23:33 |
markstory |
freebox: so return $categories; |
# |
Aug 8th 2008, 23:33 |
markstory |
Veracious: no prob :) |
# |
Aug 8th 2008, 23:33 |
freebox |
return my categories |
# |
Aug 8th 2008, 23:33 |
markstory |
or just set vars? |
# |
Aug 8th 2008, 23:33 |
freebox |
markstory: yes |
# |
Aug 8th 2008, 23:33 |
markstory |
freebox: does your controller action return anything? |