# |
Aug 8th 2008, 23:01 |
freebox |
no |
# |
Aug 8th 2008, 23:00 |
markstory |
requestAction returns text I bet. |
# |
Aug 8th 2008, 22:59 |
freebox |
this work fine |
# |
Aug 8th 2008, 22:59 |
freebox |
dammit, if i go to localhost/app/categorias/index/sort:nome/order:asc |
# |
Aug 8th 2008, 22:59 |
freebox |
Warning (2): Invalid argument supplied for foreach() [APP\views\elements\menu_categorias.ctp, line 3] |
# |
Aug 8th 2008, 22:59 |
freebox |
uhm |
# |
Aug 8th 2008, 22:58 |
markstory |
the first slash is important. |
# |
Aug 8th 2008, 22:58 |
markstory |
requestAction('/categorias/index'); |
# |
Aug 8th 2008, 22:58 |
freebox |
$categorias = NULL |
# |
Aug 8th 2008, 22:58 |
markstory |
just make sure you cache the element. |
# |
Aug 8th 2008, 22:58 |
freebox |
isn't working |
# |
Aug 8th 2008, 22:57 |
markstory |
freebox: that will work too. |
# |
Aug 8th 2008, 22:57 |
freebox |
? |
# |
Aug 8th 2008, 22:57 |
freebox |
$categorias = $this->requestAction('categorias/index/sort:nome/order:asc'); |
# |
Aug 8th 2008, 22:57 |
freebox |
markstory: is this way to get my records in the element |
# |
Aug 8th 2008, 22:51 |
markstory |
anytime. |
# |
Aug 8th 2008, 22:51 |
M4ngoB00M |
;) |
# |
Aug 8th 2008, 22:51 |
M4ngoB00M |
ok - thanks - i will look at them |
# |
Aug 8th 2008, 22:50 |
markstory |
and bake should find them and use them. |
# |
Aug 8th 2008, 22:50 |
markstory |
you can place them in vendors/templates/views when you've edited them. |
# |
Aug 8th 2008, 22:50 |
markstory |
M4ngoB00M: I would suggest just looking at the stock templates and editing those. |
# |
Aug 8th 2008, 22:49 |
markstory |
the templates are a bit tricky to make but you can find the core ones in cake/console/libs/templates/views/ |
# |
Aug 8th 2008, 22:49 |
M4ngoB00M |
hmm - ok - where do i read about that feature? |
# |
Aug 8th 2008, 22:49 |
markstory |
if you want to get really fancy bake can use custom templates. saving you more work :) |
# |
Aug 8th 2008, 22:48 |
M4ngoB00M |
yeah - big project |
# |
Aug 8th 2008, 22:48 |
markstory |
M4ngoB00M: thats a pretty big app :) |
# |
Aug 8th 2008, 22:47 |
M4ngoB00M |
yes - from http://book.cakephp.org I have read sections 1, 2 and 3 |
# |
Aug 8th 2008, 22:46 |
markstory |
book.cakephp.org and api.cakephp.org |
# |
Aug 8th 2008, 22:45 |
M4ngoB00M |
yes - i see the docs and have been systematically reading |
# |
Aug 8th 2008, 22:45 |
M4ngoB00M |
ahh -- i c |
# |
Aug 8th 2008, 22:45 |
markstory |
M4ngoB00M: do you know about the docs and the api? |
# |
Aug 8th 2008, 22:45 |
markstory |
that would have a custom message when it failed. |
# |
Aug 8th 2008, 22:45 |
markstory |
M4ngoB00M: http://bin.cakephp.org/view/1021569616 |
# |
Aug 8th 2008, 22:45 |
M4ngoB00M |
i an a newb at cakephp - just started 6 hours ago... |
# |
Aug 8th 2008, 22:44 |
M4ngoB00M |
hi yeah that was it |
# |
Aug 8th 2008, 22:44 |
markstory |
M4ngoB00M: and the message you got is the default one. you can set a custom one in either the model or the view files. |
# |
Aug 8th 2008, 22:43 |
markstory |
M4ngoB00M: you can use VALID_NOT_EMPTY if on the rc2. or notEmpty if using a recent svn build |
# |
Aug 8th 2008, 22:43 |
freebox |
=) |
# |
Aug 8th 2008, 22:43 |
freebox |
ok |
# |
Aug 8th 2008, 22:42 |
markstory |
see app/config/routes.php |
# |
Aug 8th 2008, 22:42 |
M4ngoB00M |
ahh - yes - let me test I was using a value like "123 main st." |