Erlang Mailing Lists

Author Message

<  Erlyweb mailing list  ~  howto get current view in Erltl?

Guest
Posted: Thu Oct 02, 2008 9:28 am Reply with quote
Guest
Hi,

Is there a function to get the current view (and controller) in erltl?
I would like this because I am reusing a view component on different
pages, but I would like the url in this component to be dynamic.

regards, Ruud
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "erlyweb" group.
To post to this group, send email to erlyweb@googlegroups.com
To unsubscribe from this group, send email to erlyweb+unsubscribe@googlegroups.com
For more options, visit this group at http://groups.google.com/group/erlyweb?hl=en
-~----------~----~----~----~------~----~------~--~---

Post received from mailinglist
Guest
Posted: Thu Oct 02, 2008 9:35 am Reply with quote
Guest
It is better to do this in the controller, so my question really is
how do I get the current controller and its view from the current
url ?

On Oct 2, 11:28
Guest
Posted: Thu Oct 02, 2008 8:29 pm Reply with quote
Guest
I'm not sure I understand why you would need it, but currently there's
no function to query which component you're in. If you use the erlyweb
url conventions though (root/component/function/params) you could
figure it out from the 'component/function' part.

On Thu, Oct 2, 2008 at 2:34 AM, Ruud <ruud.prein@gmail.com> wrote:
>
> It is better to do this in the controller, so my question really is
> how do I get the current controller and its view from the current
> url ?
>
> On Oct 2, 11:28 am, Ruud <ruud.pr...@gmail.com> wrote:
>> Hi,
>>
>> Is there a function to get the current view (and controller) in erltl?
>> I would like this because I am reusing a view component on different
>> pages, but I would like the url in this component to be dynamic.
>>
>> regards, Ruud
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "erlyweb" group.
To post to this group, send email to erlyweb@googlegroups.com
To unsubscribe from this group, send email to erlyweb+unsubscribe@googlegroups.com
For more options, visit this group at http://groups.google.com/group/erlyweb?hl=en
-~----------~----~----~----~------~----~------~--~---

Post received from mailinglist

Display posts from previous:  

All times are GMT
Page 1 of 1
This forum is locked: you cannot post, reply to, or edit topics.

Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum