sapienza / CodeIgniter-admin-panel

A CodeIgniter template with an administrator panel using twitter bootstrap.
Other
303 stars 258 forks source link

Unable to locate the specified class: Log.php #32

Open abhaych opened 7 years ago

abhaych commented 7 years ago

image

Aroniez commented 7 years ago

Is your supposed to be Log.php a controller/model class? Share section of ark_admin code that make reference to Log.php

abhaych commented 7 years ago

I follow the instruction and configure as listed in readme file when I execute local server I got this error

abhaych commented 7 years ago

I am new in CI

abhaych commented 7 years ago

Log.php file is located into System/Libraries/Log.php

Aroniez commented 7 years ago

Share piece of code in ark_admin that calls Log.php

abhaych commented 7 years ago

I have no idea

abhaych commented 7 years ago

default controller home.php //////////////////////////////////////////////////////////// <?php

if (!defined('BASEPATH')) exit('No direct script access allowed');

class Home extends CI_Controller {

/**
 * Index Page for this controller.
 *
 * Maps to the following URL
 *      http://example.com/index.php/welcome
 *  - or -  
 *      http://example.com/index.php/welcome/index
 *  - or -
 * Since this controller is set as the default controller in 
 * config/routes.php, it's displayed at http://example.com/
 *
 * So any other public methods not prefixed with an underscore will
 * map to /index.php/welcome/<method_name>
 * @see http://codeigniter.com/user_guide/general/urls.html
 */
public function __construct() {
    parent::__construct();
    $this->load->library('form_validation');
}

public function index() {
    echo "Abhay";
    exit();
    $arr['page'] ='home';
    $this->load->view('vwHome',$arr);
}

 public function do_login() {

    if ($this->session->userdata('is_client_login')) {
        redirect('home/loggedin');
    } else {
        $user = $_POST['username'];
        $password = $_POST['password'];

        $this->form_validation->set_rules('username', 'Username', 'required');
        $this->form_validation->set_rules('password', 'Password', 'required');

        if ($this->form_validation->run() == FALSE) {

/*

}

/ End of file welcome.php / / Location: ./application/controllers/welcome.php /

Aroniez commented 7 years ago

Try to replace system files with latest codeigniter files. You did not format that code above clearly so it's hard to read

abhaych commented 7 years ago

Let me debug i will contact you soon

Thanks & Regards

Abhay

On Fri, May 26, 2017 at 1:57 PM, Aaron Rono notifications@github.com wrote:

Try to replace system files with latest codeigniter files. You did not format that code above clearly so it's hard to read

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/sapienza/CodeIgniter-admin-panel/issues/32#issuecomment-304223510, or mute the thread https://github.com/notifications/unsubscribe-auth/AZrAMpqhbOryagrF35VhPNxprRcsmMHaks5r9ozzgaJpZM4NnO9e .