PHP code example of jorisvaesen / bootstrap-3-ui

1. Go to this page and download the library: Download jorisvaesen/bootstrap-3-ui library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

jorisvaesen / bootstrap-3-ui example snippets


// AppView.php

use Bootstrap3UI\View\UIViewTrait;

class AppView extends View
{
    use UIViewTrait;
    
    public function initialize()
    {
    	parent::initialize();
        
        $this->initializeUI();
    }

// AppView4.php

use BootstrapUI\View\UIViewTrait;

class AppView4 extends View
{
    use UIViewTrait;
    
    public function initialize()
    {
    	parent::initialize();
        
        $this->initializeUI();
    }

// In any controller initialize() or any action
$this->viewBuilder()
    ->setClassName('App\View\AppView')      // Bootstrap 3
    ->setClassName('App\View\AppView4')     // Bootstrap 4