Wie kann ich integrieren ion_auth Bibliothek mit CodeIgniter 3 HMVC?

Ich verwendet ion_auth zuvor in meinem Projekt und ich habe kein problem damit. Jetzt habe ich ein Projekt, das eine HMVC-Ansatz.

Hier ist, was ich in meiner setup.

  1. Ich download ion_auth
  2. Ich die ion_auth Ordner in meinem Modul, und laden Sie das sql -
  3. Ich auth laden Sie die ion_auth in meine config
    • $autoload['libraries'] = array('session', 'auth/Ion_auth', 'acl');
  4. Ich ändern, die Konfiguration laden in der ion_auth Bibliothek

    $this->load->config('auth/ion_auth', TRUE);
    $this->load->library(array('email'));
    $this->lang->load('auth/ion_auth');
    $this->load->helper(array('cookie', 'language','url'));
    
    $this->load->library('session');
    
    $this->load->model('auth/ion_auth_model');

Und wenn ich es lade ion_auth in meinem brower sagt,

Unable to load the requested class: Ion_auth

Und auch ich autoload-in der Bibliothek der Auth-controller

<?php defined('BASEPATH') OR exit('No direct script access allowed');

class Auth extends MX_Controller {

    public $autoload = array(
        'libraries' => array(
            'auth/Ion_auth', 'form_validation', 'acl'
        ),
        'helper' => array(
            'url', 'language'
        )
    );

    function __construct()
    {
        parent::__construct();
        $this->load->database();

        //$this->load->library(array('auth/ion_auth','form_validation'));
        //$this->load->helper(array('url','language'));

        $this->form_validation->set_error_delimiters($this->config->item('error_start_delimiter', 'ion_auth'), $this->config->item('error_end_delimiter', 'ion_auth'));

        $this->lang->load('auth');
    }

Aber immer noch die gleiche Fehlermeldung.

Ich weiß nicht, welchen Teil ich verpasst. Können Sie mir helfen?

InformationsquelleAutor Jerielle | 2015-10-29
Schreibe einen Kommentar