Architecture Concept

The bootstrap topic is directly loaded from view context. This means all the mystic stuff happens in two directories:

  1. ressources/views/
  2. public/components/

All starts from Controller context

Views are mostly generated by the Controller, when finishing work like

return View::make ('Generic.index', <parameters>);

This brings the view: Generic.index into play

View context

Generic Views

Generic Views are our Base MVC views. They describe how things look and behave for

  • index page
  • edit page

 

Generic View directly loads: Layouts View, like

@extends ('Layout.split84-nopanel')

@section('content_top')
 ...
@stop
@section('content_left')
 ...
@stop

Layout Views

The Layout Views describe how our general layout looks like, for example:

@extends ('Layout.default')
@section ('content')
    <div class="row col-md-12">
    <div class="col-md-{{isset($edit_left_md_size) ? $edit_left_md_size : 5}}">
        <div class="col-md-12 well"><h1 class="page-header">{{$view_var->view_icon().' '.$view_header}}</h1>
            @yield('content_left')
        </div>
    </div>
    @yield('content_right')
    @yield('content_right_extra')
</div>
@stop

 

All of them load Layout.default.blade. This is the interface to the bootstrap specific views

Bootstrap Views

Bootstrap Views are the direct connection to the bootstrap code and link directly to public directory, like

bootstrap/header.blade.php
<!-- JQuery UI & Bootstrap -->
<link href="{{asset('components/assets-admin/plugins/jquery-ui/themes/base/minified/jquery-ui.min.css')}}" rel="stylesheet" />
<link href="{{asset('components/assets-admin/plugins/bootstrap/css/bootstrap.min.css')}}" rel="stylesheet" />
..