Welcome Guest, Not a member yet? Register   Sign In
Views full path on Linux
#1

Hi,

When i run the Codeigniter application on windows using Wamp or Xampp, The views can be loaded without writing the full path like

'login' => 'Auth\login',
'register' => 'Auth\register',


where Auth is a sub folder inside Views folder.

But on Linux or shared hosting, this doesn't work. I have to write full path to the views in whole application, i mean everywhere in controllers, views, config files, etc. Like:

'login' => 'App\Views\Auth\login',
'register' => 'App\Views\Auth\register',


is there any workaround/fix to this problem ?
Reply
#2

i figured it out.

its forward and backslash issue. need to use forward slashes, works on windows and linux.

or have to use full path with backslash like
app\views\auth\login

this also works but doesn't looks like a good idea. Smile
Reply




Theme © iAndrew 2016 - Forum software by © MyBB