Welcome Guest, Not a member yet? Register   Sign In
Best practices for implementing a trust filter
#4

[eluser]CroNiX[/eluser]
My point was you don't need to "hack" codeigniter.php. You could create a new one and place it in /application/core and CI will use that one instead. A slightly different approach than extending the controller.

Sure you can present them with a nice message and headers. Just output them and then die() immediately after, or exit(), to stop the rest of the CI code execution cycle (which is essentially what show_error() does).

Yes, this is a nice feature, but I doubt CI would include something like this as it would rarely get used (is my guess, since I haven't been able to find a similar discussion, so not much demand). They don't even have an official CI ACL library, yet. They just like to have the bare essentials to keep bloat down and let the programmer add in what they need. They're not trying to be Zend.


Messages In This Thread
Best practices for implementing a trust filter - by El Forum - 01-25-2012, 11:06 AM
Best practices for implementing a trust filter - by El Forum - 01-25-2012, 01:33 PM
Best practices for implementing a trust filter - by El Forum - 01-25-2012, 03:50 PM
Best practices for implementing a trust filter - by El Forum - 01-25-2012, 04:08 PM
Best practices for implementing a trust filter - by El Forum - 01-25-2012, 04:22 PM



Theme © iAndrew 2016 - Forum software by © MyBB