2017 © Pedro Peláez
 

yii2-extension yii2-startbootstrap-themes

Themes from Start Bootstrap, http://startbootstrap.com/, as UIs for Yii 2 Framework.

image

p2made/yii2-startbootstrap-themes

Themes from Start Bootstrap, http://startbootstrap.com/, as UIs for Yii 2 Framework.

  • Monday, April 16, 2018
  • by p2m
  • Repository
  • 1 Watchers
  • 3 Stars
  • 226 Installations
  • PHP
  • 2 Dependents
  • 0 Suggesters
  • 3 Forks
  • 3 Open issues
  • 26 Versions
  • 19 % Grown

The README.md

P2 Start Bootstrap Themes 5.0.0

License Total Downloads Monthly Downloads Latest Stable Version Latest Unstable Version, (*1)


Themes from Start Bootstrap as a UIs for Yii 2 Framework., (*2)

These themes contain AssetBundles, Views, and Widgets to render the Start Bootstrap themes as Yii 2 themes., (*3)

P2 Start Bootstrap Themes declares p2made/yii2-p2y2-things and p2made/yii2-p2y2-things-demo as dependancies., (*4)

¡¡ IMPORTANT !!

Version 2.0.0 of all my Yii2 add-ons marks a breaking change where I've shortened my namespaces. p2made\rest\of\namespace is now p2m\rest\of\namespace., (*5)

Installation

The preferred way to install P2 Start Bootstrap Themes is through composer. Depending on your composer installation, run one of the following commands:, (*6)

composer require --prefer-dist p2made/p2y2-startbootstrap-themes "^5.0"

or, (*7)

php composer.phar require --prefer-dist p2made/p2y2-startbootstrap-themes "^5.0"

Alternatively add:, (*8)

        "p2made/p2y2-startbootstrap-themes": "^5.0"

to the requires section of your composer.json file & P2 Start Bootstrap Themes will be installed next time you run composer update., (*9)

The files are installed via Yii's recommended usage of the fxp/composer-asset-plugin., (*10)

Quick Start

Once the extension is installed, you can have a preview by reconfiguring the path mappings of the view component with one of @app/views lines:, (*11)

    'components' => [
        'view' => [
            'theme' => [
                'pathMap' => [
                    '@app/views' => '@vendor/p2made/p2y2-startbootstrap-themes/views/agency',
                    '@app/views' => '@vendor/p2made/p2y2-startbootstrap-themes/views/business-casual',
                    '@app/views' => '@vendor/p2made/p2y2-startbootstrap-themes/views/business-frontpage',
                    '@app/views' => '@vendor/p2made/p2y2-startbootstrap-themes/views/creative',
                    '@app/views' => '@vendor/p2made/p2y2-startbootstrap-themes/views/freelancer',
                    '@app/views' => '@vendor/p2made/p2y2-startbootstrap-themes/views/grayscale',
                    '@app/views' => '@vendor/p2made/p2y2-startbootstrap-themes/views/heroic-features',
                    '@app/views' => '@vendor/p2made/p2y2-startbootstrap-themes/views/landing-page',
                    '@app/views' => '@vendor/p2made/p2y2-startbootstrap-themes/views/modern-business',
                    '@app/views' => '@vendor/p2made/p2y2-startbootstrap-themes/views/new-age',
                    '@app/views' => '@vendor/p2made/p2y2-startbootstrap-themes/views/one-page-wonder',
                    '@app/views' => '@vendor/p2made/p2y2-startbootstrap-themes/views/stylish-portfolio',
                ],
            ],
        ],
    ],

This asset bundle provides sample files for layout and view (see folder views/), they are not meant to be customized directly in the vendor/ folder. If you do that, your changes will be lost next time you run composer update., (*12)

Therefore it is recommended to copy the views into your application and adjust them to your needs., (*13)

To view pages in site/pages/ you need to modify actions() in the SiteController:, (*14)

    public function actions()
    {
        return [
            ...
            'page' => [
                'class' => 'yii\web\ViewAction',
            ],
        ];
    }

P2 Start Bootstrap Themes uses P2Y2Things which requires some Yii 2 assets to be nullified to avoid conflicts through double loading. Modify common/config/main.php with..., (*15)

    'components' => [
        'assetManager' => [
            'bundles' => [
                'yii\web\JqueryAsset' => [
                    'sourcePath' => null, 'js' => [],
                ],
                'yii\bootstrap\BootstrapAsset' => [
                    'sourcePath' => null, 'css' => [],
                ],
                'yii\bootstrap\BootstrapPluginAsset' => [
                    'sourcePath' => null, 'js' => [],
                ],
                'yii\jui\JuiAsset' => [
                    'sourcePath' => null, 'css' => [], 'js' => [],
                ],
                '\rmrevin\yii\fontawesome\AssetBundle' => [
                    'sourcePath' => null, 'css' => [],
                ],
            ],
        ],
        ...
    ],

Customization

  • Copy files from vendor/p2made/p2y2-startbootstrap-themes/views-preview/_your_choice_of_theme_ to @app/views.
  • Remove the custom view configuration from your application by deleting the path mappings, if you have made them before.
  • Edit your views adhering to the example views.

The Versions

16/04 2018

dev-2.16.3-beta

dev-2.16.3-beta

Themes from Start Bootstrap, http://startbootstrap.com/, as UIs for Yii 2 Framework.

  Sources   Download

MIT

The Requires

 

php yii2 ui bundle yii asset theme start-bootstrap user-interface

15/04 2018

dev-master

9999999-dev

Themes from Start Bootstrap, http://startbootstrap.com/, as UIs for Yii 2 Framework.

  Sources   Download

MIT

The Requires

 

php yii2 ui bundle yii asset theme start-bootstrap user-interface

15/04 2018

2.16.3-beta

2.16.3.0-beta

Themes from Start Bootstrap, http://startbootstrap.com/, as UIs for Yii 2 Framework.

  Sources   Download

MIT

The Requires

 

php yii2 ui bundle yii asset theme start-bootstrap user-interface

13/04 2018

2.17.0

2.17.0.0

Themes from Start Bootstrap, http://startbootstrap.com/, as UIs for Yii 2 Framework.

  Sources   Download

MIT

The Requires

 

php yii2 ui bundle yii asset theme start-bootstrap user-interface

20/06 2017

2.16.2

2.16.2.0

Themes from Start Bootstrap, http://startbootstrap.com/, as UIs for Yii 2 Framework.

  Sources   Download

MIT

The Requires

 

php yii2 ui bundle yii asset theme start-bootstrap user-interface

10/06 2017

2.16.1

2.16.1.0

Themes from Start Bootstrap, http://startbootstrap.com/, as UIs for Yii 2 Framework.

  Sources   Download

MIT

The Requires

 

php yii2 ui bundle yii asset theme start-bootstrap user-interface

03/06 2017

2.16.0

2.16.0.0

Themes from Start Bootstrap, http://startbootstrap.com/, as UIs for Yii 2 Framework.

  Sources   Download

MIT

The Requires

 

php yii2 ui bundle yii asset theme start-bootstrap user-interface

02/06 2017

2.15.1

2.15.1.0

Themes from Start Bootstrap, http://startbootstrap.com/, as UIs for Yii 2 Framework.

  Sources   Download

MIT

The Requires

 

php yii2 ui bundle yii asset theme start-bootstrap user-interface

15/04 2017

2.15.0

2.15.0.0

Themes from Start Bootstrap, http://startbootstrap.com/, as UIs for Yii 2 Framework.

  Sources   Download

MIT

The Requires

 

php yii2 ui bundle yii asset theme start-bootstrap user-interface

04/04 2017

2.14.2

2.14.2.0

Themes from Start Bootstrap, http://startbootstrap.com/, as UIs for Yii 2 Framework.

  Sources   Download

MIT

The Requires

 

php yii2 ui bundle yii asset theme start-bootstrap user-interface

04/04 2017

2.14.1

2.14.1.0

Themes from Start Bootstrap, http://startbootstrap.com/, as UIs for Yii 2 Framework.

  Sources   Download

MIT

The Requires

 

php yii2 ui bundle yii asset theme start-bootstrap user-interface

03/04 2017

2.14.0

2.14.0.0

Themes from Start Bootstrap, http://startbootstrap.com/, as UIs for Yii 2 Framework.

  Sources   Download

MIT

The Requires

 

php yii2 ui bundle yii asset theme start-bootstrap user-interface

22/03 2017

2.13.0

2.13.0.0

Themes from Start Bootstrap, http://startbootstrap.com/, as UIs for Yii 2 Framework.

  Sources   Download

MIT

The Requires

 

php yii2 ui bundle yii asset theme start-bootstrap user-interface

26/02 2017

2.12.0

2.12.0.0

Themes from Start Bootstrap, http://startbootstrap.com/, as UIs for Yii 2 Framework.

  Sources   Download

MIT

The Requires

 

php yii2 ui bundle yii asset theme start-bootstrap user-interface

20/02 2017

0.12.0

0.12.0.0

Themes from Start Bootstrap, http://startbootstrap.com/, as UIs for Yii 2 Framework.

  Sources   Download

MIT

The Requires

 

php yii2 ui bundle yii asset theme start-bootstrap user-interface

19/02 2017

0.11.5

0.11.5.0

Themes from Start Bootstrap, http://startbootstrap.com/, as UIs for Yii 2 Framework.

  Sources   Download

MIT

The Requires

 

php yii2 ui bundle yii asset theme start-bootstrap user-interface

18/02 2017

0.10.0

0.10.0.0

Themes from Start Bootstrap, http://startbootstrap.com/, as UIs for Yii 2 Framework.

  Sources   Download

MIT

The Requires

 

php yii2 ui bundle yii asset theme start-bootstrap user-interface

18/02 2017

0.9.0

0.9.0.0

Themes from Start Bootstrap, http://startbootstrap.com/, as UIs for Yii 2 Framework.

  Sources   Download

MIT

The Requires

 

php yii2 ui bundle yii asset theme start-bootstrap user-interface

17/02 2017

0.8.0

0.8.0.0

Themes from Start Bootstrap, http://startbootstrap.com/, as UIs for Yii 2 Framework.

  Sources   Download

MIT

The Requires

 

php yii2 ui bundle yii asset theme start-bootstrap user-interface

17/02 2017

0.7.0

0.7.0.0

Themes from Start Bootstrap, http://startbootstrap.com/, as UIs for Yii 2 Framework.

  Sources   Download

MIT

The Requires

 

php yii2 ui bundle yii asset theme start-bootstrap user-interface

17/02 2017

0.6.0

0.6.0.0

Themes from Start Bootstrap, http://startbootstrap.com/, as UIs for Yii 2 Framework.

  Sources   Download

MIT

The Requires

 

php yii2 ui bundle yii asset theme start-bootstrap user-interface

15/02 2017

0.5.0

0.5.0.0

Themes from Start Bootstrap, http://startbootstrap.com/, as UIs for Yii 2 Framework.

  Sources   Download

MIT

The Requires

 

php yii2 ui bundle yii asset theme start-bootstrap user-interface

14/02 2017

0.4.0

0.4.0.0

Themes from Start Bootstrap, http://startbootstrap.com/, as UIs for Yii 2 Framework.

  Sources   Download

MIT

The Requires

 

php yii2 ui bundle yii asset theme start-bootstrap user-interface

14/02 2017

0.3.0

0.3.0.0

Themes from Start Bootstrap, http://startbootstrap.com/, as UIs for Yii 2 Framework.

  Sources   Download

MIT

The Requires

 

php yii2 ui bundle yii asset theme start-bootstrap user-interface

14/02 2017

0.2.0

0.2.0.0

Themes from Start Bootstrap, http://startbootstrap.com/, as UIs for Yii 2 Framework.

  Sources   Download

MIT

The Requires

 

php yii2 ui bundle yii asset theme start-bootstrap user-interface

10/02 2017

0.1.4

0.1.4.0

Themes from Start Bootstrap, http://startbootstrap.com/, as UIs for Yii 2 Framework.

  Sources   Download

MIT

The Requires

 

php yii2 ui bundle yii asset theme start-bootstrap user-interface