|
|
| Author |
Message |
|
| Guest |
Posted: Thu Oct 02, 2008 9:28 am |
|
|
|
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 |
|
|
| Back to top |
|
| Guest |
Posted: Thu Oct 02, 2008 9:35 am |
|
|
|
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 |
|
|
| Back to top |
|
| Guest |
Posted: Thu Oct 02, 2008 8:29 pm |
|
|
|
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 |
|
|
| Back to top |
|
|
|
All times are GMT
|
|
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
|
|
|