Thank you for your valuable help. I would like to take your opinion
about something related to this post,
I asked for this question to maintain a highlighting navigation for
the current page. The navigation is maintained by an element called
from the default layout. I passed to the element a parameter named
selected where
$selected = $this->name.'-'.$this->action;
then in every navigation item did something like the following: -
suppose the Posts link -
<li class="<?php echo ($selected == 'Posts-index') 'selected' :''?>"><?
php echo $html->link('Posts',array('controller...
On Jul 10, 2:12 am, cricket <[email protected]> wrote:
> In the view, $this->herehttp://api.cakephp.org/class/view
>
> In the controller, $this->base and
> $this->actionhttp://api.cakephp.org/class/controller
>
> On Fri, Jul 9, 2010 at 6:44 PM, saidbakr <[email protected]> wrote:
> > Hi,
>
> > Is there any method to get the current URL of the application, either
> > from view or the controller?
>
> > For example:
> > suppose we are at the follwoing url of the application
> >http://mysite.com/posts/view/12
>
> > I want to get this url?
>
> > Check out the new CakePHP Questions sitehttp://cakeqs.organd 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
> > athttp://groups.google.com/group/cake-php?hl=en
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