I have a very simple route in my config, but I can’t make it visit the error page. I don’t want to use go
because I don’t want a redirect.
c::set('routes', array(
array(
'pattern' => 'inbox/(:all)',
'action' => function() {
return page()->visit('error', 'sv');
}
)
));
- I know the pattern work.
- The visit page thing do something because when I do a print_r it show an object and then crasch because of overload.
- When having it like this it shows nothing, a white page.
- I do have a page called
error
in my panel. I did not change that and I even tried to add a template callederror.php
without luck.
Any ideas?