Welcome Guest, Not a member yet? Register   Sign In
There's a bug when I try to customized error page, an 404 page
#2

how about to set 404_override on your common.php show_404 function

if there's not 404_override set on config/route, so it will return your default error page, BUT...
if we set 404_override to our custom error page, its will direct into our page.

maybe, on show_404 function we can set a condition like that.

```
function show_404(){
if($route['404_override']==""){
//return your code of show_404 before;
}else{
return $route["404_override"]
}
}
```

so, we can easily use 404 function after set customize page on config/route.
hopefully be considered
Reply


Messages In This Thread
RE: There's a bug when I try to customized error page, an 404 page - by rikimahendra - 12-03-2019, 08:40 PM



Theme © iAndrew 2016 - Forum software by © MyBB