Hi there, I am working on a project, where a system requires different templates for each site being loaded. I am currently storing the template path in a session then adding it to the render method like so, but im duplicating the process for each controller / action. Is there a better way to preset the path within a controller rather than bootstrap, as the controller is where the sessions are handled and some may not have the session info.

$this->render($this->session->template_path.'/content', null, true);


Let me know thanks.


Reply via email to