On Thu, September 9, 2010 9:51 am, zoran wrote:
> For example, the URL is: www.example.com/locations/index
> If I call the command
from
> main_menus controllers and function getPage (),
> I get the following output: Array ([url] => main_menus / getPage).
> This is wrong!
> The result should be: Array ([url] => locations / index), but it's
> not. Why???

running

print_r ($ this-> params ['url'])

inside

 main_menus / getPage

will show the result you are getting.

move the print_r into beforeFilter in app controller and you should see
the locations/index as correct path.


>
> 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
>
>


-- 
Mike Karthauser
Managing Director - Brightstorm Ltd

Email: [email protected]
Web: http://www.brightstorm.co.uk
Tel:  07939 252144 (mobile)
Fax: 0870 1320560

Address: 1 Brewery Court, North Street, Bristol, BS3 1JS

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

Reply via email to