I fell in love with Hooks in frameworks recently; the honeymoon period was tragically short. First, the love story:
I ran into hooks rather simultaneously with two very different frameworks: Code Igniter and Lithium.
In both cases I was using a rather nifty hook to handle ensuring that users were properly authenticated and authorized before accessing a page.
I think we can all agree having to add some code to every single method is foolhardy: if (!isset($_SESSION['user_level']) OR ($_SESSION['user_level'] !=...
Post new comment