Welcome Guest, Not a member yet? Register   Sign In
Callbacks/ Interceptors
#1

[eluser]Aniket[/eluser]
Hi,

Is there a way in CI to call callback method or interceptors as is servlets ?. Please suggest if any.
#2

[eluser]pistolPete[/eluser]
I don't know when callbacks are used in "servlets", but you can use callbacks in PHP.
In CI you use them e.g. in the Validation Library.
In order to help you, you need to specify where you need a callback functionality.
#3

[eluser]Aniket[/eluser]
Sry callbacks are used in EJBs. but apart from form validation callbacks can i have my own methods to be called as callbacks
#4

[eluser]pistolPete[/eluser]
Just tell me where you need a callback?
Have a look at php.net about callbacks in php: http://php.net/callback
#5

[eluser]Aniket[/eluser]
thanx for the reference link.

I want my custom logging method to be called every time i am making any entry to database. I think the resource you have provided can help me ....will try out n post my findings.

Thanks
#6

[eluser]pistolPete[/eluser]
I would use hooks or extend the database class.




Theme © iAndrew 2016 - Forum software by © MyBB