Welcome Guest, Not a member yet? Register   Sign In
grocerycrud on practice
#1

I try to utillize:

http://www.grocerycrud.com/image-crud/documentation

and I receive this error:

http://127.0.0.1/CompanyProfileCI/index....showimages


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

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


controllers/cpages.php



PHP Code:
    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'); 
    
        } 


How to fix the error?
" If I looks more intelligence please increase my reputation."
Reply
#2

If you are using CI 3.0.6, controller filenames have to be UCfirst, i.e. Cpages.php
http://www.codeigniter.com/user_guide/ge...ello-world

If you are just copying some GroceryCRUD stuff into your app, it is written for an older version of CI.
Reply
#3

(This post was last modified: 06-10-2016, 08:34 PM by davy_yg.)

How to make it works? Will it be compatible with the newer version?


I still get this error message:

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

controllers/Cpages.php
" If I looks more intelligence please increase my reputation."
Reply
#4

It works, I guess you did not read the documentation by looking at your code.
What did you Try? What did you Get? What did you Expect?

Joined CodeIgniter Community 2009.  ( Skype: insitfx )
Reply
#5

I cannot tell which documentation CI or imageCRUD?

http://www.grocerycrud.com/image-crud/documentation?

I cannot tell what is lack?
" If I looks more intelligence please increase my reputation."
Reply
#6

Well gee what are you talking about it's not CI is it.
What did you Try? What did you Get? What did you Expect?

Joined CodeIgniter Community 2009.  ( Skype: insitfx )
Reply
#7

It is CI. I think the gallery is CI image CRUD.
" If I looks more intelligence please increase my reputation."
Reply
#8

GroceryCRUD and ImageCRUD are *not* part of CI -- those are addins.
Reply
#9

Are you serious? Check this out: http://www.grocerycrud.com/

Why it mentions the best CRUD for CI?
" If I looks more intelligence please increase my reputation."
Reply
#10

(06-12-2016, 03:09 AM)davy_yg Wrote: Are you serious?  Check this out:  http://www.grocerycrud.com/

Why it mentions the best CRUD for CI?

I am serious.

The developers of GroceryCRUD *claim* it is the best CRUD for CodeIgniter - they do not claim it *is* CodeIgniter.
Reply




Theme © iAndrew 2016 - Forum software by © MyBB