Skip to content

Commit

Permalink
Change hardcoded "application" directory to use the APPPATH constant …
Browse files Browse the repository at this point in the history
…as it would not work if you relocate /application or /system folders outside of web root.
  • Loading branch information
CroNiX committed Jan 25, 2012
1 parent 99015bc commit 5aca23e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion user_guide_src/source/tutorial/static_pages.rst
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ page actually exists:
public function view($page = 'home')
{
if ( ! file_exists('application/views/pages/'.$page.'.php'))
if ( ! file_exists(APPPATH.'/views/pages/'.$page.'.php'))
{
// Whoops, we don't have a page for that!
show_404();
Expand Down

0 comments on commit 5aca23e

Please sign in to comment.