Ah, of course! I knew I'd seen it somewhere!
Cheers, Nicolas!
Nicolas Perriault wrote:
> Le 6 mai 08 à 22:28, Tom Haskins-Vaughan a écrit :
>
>> So I there shouldn't be any problem accessing the model (having a peer
>> method) inside the helper?
>
>
> Nope, just have a look to symfony's Objec
Yes, that's what I was thinking, but I want to be able to only pass the
photo_id rather than have to pass the src, the alt and the href.
Jorge Vargas wrote:
> On Tue, May 6, 2008 at 4:15 PM, Tom Haskins-Vaughan
> <[EMAIL PROTECTED]> wrote:
>> Well, here's what I want to do. I want to be able to
On Tue, May 6, 2008 at 4:15 PM, Tom Haskins-Vaughan
<[EMAIL PROTECTED]> wrote:
>
> Well, here's what I want to do. I want to be able to upload photos to my
> website. Then I can display them in a gallery. Fairly straightforward.
> But I'd also like to be able to hard code some of the uploaded p
Le 6 mai 08 à 22:28, Tom Haskins-Vaughan a écrit :
> So I there shouldn't be any problem accessing the model (having a peer
> method) inside the helper?
Nope, just have a look to symfony's ObjectHelper.php functions to
reassure yourself :)
++
--
Nicolas Perriault
http://prendreuncafe.com
Té
Merci, Nicolas.
So I there shouldn't be any problem accessing the model (having a peer
method) inside the helper?
Nicolas Perriault wrote:
> On Tue, May 6, 2008 at 10:15 PM, Tom Haskins-Vaughan
> <[EMAIL PROTECTED]> wrote:
>
>> So the question is, do I use a peer method to output the html or
On Tue, May 6, 2008 at 10:15 PM, Tom Haskins-Vaughan
<[EMAIL PROTECTED]> wrote:
> So the question is, do I use a peer method to output the html or create
> a helper to do this?
To me, templating should never sit in the model. I'd rather make a
helper, a partial or a component for that purpose.
Well, here's what I want to do. I want to be able to upload photos to my
website. Then I can display them in a gallery. Fairly straightforward.
But I'd also like to be able to hard code some of the uploaded photos
into my website. So I'd have the following:
New House
Which would outp
Hello,
I am not sure what you mean by access the model. but an helper can
have model as argument to perform a specific task. You cannot do any
logic in a helper.
Thomas
On Tue, May 6, 2008 at 9:58 PM, Tom Haskins-Vaughan
<[EMAIL PROTECTED]> wrote:
>
> I'm about to start writing a helper. Is