php - Integrating CodeIgniter libraries (like tank auth) -
i've done quite bit of research , haven't found satisfying answer. how should use codeigniter libraries such tank auth? i've found handful of ways, seem sort of lackluster: do use controller is, adding controller functions/including styles needed? do use controller example model own after, relying on calls $this->tank_auth , views included tank auth? or extend my_controller tank-auth controller, extend particular controller needs authentication, , call parent::login() (or register(), activate(), etc )? the first option seems best, seems difficult avoid copying lot of code (what happens if want login form, don't want redirect /auth/login?) the second option has same problem, worse. need include logic of tank auth controller's login function each time wanted use login_form view, correct? the last seems hacky , seems anti-mvc me, maybe i'm wrong. check out http://philsturgeon.co.uk/blog/2010/02/codeigniter-base-classes-keeping-it-dry ...