It can be an element:

http://manual.cakephp.org/chapter/views (look for Elements)

or a method in your own helper.

I prefer elements for that kind of thing.

Also read up on the manual:

http://manual.cakephp.org/chapter/components

Because components are helper functions for controllers, and should have
nothing to do with views.

-MI

---------------------------------------------------------------------------

Remember, smart coders answer ten questions for every question they ask. 
So be smart, be cool, and share your knowledge. 

BAKE ON!

blog: http://www.MarianoIglesias.com.ar


-----Mensaje original-----
De: [email protected] [mailto:[EMAIL PROTECTED] En nombre
de cc96ai
Enviado el: MiƩrcoles, 28 de Marzo de 2007 03:18 p.m.
Para: Cake PHP
Asunto: Reusable component in View

I want to create a reusable component in the View . e.g. Menu Bar,
login box,

should it be the 'Component' or Helper ?


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to