How to check if a library exist in a controller? |
Check if object is available:
PHP Code: $is_loaded = is_object(@$this->upload) ? TRUE : FALSE;// @ sign suppressed error if object didn't exist Now you just need to make your own method that take a parameter as name of library: PHP Code: private function is_lib($lib) PHP is_object function. |
Messages In This Thread |
How to check if a library exist in a controller? - by agriz - 04-29-2016, 09:13 AM
RE: How to check if a library exist in a controller? - by Tpojka - 04-29-2016, 04:15 PM
RE: How to check if a library exist in a controller? - by agriz - 04-29-2016, 05:18 PM
RE: How to check if a library exist in a controller? - by Tpojka - 04-29-2016, 05:25 PM
|