# |
Aug 6th 2008, 21:56 |
cobol |
or somesuch |
# |
Aug 6th 2008, 21:56 |
cobol |
<?php echo $this->element('categorylist'); ?> |
# |
Aug 6th 2008, 21:55 |
cobol |
an element would be a reusable piece of view logic |
# |
Aug 6th 2008, 21:55 |
Jezek |
so i just include the copmonent in the controller? |
# |
Aug 6th 2008, 21:55 |
Jezek |
but what if i want to use views too, like if viewing an individual category |
# |
Aug 6th 2008, 21:54 |
cobol |
because components are designed to hold reusable application that logic that will be called upon in multiple actions |
# |
Aug 6th 2008, 21:53 |
Jezek |
i already have a controller |
# |
Aug 6th 2008, 21:53 |
Jezek |
wait why a component |
# |
Aug 6th 2008, 21:53 |
cobol |
instead of view |
# |
Aug 6th 2008, 21:53 |
cobol |
the caching could then also be data level |
# |
Aug 6th 2008, 21:52 |
cobol |
and possibly a component to help it along |
# |
Aug 6th 2008, 21:52 |
cobol |
element |
# |
Aug 6th 2008, 21:51 |
Jezek |
how else would i display a list of categories on my frontpage |
# |
Aug 6th 2008, 21:51 |
cobol |
and is insanely heavy |
# |
Aug 6th 2008, 21:51 |
cobol |
and actually, requestAction replicates most of the request lifecycle |
# |
Aug 6th 2008, 21:50 |
cobol |
i dont think requestAction is cache-aware |
# |
Aug 6th 2008, 21:50 |
Jezek |
http://bin.cakephp.org/view/39830046 |
# |
Aug 6th 2008, 21:49 |
cobol |
but i'm not actually sure. |
# |
Aug 6th 2008, 21:48 |
cobol |
Jezek: i think those definitions are url-based, so if it's a different url... |
# |
Aug 6th 2008, 21:48 |
Jezek |
or i guess it does work, but when i include the action on the frontpage, it runs the queries again. |
# |
Aug 6th 2008, 21:47 |
cobol |
xdebug ftw |
# |
Aug 6th 2008, 21:47 |
cobol |
i recommend it to anyone |
# |
Aug 6th 2008, 21:47 |
cobol |
(print_r,var_dump,etc) |
# |
Aug 6th 2008, 21:47 |
cobol |
because it's so hard to debug ajax output with it |
# |
Aug 6th 2008, 21:47 |
cobol |
i use syslog() and remoet debugging almost exclusively for that stuff now |
# |
Aug 6th 2008, 21:46 |
nymacro |
t73net: cheers |
# |
Aug 6th 2008, 21:45 |
t73net |
or even pr(); |
# |
Aug 6th 2008, 21:45 |
t73net |
nymacro: try debug() instead |
# |
Aug 6th 2008, 21:43 |
Jezek |
when i set it to cache all actions, it works |
# |
Aug 6th 2008, 21:43 |
renan_saddam |
FurnaceBoy: Eu digo o mesmo! |
# |
Aug 6th 2008, 21:43 |
cobol |
the web is teh awesome |
# |
Aug 6th 2008, 21:43 |
cobol |
i like services and SaaS and all that |
# |
Aug 6th 2008, 21:43 |
nymacro |
print_r needs pretty printing like most CLISP :( |
# |
Aug 6th 2008, 21:43 |
Jezek |
I can't get view caching to work. this is the relevant code. http://bin.cakephp.org/view/573298039 |
# |
Aug 6th 2008, 21:43 |
cobol |
yeah i dont want to write for nodes anymore |
# |
Aug 6th 2008, 21:42 |
t73net |
make for nice x-OS compatability |
# |
Aug 6th 2008, 21:42 |
t73net |
I've seen a couple things about it |
# |
Aug 6th 2008, 21:42 |
FurnaceBoy |
renan_saddam, sempre e bom para encontrar brazucas no irc :) |
# |
Aug 6th 2008, 21:42 |
t73net |
cool |
# |
Aug 6th 2008, 21:42 |
cobol |
utterly useless for web stuff, but it can compile a lot of gtk-php apps cleanly last i checked |
# |
Aug 6th 2008, 21:42 |
nymacro |
hehe |