Welcome Guest, Not a member yet? Register   Sign In
Url and 404

Hello, I have the parameters from the POST pass in the url after redirect.
But if you remove the segments from the url, like so, for example, prop/add/sell//4//0//1, then nothing happens, or parameters are incorrect, as all completely tied to the url
How can I compare this with existing url parameters, and if this parameter is not present or it incorrent, then show the 404 ..? All parameters in the url are mandatory. I get them by $this->uri-> segment(), and that's why i have problems..

have it using an if else statement..


// do something..
//do something

fivel, good idea, buy I was thinking about something more global thing.. and where will be better $this->uri -> segment() be situated in contorller, or in model or in view? thanks

It was stupid problem. really if else ))

no problem, glad it helped you.


Theme © iAndrew 2016 - Forum software by © MyBB