Welcome Guest, Not a member yet? Register   Sign In
Loading custom library
#14

[eluser]mzvasiq[/eluser]
Ok this is the code for BlogUtilities.php. And regarding the file extension i'm using Mac so the Type of file says 'Php'

BlogUtilities.php

Code:
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');  

class BlogUtilities {
  function f1(){
    ....code
   }

  function f2(){
  .....code
  }

}

Login_Controller.php

Code:
class Login_Controller extends CI_Controller{

function index(){
  $this->load->view('Login');
}

function validate_user($username, $password){
  $this->load->model('DBQuery_Model');
  $user_attr = $this->DBQuery_Model->retrieve_user_attr($username);

  if($user_attr['account_status'] == 'Active'){
  
   $this->load->library('BlogUtilities');
   $hash_pass = $this->BlogUtilities->generate_hash($password);
   $mixed_salt_hash = $this->BlogUtilities->mix_hash_salt($hash_pass, $user_attr['salt']);
  
  
  }
}

}

And yeah the exact Error which i'm getting in the Log file is this ....

Code:
<?php  if ( ! defined('BASEPATH')) exit('No direct script access allowed'); ?>

ERROR - 2013-10-09 16:31:01 --> Severity: Notice  --> Undefined property: Login_Controller::$BlogUtilities /Applications/MAMP/htdocs/MzBlog/application/controllers/login_controller.php 21

Line No 21 being loading the BlogUtilities.php file


Messages In This Thread
Loading custom library - by El Forum - 10-09-2013, 05:23 AM
Loading custom library - by El Forum - 10-09-2013, 05:31 AM
Loading custom library - by El Forum - 10-09-2013, 05:48 AM
Loading custom library - by El Forum - 10-09-2013, 05:55 AM
Loading custom library - by El Forum - 10-09-2013, 06:09 AM
Loading custom library - by El Forum - 10-09-2013, 06:17 AM
Loading custom library - by El Forum - 10-09-2013, 06:22 AM
Loading custom library - by El Forum - 10-09-2013, 06:29 AM
Loading custom library - by El Forum - 10-09-2013, 06:37 AM
Loading custom library - by El Forum - 10-09-2013, 06:43 AM
Loading custom library - by El Forum - 10-09-2013, 06:44 AM
Loading custom library - by El Forum - 10-09-2013, 06:50 AM
Loading custom library - by El Forum - 10-09-2013, 07:37 AM
Loading custom library - by El Forum - 10-09-2013, 09:06 AM
Loading custom library - by El Forum - 10-09-2013, 10:02 AM
Loading custom library - by El Forum - 10-09-2013, 11:18 AM
Loading custom library - by El Forum - 10-09-2013, 01:22 PM



Theme © iAndrew 2016 - Forum software by © MyBB