⚠ 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 is an archived forum. ⚠

  •     

profile picture

Bootstrap 3 Install



jobloggs
  • profile picture
  • Member

Posted 06 May 2015 - 02:37 AM

just reading through you install guide at http://www.grocerycrud.com/documentation/how-to-install-a-new-theme

 

It doesn't tell you what file/s need to be modified with the example code

public function bootstrap_theme() 
{
        $crud = new grocery_CRUD();
 
        $crud->set_theme('bootstrap');
 
        $crud->set_subject('Customer', 'Customers'); 
        $crud->set_table('customers');
        $crud->columns('customerName','contactLastName','phone','city',
                                   'country','salesRepEmployeeNumber','creditLimit');
        $crud->display_as('salesRepEmployeeNumber','from Employeer')
            ->display_as('customerName','Name')
            ->display_as('contactLastName','Last Name');
 
        $crud->set_relation('salesRepEmployeeNumber','employees','lastName');
 
        $output = $crud->render();
}