Welcome Guest, Not a member yet? Register   Sign In
Error in redirecting
#1

[eluser]mstdmstd[/eluser]
Hi All,
I have rather a strange problem:
I have a page with http://local-ci22.com/admin/facility/edit/4 url and it is submitted at itself having form definition :

Code:
<form class="form-horizontal" action="/admin/facility/edit/4/page/1" method="post" accept-charset="utf-8" id="form_facility_edit"  name="form_facility_edit" enctype="multipart/form-data">
                                    <input type="hidden" name="csrf_test_name" value="697bb78af9556557cf554cae7a615fc7" />

I save the data and want to make redirect at sime page with code like :
Code:
redirect( '/admin/facility/edit/' . $id );

But page is redirected at url http://local-ci22.com/-/admin/facility/edit/4/page/1 and I can not find where "-/" is from in rederecting url ?

If redirect with code like
Code:
( base_url() . 'admin/facility/edit/' . $id );
it works ok.
Is it some error redirect function of maybe error in config file?
While relative urls are invalid ?
Which config items are used here ?


Messages In This Thread
Error in redirecting - by El Forum - 08-27-2014, 08:20 AM
Error in redirecting - by El Forum - 08-27-2014, 09:32 AM
Error in redirecting - by El Forum - 08-27-2014, 09:29 PM
Error in redirecting - by El Forum - 08-28-2014, 07:32 AM



Theme © iAndrew 2016 - Forum software by © MyBB