09-06-2015, 10:37 PM (This post was last modified: 09-08-2015, 07:26 PM by wolfgang1983.)
I am creating a module install controller. I am having issue with my view, when I click install button then install the module it should change to the button to modify, or some reason even though module installed button still says install.
How can I make sure that is module is installed then button will say modify and then if module not installed then will say install
As you can see in my image that I attached in the var dump it's showing slideshow installed into database there for button should now be modify but still says install.
defined('BASEPATH') OR exit('No direct script access allowed');
class Module extends CI_Controller {
public function __construct() { parent::__construct(); $this->load->model('extension/model_extension'); $this->load->model('extension/model_module'); }
public function install() { $this->model_extension->install('module', $this->uri->segment(4));
redirect('extension/module'); }
public function index() { $data['extensions'] = array();