|
I think you can easily accomplish this by using: $this->renderElement('../articles/_article'); However, CakePHP uses the convention of storing all those elements (partials) in a separate folder called "elements" and you can create sub folders in it to show where they belong to. CakePHP is great because you can overwrite most of it's conventions very easily, however once you start doing this, you'll start to loose the advantages of the conventions over configuration approach. Listen to somebody who used to blog mostly about getting rid of conventions and try to not go there ; ). PS: This does not apply if you have a *very* good reason for changing a convention in CakePHP (like legacy db table support). But if you start to tweak CakePHP to act just like Rails because you are uncomfortable with relearning everything you might decrease your productivity considerably. Best Regards, Felix Geisendörfer joel schrieb: I imagine you're pointing out elements. I had forgotten about them! That looks pretty good, but I want my partial (element) to be included in the "articles" folder, and not in the system-wide folder "elements". That could get hairy pretty quickly!Is there a way to specify where the element is located? --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~--- |
- Partials joel
- Re: Partials Larry E. Masters aka PhpNut
- Re: Partials joel
- Re: Partials Armando Sosa
- Re: Partials Felix Geisendörfer
- Re: Partials joel
