Welcome Guest, Not a member yet? Register   Sign In
including another view file
#1

[eluser]keevitaja[/eluser]
views i have:

Code:
views/
  /campaigns
    campaign.php
header.php
footer.php

somehow i can't include header.php in campaign.php like include('../header.php')
i found solution:

Code:
include(realpath(sprintf('%s/application/views/header.php', getcwd())));

is this solution OK or i missunderestood something again?




Theme © iAndrew 2016 - Forum software by © MyBB