Daniel, that would be great if you would be so kind and share it.

Where/in which folder should I put helper files?

Thanks for help,
A

On 25 December 2010 14:42, Richtermeister <[email protected]> wrote:

> Hey introvert,
>
> you're on the right track. You definitely want to avoid putting view-
> specific code into your model, so, yes, rendering this content is up
> to helper methods or classes. For example, to render trees, I have a
> class that takes a nested set (something that implements
> IteratorAggregate) as argument and returns a ul/li list. If you're
> stuck writing such a class, I can probably send you mine.. just not
> sure if it works as it may be a bit propel specific.
>
> Daniel
>
>
>
> On Dec 22, 1:32 pm, introvert <[email protected]> wrote:
> > hello,
> >
> > i've just migrated to Symfony framework a few days ago and I'm
> > wondering one thing.
> >
> > which approach would be best to use when you want to display a
> > collection (particularly hierarchical data - categories) inside a
> > template?
> >
> > should I make a helper that would retrieve collection (object/s) from
> > a database or would it be better to make a static function inside an
> > object helper ObjectTable ?
> >
> > i've been thinking of making a static function getRecords() in the
> > model, and then build a proper html output with a helper, which is
> > called directly from the template?
> >
> > thanks a lot for help
>
> --
> If you want to report a vulnerability issue on symfony, please send it to
> security at symfony-project.com
>
> You received this message because you are subscribed to the Google
> Groups "symfony users" group.
> To post to this group, send email to [email protected]
> To unsubscribe from this group, send email to
> [email protected]<symfony-users%[email protected]>
> For more options, visit this group at
> http://groups.google.com/group/symfony-users?hl=en
>

-- 
If you want to report a vulnerability issue on symfony, please send it to 
security at symfony-project.com

You received this message because you are subscribed to the Google
Groups "symfony users" 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/symfony-users?hl=en

Reply via email to