• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
error on the first page

#5
Hello,

I already fix couple things mentioned and still having that same problem remains.


A PHP Error was encountered
Severity: Notice
Message: Undefined property: Mpages::$load
Filename: libraries/Form_validation.php
Line Number: 147
Backtrace:
File: C:\Program Files (x86)\EasyPHP-Devserver-16.1\eds-www\CompanyGiondaCI\application\models\mpages.php
Line: 10
Function: __construct
File: C:\Program Files (x86)\EasyPHP-Devserver-16.1\eds-www\CompanyGiondaCI\application\controllers\cpages.php
Line: 32
Function: model
File: C:\Program Files (x86)\EasyPHP-Devserver-16.1\eds-www\CompanyGiondaCI\index.php
Line: 315
Function: require_once

Fatal error: Call to a member function helper() on null in C:\Program Files (x86)\EasyPHP-Devserver-16.1\eds-www\CompanyGiondaCI\system\libraries\Form_validation.php on line 147
A PHP Error was encountered
Severity: Error
Message: Call to a member function helper() on null
Filename: libraries/Form_validation.php
Line Number: 147
Backtrace:


controllers/cpages.php


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

class 
Cpages 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 https://codeigniter.com/user_guide/general/urls.html
     */
    
    
public function __construct()
    {
        
parent::__construct(); 



models/mpages.php


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

class 
Mpages extends CI_Model {


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

    public function 
set_parentctg()
    { 
How to fix the error?
" If I looks more intelligence please increase my reputation."
Reply


Messages In This Thread
error on the first page - by davy_yg - 07-05-2016, 02:06 AM
RE: error on the first page - by wolfgang1983 - 07-05-2016, 03:28 AM
RE: error on the first page - by davy_yg - 07-05-2016, 08:39 AM
RE: error on the first page - by mwhitney - 07-07-2016, 01:22 PM
RE: error on the first page - by davy_yg - 07-11-2016, 03:36 AM
RE: error on the first page - by JayAdra - 07-11-2016, 04:29 AM
RE: error on the first page - by mwhitney - 07-11-2016, 09:14 AM

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2020 MyBB Group.