Re: [Help-smalltalk] Iliad: Passing parameters from the url, how-to?

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Re: [Help-smalltalk] Iliad: Passing parameters from the url, how-to?

Nicolas Petton
Le mercredi 10 mars 2010 à 18:09 +0200, Bèrto ëd Sèra a écrit :
> Hi all,
>
> Is there any way to do the equivalent of a php ?parm1=... in Iliad?
> And how do I retrieve the values?

I forwarded the email to Iliad mailing list.

Sure, it's simple to do. You can write code like this:

e a href: ((Iliad.ILUrl absolute: '/foo') addParameter: 'bar' value:
baz) asString

or simply using a string: e a href: '/foo?bar=baz'


Then you can retreive the field with:

self request at: 'bar' ifAbsent: ...

HTH,

Nico

signature.asc (204 bytes) Download Attachment