how to use View::url?

Permalink
I wanted to use View::url ($this->url) to generate a link.

But it seems this method is used within the dashboard and adds index.php unless I define URL_REWRITING_ALL.

I don't want to get rid of the index.php in the dashboard, I'd like to keep it. But how do I generate a link using the c5 framework within a site? (where I don't want index.php)

Remo
 
xclydes replied on at Permalink Reply
xclydes
I have also been wondering the same thing. i actually bypassed the url() function and used raw urls in some cases as it worked, but it adds complexity wen its time to make changes.
so this is a good question and i would also like to kno.
stevegibbings replied on at Permalink Reply
stevegibbings
I also want to get a "pretty url" without index.php in the url. I'm amending the Search Tool Form which uses View::url() in the template to set the Form method.

Anyone been able to get this usage working? If not I'll have to use string manipulation to remove /index.php from the resultant url string.

Thanks,

Steve.
Remo replied on at Permalink Reply
Remo
As mentioned above, if you want to get rid of index.php for every url (dashboard too) you have to set URL_REWRITING_ALL in site.php
stevegibbings replied on at Permalink Reply
stevegibbings
Thanks Remo, I'll check that out.