Welcome Guest, Not a member yet? Register   Sign In
get_instance() in folder 'controllers'. Codeigniter class inheritance. Autoload libraries
#1

[eluser]Unknown[/eluser]
Main class inherits from the class CI_Controller and contains another class (and its object), which also inherits from the class CI_Controller. The problem is that my libraries are automatically loaded (config / autoload.php) to both controllers, which returns an error.

How to create a CI instance in the class in the folder 'controllers'? Class is not inherited CI_Controllers and does not work get_instance function ().




Theme © iAndrew 2016 - Forum software by © MyBB