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

[eluser]jedd[/eluser]
Hi backwardm and welcome to the CI forums.

[quote author="backwardm" date="1260443554"]
Is it possible with CI to set the title in the view rather than the controller?
[/quote]

Can't you just:
Code:
// view file
...
<title>
This is my view-set title
</title>

Though I'm not sure why you want to set a title in a view - typically the title is derivative of where you are in the application - something a view doesn't necessarily have a good understanding of.

Quote: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...?

What problems have you had when you insert JS into the view file?


Messages In This Thread
Setting title, description and keyword tags in the view rather than in the controller? - by El Forum - 12-10-2009, 05:39 AM



Theme © iAndrew 2016 - Forum software by © MyBB