Where to put initialization functions

So I did the testdrive and the user crud.  I then started my own app. I have a function I need executed that will return a value to be used in the footer, so it should be executed for any page (it checks data cache first).

There's no __construct() in the sitecontroller, so I put the call to the function before each render there.  But now I've added a model, and the function doesn't get called by usercontroller, and I really don't want to start adding it before all those renders too.  Where would an initialization function go?


Thanks! I hadn’t burrowed into the api yet. I’ve added the init() function to the siteController and it works fine.  :)