Welcome Guest, Not a member yet? Register   Sign In
Site_url helper
#1

[eluser]Unknown[/eluser]
Hi All,


I have used site_url help for action of a form in view

ex.
Code:
$data['action'] = site_url('person/add');

but it returns the form action

Code:
<form method='post' action='http://localhost/CI/person/add' >



but i need it like
Code:
<form method='post' action='/person/add' >


please help me how can i do it?




Thanks
#2

[eluser]Jay Logan[/eluser]
Code:
$data['action'] = "/person/add";

Am I missing something?




Theme © iAndrew 2016 - Forum software by © MyBB