[eluser]Unknown[/eluser]
The display_override hook will give me access to a string that will contain all the generated output (right?
). I find it a bit harder to process that string and change the layout, than just use another view for a different layout
Let's consider the following directory structure:
application/view/ <-- will contain the "default" views.
application/view/themes/ <-- will contain a subfolder for each theme.
application/view/themes/myfancytheme/ <-- will contain all views that are different from the default one.
If I don't set a theme, then the "login.php" view will be loaded from the application/view/ directory. If I set the theme to "myfancytheme", the the "login.php" view will be loaded from the application/view/themes/myfancytheme/ directory.
Ofcourse, the code I posted earlier is just the rough idea, still needs checks (if the theme directory exists and so on), maybe a fallback mecanism (that will allow me to rewrite only some views) etc.