Iliad: Passing parameters from the url, how-to?

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

Iliad: Passing parameters from the url, how-to?

Bèrto ëd Sèra
Hi all,

Is there any way to do the equivalent of a php ?parm1=... in Iliad?
And how do I retrieve the values?

Thanks
Bèrto

--
==============================
Constitution du 24 juin 1793 - Article 35. - Quand le gouvernement
viole les droits du peuple, l'insurrection est, pour le peuple et pour
chaque portion du peuple, le plus sacré des droits et le plus
indispensable des devoirs.


_______________________________________________
help-smalltalk mailing list
[hidden email]
http://lists.gnu.org/mailman/listinfo/help-smalltalk
Reply | Threaded
Open this post in threaded view
|

Re: 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

_______________________________________________
help-smalltalk mailing list
[hidden email]
http://lists.gnu.org/mailman/listinfo/help-smalltalk

signature.asc (204 bytes) Download Attachment