Welcome Guest, Not a member yet? Register   Sign In
Images CRUD (GroceryCRUD)
#1

(This post was last modified: 05-11-2016, 06:20 AM by ciadmin.)

Hello,

I am trying to understand the code of image gallery:

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

I do not understand why:  new image_CRUD();  is being define?  Where does it comes from?

controllers/images_examples.php


PHP Code:
    function example1()
    {
        
$image_crud = new image_CRUD();
        
        
$image_crud->set_primary_key_field('id');
        
$image_crud->set_url_field('url');
        
$image_crud->set_table('example_1')
            ->
set_image_path('assets/uploads');
            
        
$output $image_crud->render();
        
        
$this->_example_output($output);
    } 
" If I looks more intelligence please increase my reputation."
Reply
#2

You may want to read a little bit about objects and classes. php.net is a great place to read about it.

http://php.net/manual/en/language.oop5.php
Reply




Theme © iAndrew 2016 - Forum software by © MyBB