Welcome Guest, Not a member yet? Register   Sign In
Problem with including templates
#1

[eluser]AndyBrandy[/eluser]
Hello,

a have split views directory into few subdirectories, but, now i have problem with including header and footer, because they are in root of views directory.

I try:

Code:
include_once('../header.php');

but it returns error:

Code:
File(../header.php) is not within the allowed path(s):

Can somebody help me? Thx
#2

[eluser]sl3dg3hamm3r[/eluser]
why don't you use CI's native view-loader? you also can use it within a view (search for partial view).

Sl3dg3
#3

[eluser]AndyBrandy[/eluser]
Well,

i don't know... But thank u, it works! Wink




Theme © iAndrew 2016 - Forum software by © MyBB