Is there a simple way to get all actions within a specific controller to automaticaly include a particular CSS <link …> when they call render(…) ?
Is there a simple way to get all actions within a specific controller to automaticaly include a particular CSS <link …> when they call render(…) ?
What comes to my mind is to extend CController.render() to register the css file using CClientScript.
A filter is probably better. This filter will register the specified CSS file before action executes.
Of course, this is very tidy I like it.