Skip to content

Commit 5aca23e

Browse files
committed
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.
1 parent 99015bc commit 5aca23e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

user_guide_src/source/tutorial/static_pages.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ page actually exists:
9797
public function view($page = 'home')
9898
{
9999
100-
if ( ! file_exists('application/views/pages/'.$page.'.php'))
100+
if ( ! file_exists(APPPATH.'/views/pages/'.$page.'.php'))
101101
{
102102
// Whoops, we don't have a page for that!
103103
show_404();

0 commit comments

Comments
 (0)