Welcome Guest, Not a member yet? Register   Sign In
Add change view folder for VIew

I wanted to change the theme for the user. The standard replacement in the controller method looks like a repeat. There is no other way to change the subject. To put it more simply, we need dynamic paths to templates
view($theme . '/user/dashboard');

Sorry, I don't get what you say.
What is the standard replacement in the controller method?

Also, if view($theme . '/user/dashboard') works, it seems fine to me.
It is clear that you are using the theme's view file.
You don't need to change the path in the View instance.

That's what I want to change. I think the variable in the name is superfluous. This means that it is preferable to change this value somewhere in one place.

I am sorry, but I do not see why the path should be changed during a request.

It is easy to add a setter if you extend the View class. 
I don't see why the setter should be provided to all CodeIgniter users.

The setter only complicates the View class and don't seem to have benefit.

Fine. then let's not waste time on this. I have nothing to add except what I have said.

Theme © iAndrew 2016 - Forum software by © MyBB