⚠ In case you've missed it we have migrated to our new website, with a brand new forum. For more details about the migration you can read our blog post for website migration. This forum is read-only and soon will be archived. ⚠


preg

Member Since 08 Jan 2014
Offline Last Active Jan 09 2014 02:53 PM
-----

Posts I've Made

In Topic: PDF version of GroceryCRUD 2.1.4 API and Function list

09 January 2014 - 02:53 PM

the menu is not clickable ? :D or is it just my ubuntu pdf viewer ^^


In Topic: passing controller

09 January 2014 - 11:34 AM

sure jinbatsu has the better answear for that topic. You have to pass your data. Else you could generate a global var but not recommanded.

If u want to use some render with controller like sf2, i don't know if it's possible here.


In Topic: insert categories from a form please help

09 January 2014 - 11:31 AM

hello razerone,

 

you have to add a function in your default controller (maybe home.php).

 

like this :

public function categories() {
        $crud = new grocery_CRUD();

        // CHOOSE YOUR TABLE SQL HERE
        $crud->set_table('categories');

        // CHOOSE YOUR SUBJECT HERE
        $crud->set_subject('Categorie');

        // CHOOSE YOUR PAGE TITLE HERE
        $this->template->set('title', 'Manage your Categories');
        
        // HERE WE WILL CREATE A RELATION FOR PARENT ID
        $crud->set_relation('parent_id','categories','name');
        // first param : foreign KEY
        // second param : table reference
        // third param : what column you want see in your list

        $output = $crud->render();

        // here call your template or layout to see your datas
        $this->template->load('your-layout',$output);
}

you don't have to do more. If you want change the type of data input see here :

http://www.grocerycr...ions/field_type

 

I hope it wil be useful :)


In Topic: Is there any premade grocery crud user registertaion

09 January 2014 - 10:36 AM

i hope that my topic could help u : http://www.grocerycr...nglish-explain/


In Topic: Is there any premade grocery crud user registertaion

09 January 2014 - 09:44 AM

hi,

 

i could help you. I already create a new controller and model for that. if u still need it. i will create a new topic with a tutorial.