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)
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)
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.
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.
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
Thanks Remo, I'll check that out.
so this is a good question and i would also like to kno.