On Apr 13, 1:56 pm, mdb <[email protected]> wrote:
> Hello All,
>
> In my view.ctp i want check if a particular querystring is present, if
> so then need to assign that value to a local variable.
>
> Ex
>
> the url may or may not have the querystring 'eventid', If its present
> then assing to local variable otherwise no action


if (isset($this->params['url']['event_id']))
{
    $event_id = $this->params['url']['event_id'];
}

You can check for $this->params['url']['event_id'] in the controller.

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

To unsubscribe, reply using "remove me" as the subject.

Reply via email to