public function installModules(array $data, $db)
    {
        $this->db = $db;
        $this->data = $data;

        try {

            $this->install_model->installModules();
            $this->configureModules();

            return array(
                'message' => '',
                'severity' => 'success',
                'redirect' => 'install/' . ($this->data['step'] + 1)
            );

        } catch (Exception $ex) {

            $this->setContextError($this->data['step'], $ex->getMessage());

            return array(
                'redirect' => '',
                'severity' => 'danger',
                'message' => $ex->getMessage()
            );
        }
    }
public function installModules(array $data, $db)
    {
        $this->db = $db;
        $this->data = $data;

        try {

            $this->install_model->installModules();
            $this->configureModules();

            return array(
                'message' => '',
                'severity' => 'success',
                'redirect' => 'install/' . ($this->data['step'] + 1)
            );

        } catch (Exception $ex) {

            $this->setContextError($this->data['step'], $ex->getMessage());

            return array(
                'redirect' => '',
                'severity' => 'danger',
                'message' => $ex->getMessage()
            );
        }
    }
public function installModules ( array $ data , $ db ) { $ this -> db = $ db ; $ this -> data = $ data ; try { $ this -> install_model -> installModules ( ) ; $ this -> configureModules ( ) ; return array ( 'message' => '' , 'severity' => 'success' , 'redirect' => 'install/' . ( $ this -> data [ 'step' ] + 1 ) ) ; } catch ( Exception $ ex ) { $ this -> setContextError ( $ this -> data [ 'step' ] , $ ex -> getMessage ( ) ) ; return array ( 'redirect' => '' , 'severity' => 'danger' , 'message' => $ ex -> getMessage ( ) ) ; } }
Installs required modules. Step 1
@param array $data
@param \gplcart\core\Database $db
@return array
Installs required modules . Step 1