Welcome Guest, Not a member yet? Register   Sign In
convert to CI
#15

How to fix this error?


I attached the database in the attachment (giondacms).



Code:
[b]Fatal error[/b]: Call to undefined method Cpages::_example_output() in [b]C:\Program Files (x86)\EasyPHP-Devserver-16.1\eds-www\CompanyProfileCI\application\controllers\cpages.php[/b] on line [b]101[/b]
A PHP Error was encountered
Severity: Error
Message: Call to undefined method Cpages::_example_output()
Filename: controllers/cpages.php
Line Number: 101
Backtrace:

controllers/cpages.php



PHP Code:
    public function slideshows() {  $this->load->view('slideshows');  }
    
    public 
function slideshowimages() 
    
        
 
    
        $image_crud 
= new image_CRUD();
    
        $image_crud
->set_primary_key_field('id');
        $image_crud->set_url_field('url');
        $image_crud->set_title_field('title');
        $image_crud->set_table('example_4')
        ->set_ordering_field('priority')
        ->set_image_path('assets/uploads');
            
        $output 
$image_crud->render();
    
        $this
->_example_output($output);
    
        $this
->load->view('slideshow_images'); 
    
        
}

    public function contents() {  $this->load->view('contents');  


views/slideshow_Images.php

PHP Code:
<div class="row-fluid">
                <
div class="span12">
                    
                    
                    
Slideshow Name  <input type="text"></input>
        
                    <
button type="button" class="add" href="adminform.php">ADD SLIDESHOW</button
                    
                    
                    <
div>
                    
                    <?
php /* <a href='<?php echo site_url('images_examples/example1')?>'>Example 1 - Simple</a> |
                    <a href='<?php echo site_url('images_examples/example2')?>'>Example 2 - Ordering</a> |
                    <a href='<?php echo site_url('images_examples/example3/22')?>'>Example 3 - With group id</a> | */ 
?>
                    <a href='<?php echo site_url('cpages/slideshowimages')?>'>Example 4 - Images with title</a> | 
                    <?php /* <a href='<?php echo site_url('images_examples/simple_photo_gallery')?>'>Simple Photo Gallery</a> */ ?>
                    
                    </div>
                    
                    <div style='height:20px;'></div>  
                    <div>
                    <?php echo $output?>
                    </div>
                                        
                    <div class="widget-box">
                        <div class="widget-title"><h5>Slideshows</h5></div>
                        <div class="widget-content">
                        
                            
                        </div>
                    </div>                    
                </div>
            </div> 
" If I looks more intelligence please increase my reputation."
Reply


Messages In This Thread
convert to CI - by davy_yg - 05-11-2016, 09:29 PM
RE: convert to CI - by davy_yg - 05-11-2016, 10:55 PM
RE: convert to CI - by pdthinh - 05-11-2016, 11:28 PM
RE: convert to CI - by davy_yg - 05-12-2016, 12:37 AM
RE: convert to CI - by davy_yg - 05-12-2016, 08:32 PM
RE: convert to CI - by davy_yg - 05-12-2016, 11:36 PM
RE: convert to CI - by CI_MASTER - 05-12-2016, 11:36 PM
RE: convert to CI - by davy_yg - 05-13-2016, 02:04 AM
RE: convert to CI - by PaulD - 05-13-2016, 02:32 AM
RE: convert to CI - by davy_yg - 05-13-2016, 03:03 AM
RE: convert to CI - by PaulD - 05-13-2016, 03:12 AM
RE: convert to CI - by davy_yg - 05-13-2016, 03:56 AM
RE: convert to CI - by PaulD - 05-13-2016, 04:08 AM
RE: convert to CI - by davy_yg - 05-13-2016, 09:22 PM
RE: convert to CI - by davy_yg - 06-08-2016, 03:33 AM



Theme © iAndrew 2016 - Forum software by © MyBB