Welcome Guest, Not a member yet? Register   Sign In
Setting title, description and keyword tags in the view rather than in the controller?
#1

[eluser]Unknown[/eluser]
Hello Igniters of Code,

Is it possible with CI to set the title in the view rather than the controller? Currently, I'm setting the title in each controller method (works as expected), but it sure seems like I should be doing that kind of thing in the views instead.

If I can figure that out, then I can also set the description and keyword tags from the view as well. Google will love me!

Maybe, oh maybe even use this magic to figure out a way to include a javascript that is only used in that particular view as well...?

I would very much appreciate cleaning up my controllers by figuring this out (with your help). I've searched around and haven't found any reference to this sort of tomfoolery. Has anyone done something like this with CI?

Many thanks,


Messages In This Thread
Setting title, description and keyword tags in the view rather than in the controller? - by El Forum - 12-09-2009, 11:12 PM



Theme © iAndrew 2016 - Forum software by © MyBB