diff options
author | CroNiX <cronix@animatrixdesign.com> | 2012-01-25 23:26:46 +0100 |
---|---|---|
committer | CroNiX <cronix@animatrixdesign.com> | 2012-01-25 23:26:46 +0100 |
commit | 5aca23eaeb6d8c4e665dd2cd23fe8d733bb94875 (patch) | |
tree | 0afdd6a5fe1bcf8d0fecec19b50f3dc0c715746a | |
parent | 99015bc4389711cf19342c7f0f86cc980da79a2c (diff) |
Change hardcoded "application" directory to use the APPPATH constant as it would not work if you relocate /application or /system folders outside of web root.
-rw-r--r-- | user_guide_src/source/tutorial/static_pages.rst | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/user_guide_src/source/tutorial/static_pages.rst b/user_guide_src/source/tutorial/static_pages.rst index c7f737951..708eaeb7b 100644 --- a/user_guide_src/source/tutorial/static_pages.rst +++ b/user_guide_src/source/tutorial/static_pages.rst @@ -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(); |