there are only two ways - referrer or passing it some way
maybe you could use the session, as well
always store the current location in beforeRender
if you read it in beforeFilter you know where the previous request
was. just an idea
On 26 Okt., 19:51, senser <nikolay.engyo...@gmail.com> wrote:
> Hello,
>
> I was wondering is there a way to determine, the source of request.
> Let's say I have a view for adding new customer, and the view holds
> dynamic field updated through ajax, and in other hand have another
> view for adding new product with the same dynamic field, but with
> different name (models for customer and product are different). I want
> to set the name of the dynamic field according where it's called from
> - customer or product page. I don't want to rely on referrer, so the
> only suggestion I have is to pass parameter when calling dynamic field
> population. May be some way to get the name or instance of the model,
> controller or view .........
>
> Any ideas on this?
>
> Regards!
Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions.
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
No comments:
Post a Comment