![]() |
Need some idea - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Using CodeIgniter (https://forum.codeigniter.com/forumdisplay.php?fid=5) +--- Forum: General Help (https://forum.codeigniter.com/forumdisplay.php?fid=24) +--- Thread: Need some idea (/showthread.php?tid=69553) |
Need some idea - googlemy - 12-13-2017 Hi All, I want call database like below, right now I manually add. PHP Code: function get_permission_conditions() Database ![]() Example: How to make enableView == 1 as true PHP Code: function get_permission_conditions() Thanks you.... RE: Need some idea - Wouter60 - 12-13-2017 Remember to put database function inside a model, not a library. A model doesn't need the & get_instance(), you can refer to $this. So, in your model, make this function: PHP Code: function get_permission_conditions() RE: Need some idea - googlemy - 12-13-2017 Its working now!! thanks you so much!! |