Welcome Guest, Not a member yet? Register   Sign In
extending core class input (v2.0.1)
#1

[eluser]fajnalowiec[/eluser]
Is it possible to create my own extended core class input and use it simultaneously with the basic input class?
I am lazy and forgetful, so I created MY_Input inherited from CI_Input for automatic trim and htmlspecialchars_decode all $_POST data. But there are a little data like form->input->password or data from CKEditor (which is already html_entity_decoded) which I would like to read by basic CI input.
The point is; it would would be nice to name my inherited class for example "MY_Input2", then load it as library "input2" and then in controller use it "$this->input2->post(...)" or use the native CI_Input like this "$this->input->post(...)" whenever I want one or the second.


Messages In This Thread
extending core class input (v2.0.1) - by El Forum - 05-12-2011, 05:17 PM
extending core class input (v2.0.1) - by El Forum - 05-12-2011, 07:51 PM
extending core class input (v2.0.1) - by El Forum - 05-13-2011, 11:46 AM



Theme © iAndrew 2016 - Forum software by © MyBB