You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm working more or less directly from the the Events example in the readme. When I try to render 404.php I get two errors:
[01-Jul-2014 20:52:26 UTC] PHP Warning: include(views/404.php): failed to open stream: No such file or directory in /Users/scott/Sites/Semantic_Redesign/cockpit/vendor/Lime/App.php on line 529
and
[01-Jul-2014 20:52:26 UTC] PHP Warning: include(): Failed opening 'views/404.php' for inclusion (include_path='.:/Applications/MAMP/bin/php/php5.4.4/lib/php') in /Users/scott/Sites/Semantic_Redesign/cockpit/vendor/Lime/App.php on line 529
I'm able to render templates normally (i.e. when there's a defined route using bind()) but not during the after event.
The text was updated successfully, but these errors were encountered:
There is an easy workaround. Just add this line just after you created your app
$app->path('views', DIR.'/views');
After that just use such kind of calls (not that we use : instead of /)
$app->response->body = $app->render("views:404.php");
I'm working more or less directly from the the Events example in the readme. When I try to render 404.php I get two errors:
[01-Jul-2014 20:52:26 UTC] PHP Warning: include(views/404.php): failed to open stream: No such file or directory in /Users/scott/Sites/Semantic_Redesign/cockpit/vendor/Lime/App.php on line 529
and
[01-Jul-2014 20:52:26 UTC] PHP Warning: include(): Failed opening 'views/404.php' for inclusion (include_path='.:/Applications/MAMP/bin/php/php5.4.4/lib/php') in /Users/scott/Sites/Semantic_Redesign/cockpit/vendor/Lime/App.php on line 529
I'm able to render templates normally (i.e. when there's a defined route using
bind()
) but not during theafter
event.The text was updated successfully, but these errors were encountered: