Welcome Guest, Not a member yet? Register   Sign In
Problem with custom 404 page :(
#11

[eluser]Clooner[/eluser]
[quote author="victorche" date="1278953250"]I will for sure. It is just that I am at work, and the testing case is at home Smile
Still reading about those routes and began to understand them. But I don't see the connection with my problem yet Sad[/quote]
In this case your catch all controller/method will be your fully customizable super duper 404 error page!
#12

[eluser]Paulo Carvalho [/eluser]
Hi there, take a look at this page http://maestric.com/doc/php/codeigniter_404
#13

[eluser]Clooner[/eluser]
[quote author="Paulo Carvalho Design" date="1278957589"]Hi there, take a look at this page http://maestric.com/doc/php/codeigniter_404[/quote]
Server error 500 Big Grin
#14

[eluser]Paulo Carvalho [/eluser]
weird visited a few minutes ago i was looking for the same solution.!
this is a cached page by google:
http://webcache.googleusercontent.com/se...clnk&gl=uk
you will be able to see the solution there!
#15

[eluser]victorche[/eluser]
@paulo, thanks! but if you see the link in my first post... it is a wiki page about the same solution. so i am already using this thing with MY_router.php
and my problem is exactly with this approach. i even added a comment there, regarding the same issue.
i think in the first half of the comments there is the same problem described. but the author of this solution is not giving the answer... well he is giving the ideas, but i can not solve it by myself Wink
that's why i am asking here.
#16

[eluser]victorche[/eluser]
@clooner, thanks again for your help! Anyway these routes are helping a little. But they can not solve the major problem for me. If the url is like:
/products/detail/valid_numeric_but_not_existing_value

In this case I still have a blank page. Which is normal. The route can not check by itself in my database for a specific id :]
So my question is, when I check do I have a row with this id and there is one, I can display the results. What if there is no row with this id? What should I put in the else {} statement?




Theme © iAndrew 2016 - Forum software by © MyBB