php - In Codeigniter what is the purpose of hook ? Why we have to create? -


i new codeigniter. in every interview asked hooks. not getting hook why have use ? benefit of it.

this example link use hooks in codeigniter

https://qasimbadami.wordpress.com/2012/05/18/codeigniter-hooks-tutorial/

note : suppose have big project , 100 controller , if every time check session exists or not , each , every post request use hook


Comments

Popular posts from this blog

javascript - How do you prevent nested queries/catches in sequelize? -

java - Could not retrieve pre-bound Hibernate session - Could not obtain transaction-synchronized Session for current thread -

ruby on rails - ActiveRecord order not working -