I just have a couple of questions here about proper use of viewPath variable and possibly making admin url's a little more automatic in the views.

When I do the following...

$html->link('New Item', $this->viewPath.'/add');

The URL that is created is...

http://example.com/controllers/controllers/add

What I expected (logically, not that I am using this as intended) was...

http://example.com/controllers/add

or

http://example.com/admin/controllers/add

depending on wether or not the admin route was being used.


The idea with wanting it to work this way is that I can more easily re-use code from my views without re-writing the URL's every time.


Any ideas if I am doing something wrong?

Ideas about submitting a feature request to trac?

Thanks

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake PHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/cake-php
-~----------~----~----~----~------~----~------~--~---

Reply via email to