Log message #107526

# At Username Text
# Aug 6th 2008, 22:02 cobol does that all make sense?
# Aug 6th 2008, 22:02 Jezek oh ok
# Aug 6th 2008, 22:02 cobol *becomes
# Aug 6th 2008, 22:02 cobol and it because a black box to the controller's action
# Aug 6th 2008, 22:01 cobol you could then also easily integrate data caching in the component
# Aug 6th 2008, 22:01 cobol where the element handles it
# Aug 6th 2008, 22:01 cobol and pass it along to the view
# Aug 6th 2008, 22:01 cobol the application logic i would likely put in a component. the pages that use it would then call on the component to generate the data
# Aug 6th 2008, 22:01 cobol Jezek: no, the element is the view logic component
# Aug 6th 2008, 22:00 Jezek cobol, wouldn't i have to use requestaction in the element?
# Aug 6th 2008, 21:59 Jezek prettyy sure this is the cakephp channel
# Aug 6th 2008, 21:58 loki_racer whats another site like Pandora, not last.fm, that uses the browser to delivery music
# Aug 6th 2008, 21:58 Jezek alright
# Aug 6th 2008, 21:57 cobol like for example a component, or helpers, or elements; as is appropriate for you
# Aug 6th 2008, 21:57 cobol i.e. you should find a different container for reusable application logic components for that instead of an action
# Aug 6th 2008, 21:56 cobol there are a number of ways you can do this, but requestAction is probably not what you wnat to be doign because of the weight
# Aug 6th 2008, 21:56 chrysanthemum well hello all
# 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