summaryrefslogtreecommitdiffstats
path: root/user_guide_src/source
diff options
context:
space:
mode:
authorCroNiX <cronix@animatrixdesign.com>2012-01-25 23:26:46 +0100
committerCroNiX <cronix@animatrixdesign.com>2012-01-25 23:26:46 +0100
commit5aca23eaeb6d8c4e665dd2cd23fe8d733bb94875 (patch)
tree0afdd6a5fe1bcf8d0fecec19b50f3dc0c715746a /user_guide_src/source
parent99015bc4389711cf19342c7f0f86cc980da79a2c (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.
Diffstat (limited to 'user_guide_src/source')
-rw-r--r--user_guide_src/source/tutorial/static_pages.rst2
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();