Welcome Guest, Not a member yet? Register   Sign In
Skinning my CI App / Templating, styling questions
#2

[eluser]Seppo[/eluser]
There are a couple of recommendations...
First, avoid URL rewriting for the static content folder. Take a look here in the "Removing the index.php file" section on how to create a rule to avoid apache rewrite (in the example, they escape images, but you can add styles, javascript, etc using pipes).

Other useful advice is to use the html helper functions for including images and links tags.

And for last, if you wanna use a common view in multiple controllers you have two choises:
- you can load multiples views inside your controller (take a look here, in "Loading multiple views")
- you can load a view inside another view, and the second view will have the same variables you have set for the first one.


Messages In This Thread
Skinning my CI App / Templating, styling questions - by El Forum - 04-12-2008, 11:37 AM
Skinning my CI App / Templating, styling questions - by El Forum - 04-12-2008, 12:20 PM
Skinning my CI App / Templating, styling questions - by El Forum - 04-12-2008, 12:34 PM
Skinning my CI App / Templating, styling questions - by El Forum - 04-12-2008, 12:39 PM
Skinning my CI App / Templating, styling questions - by El Forum - 04-12-2008, 12:47 PM
Skinning my CI App / Templating, styling questions - by El Forum - 04-12-2008, 12:59 PM
Skinning my CI App / Templating, styling questions - by El Forum - 04-12-2008, 02:07 PM
Skinning my CI App / Templating, styling questions - by El Forum - 04-13-2008, 02:46 AM
Skinning my CI App / Templating, styling questions - by El Forum - 04-13-2008, 02:53 AM
Skinning my CI App / Templating, styling questions - by El Forum - 04-15-2008, 10:37 AM
Skinning my CI App / Templating, styling questions - by El Forum - 04-15-2008, 10:41 AM
Skinning my CI App / Templating, styling questions - by El Forum - 04-15-2008, 10:43 AM



Theme © iAndrew 2016 - Forum software by © MyBB