Welcome Guest, Not a member yet? Register   Sign In
Include not working after putting view files inside another folder
#9

[eluser]LuckyFella73[/eluser]
Ah ok! If you use the "$this->load->view('viewfile')" method
it should look from the folder "views" and then
if defined in a subfolder. If it didn't work in all
cases - maybe you had a typo or a leading slash?
I have subfolders in my views directory all the time and
had never problems calling the files. The only difference
may be that I load the view files in my controller and
send them to the Main views. But it should work even if
you load sub-views in your views.


Messages In This Thread
Include not working after putting view files inside another folder - by El Forum - 10-23-2012, 04:39 AM



Theme © iAndrew 2016 - Forum software by © MyBB