As jacmoe said, the best practice is to put elements specific to one
view into a subfolder named the same as the view. That way you aren't
cluttering the elements directory with lots of files, and the element
files specific to that view will be easy to find and call.

Example: if the element belong to /views/users, put it in /views/
elements/users/.

On Oct 22, 4:13 am, jayarjo <[email protected]> wrote:
> I'm getting a huge View and I'm thinking now of splitting it into
> separate pieces and include them into the main View, as I will need
> them. I know I can create Elements and include them, but the problem
> is that those smaller Views that I'd like to create are specific to
> this main View only. So that I'd rather store them inside that folder
> named after the Controller of the main View rather then clutter
> Elements folder with unnecessary files. Is there any widespread
> solution to this? There should be some.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"CakePHP" 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