CI, FreakAuth libraries, API, and misc... - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23) +--- Thread: CI, FreakAuth libraries, API, and misc... (/showthread.php?tid=11653) |
CI, FreakAuth libraries, API, and misc... - El Forum - 09-18-2008 [eluser]vclef[/eluser] I'm doing a small app for fun using CI and FAL and have a few questions. 1. Does FAL have APIs to get ALL users and admins? I looked at the index() in the FAL's admin/admins controllers and it seems to do just that. So I thought it doesn't have it. Could you confirm? If that's the case, I'd extend FAL library using MyFAL_demo as a template. If someone already did that, would you mind sharing your code? I don't want to 'reinvent' the wheel 2. This question is kinda basic, but why can't I do $this->freakauth_light->belongsToGroup()in the view code? I'm currently using getUserProperty('role') as an alternative. Any pointer or suggestion is much appreciated. CI, FreakAuth libraries, API, and misc... - El Forum - 09-18-2008 [eluser]vclef[/eluser] bump CI, FreakAuth libraries, API, and misc... - El Forum - 09-19-2008 [eluser]vclef[/eluser] Just FYI in case you're interested. Since the FAL's models seem to be very good and already have most of the APIs I was looking for, I ended up writing a custom model that calls FAL's models and assembles data the way I wanted. Then my my controller would call the custom model. |