Quantcast
Channel: CodeIgniter Forums - All Forums
Viewing all articles
Browse latest Browse all 14343

gallery error

$
0
0
An uncaught Exception was encountered
Type: RuntimeException
Message: Unable to locate the model you have specified: Gallery
Filename: C:\Program Files (x86)\EasyPHP-Devserver-16.1\eds-www\CompanyGiondaCI\system\core\Loader.php
Line Number: 344
Backtrace:
File: C:\Program Files (x86)\EasyPHP-Devserver-16.1\eds-www\CompanyGiondaCI\application\controllers\Cpages.php
Line: 201
Function: model
File: C:\Program Files (x86)\EasyPHP-Devserver-16.1\eds-www\CompanyGiondaCI\index.php
Line: 315
Function: require_once

--------------------------------------



Code:
public function addslideshows() {

        $this->load->model('gallery');
        
        $this->load->view('addslideshows');
    
    }



models/Mpages.php

PHP Code:
public function gallery()
    {
        
$data = array(
            
'slideshow_image' => $this->input->post('slideshow_image'),
            
'image_id' => $this->input->post('image_id'),
            
'title' => $this->input->post('title'),
            
'images' => $this->input->post('images')        
        );
        
        return 
$this->db->insert('slideshow'$data);
            
    } 


controllers/cpages.php

PHP Code:
    public function addslideshows() {

        
$this->load->model('gallery');
        
        
$this->load->view('addslideshows'); 
    
    } 

Viewing all articles
Browse latest Browse all 14343

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>