Reputation: 6264
I am new to Laravel 4. I am trying to generate a URL using the URL helpers. There is a function called url()
. It gives me a URL. But it doesn't add index.php to it.
I want a URL with index.php in it. I cannot use route()
function because I am using Route::controller('/', 'SiteController');
I don't want to use action()
because if there is no index.php
it will not generate a URL with index.php
.
Upvotes: 0
Views: 119
Reputation: 1604
1) index.php is where the "app" starts and launches.
2) .htaccess rewrites the URL for u.
3) the whole point of URL() is to provide the BASE url of your domain back so that you dont need to hardcode it - therefore you are using it wrong.
4) the only time index.php is there is if .htaccess is not rewriting or not accepted (ie in yahoo share hosting basically) therefor eyou can achieve your index.php/site/index.
Upvotes: 1