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 <[EMAIL PROTECTED]> 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 <[EMAIL PROTECTED]> 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 [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/erlyweb?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to