why consider components and helpers?

do you store your menu structures in database? why not just treat it as a
data and output it directly in layout?

On Fri, Dec 9, 2011 at 9:31 AM, MetZ <[email protected]> wrote:

> Hi all!
>
> I am looking for a couple of suggestions.
>
> I am currently working on a tree menu part of my app, where
> administrators can create menues, add links to the menues and move the
> links up and down in the tree.
>
> Now, I am looking how to output this menu with links on the frontend.
>
> Any suggestions on how I should proceed in this?
>
> Currently, I am getting my menues and links in a component, I am
> initializing the "getmenues" function in component from
> app_controller.php.
>
> And in my views, I call a helper to build the menu ul li li /ul
>
> Do I need to use a component for this task? Or can I just include
> everything in the helper? the database calls I mean?
>
> I have noe experience with helpers and components from before, so
> please be gentle with me ;)
>
> Thanks for any and all help on this issue!!
>
> BTW: Cake  1.3.13
>
> -Tom
>
> --
> Our newest site for the community: CakePHP Video Tutorials
> http://tv.cakephp.org
> Check out the new CakePHP Questions site http://ask.cakephp.org and help
> others with their CakePHP related questions.
>
>
> To unsubscribe from this group, send email to
> [email protected] For more options, visit this group
> at http://groups.google.com/group/cake-php
>



-- 
Perry | 彭琪
http://pengqi.me

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


To unsubscribe from this group, send email to
[email protected] For more options, visit this group at 
http://groups.google.com/group/cake-php

Reply via email to