Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
abhaych opened this issue May 26, 2017 · 10 comments
Open

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

abhaych opened this issue May 26, 2017 · 10 comments

Comments

@abhaych
Copy link

abhaych commented May 26, 2017

No description provided.

@abhaych
Copy link
Author

abhaych commented May 26, 2017

image

@Aroniez
Copy link

Aroniez commented May 26, 2017

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

@abhaych
Copy link
Author

abhaych commented May 26, 2017

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

@abhaych
Copy link
Author

abhaych commented May 26, 2017

I am new in CI

@abhaych
Copy link
Author

abhaych commented May 26, 2017

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

@Aroniez
Copy link

Aroniez commented May 26, 2017

Share piece of code in ark_admin that calls Log.php

@abhaych
Copy link
Author

abhaych commented May 26, 2017

I have no idea

@abhaych
Copy link
Author

abhaych commented May 26, 2017

default controller home.php
////////////////////////////////////////////////////////////

* @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) { /* * Code By Abhishek R. Kaushik * Sr. Software Developer */ $this->load->view('login'); } else { $sql = "SELECT * FROM users WHERE user_name = '" . $user . "' AND user_hash = '" . md5($password) . "'"; $val = $this->db->query($sql); if ($val->num_rows) { foreach ($val->result_array() as $recs => $res) { $this->session->set_userdata(array( 'id' => $res['id'], 'user_name' => $res['user_name'], 'email' => $res['email'], 'is_client_login' => true ) ); } redirect('calls/call'); } else { $err['error'] = 'Username or Password incorrect'; $this->load->view('login', $err); } } } } public function logout() { $this->session->unset_userdata('id'); $this->session->unset_userdata('username'); $this->session->unset_userdata('email'); $this->session->unset_userdata('title'); $this->session->unset_userdata('ag_country'); $this->session->unset_userdata('is_client_login'); $this->session->sess_destroy(); $this->output->set_header("Cache-Control: no-store, no-cache, must-revalidate, no-transform, max-age=0, post-check=0, pre-check=0"); $this->output->set_header("Pragma: no-cache"); redirect('home', 'refresh'); } } /* End of file welcome.php */ /* Location: ./application/controllers/welcome.php */

@Aroniez
Copy link

Aroniez commented May 26, 2017

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

@abhaych
Copy link
Author

abhaych commented May 26, 2017 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants