CodeIgniter Forums
best and safe way of sending filename in url using CI 2.2 and smarty - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forum-20.html)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forum-23.html)
+--- Thread: best and safe way of sending filename in url using CI 2.2 and smarty (/thread-60974.html)



best and safe way of sending filename in url using CI 2.2 and smarty - El Forum - 08-16-2014

[eluser]mstdmstd[/eluser]
Hi,
which is the best and safe way of sending filename in url using CI 2.2 and smarty ?
I tried to make it like
Code:
< a href="admin/admin/view_source{"/application/views/Bootstrap-3-Admin-Theme/admin/header.tpl"|urlencode}" > header source< / a >

but I got error
Code:
"Not Found" http://local-ci22.com/admin/admin/view_source/application/views/Bootstrap-3-Admin-Theme/admin/header.tpl"
In my config :
Code:
$config['permitted_uri_chars'] = 'a-z 0-9~%.:_\-';