Re: Partials

2006-09-12 Thread joel
Armando: Thanks for that tip. No I can logically categorize my partials, I mean elements! Felix: Also, thanks for your tip. I'm not looking to do everything exactly like Rails, but I admit that using Rails for a few months opened my mind to lots of new ways to develop. I like Cake and

Re: Partials

2006-09-12 Thread Felix Geisendörfer
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 the

Re: Partials

2006-09-12 Thread Armando Sosa
Add a subfolder in the elements folder and acces like $this->renderElement('articles/element'); You know? Sometimes, I love how elements work, and some other times, I wish they worked like ror partials too. On 9/12/06, joel <[EMAIL PROTECTED]> wrote: > > I imagine you

Re: Partials

2006-09-12 Thread joel
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

Re: Partials

2006-09-12 Thread Larry E. Masters aka PhpNut
http://manual.cakephp.org/chapter/views-- /*** @author Larry E. Masters* @var string $userName* @param string $realName* @returns string aka PhpNut * @access  public*/ --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "

Partials

2006-09-12 Thread joel
I am one of the many who tried using Ruby on Rails, loved it, but needed to stay in the PHP world for many reasons. So, now I'm using CakePHP because I think it's the strongest MVC out there that runs on PHP 4. However... I really loved the concept and functionality of partials in