The controller Home
has a method export
:
public function export($id , $url){
...
}
In my smarty template, there is a link : <a href="/home/export/{%$id%}/{%$url%}">export</a>
.
If url is http://www.facebook.com, export
method just get http: as the value of url. So i change it to <a href="/home/export/{%$id%}/{%$url|escape:'url'%}">export</a>
, to escape slashes in url.
Then the location becomes ".../home/export/59/http%3A%2F%2Fwww.facebook.com%2F "(is what i want), but with "404 Not Found" Error(is not what i want).
Why is that? Shouldn't the location maps to export
method? And how to map to it with full url?