El Forum
09-16-2012, 12:09 PM
[eluser]xtremer360[/eluser]
The problem is that if a page is visited to where the url looks like mysite.com/newscategories/edit/5 if 5 isn't a row created in the database yet meaning it wouldn't have any data then it needs to show the 404 error page I have set up. Not sure why its not with line 103 of the pastebin. It works when there isn't an integer added to the url or if its not even a value numerical value for the id.
http://pastebin.com/Hc8fDh8k
What I want it to look like:
http://screencast.com/t/f8shdI9f
What it actually looks like:
http://screencast.com/t/JH0shwfnpk
The problem is that if a page is visited to where the url looks like mysite.com/newscategories/edit/5 if 5 isn't a row created in the database yet meaning it wouldn't have any data then it needs to show the 404 error page I have set up. Not sure why its not with line 103 of the pastebin. It works when there isn't an integer added to the url or if its not even a value numerical value for the id.
http://pastebin.com/Hc8fDh8k
What I want it to look like:
http://screencast.com/t/f8shdI9f
What it actually looks like:
http://screencast.com/t/JH0shwfnpk