Coder Social home page Coder Social logo

cakephp3-bootstrap-theme's Introduction

cakephp3-bootstrap-theme

Bootstrap bake templates for CakePHP 3

General Features

  • Bootstrap templates that use the enhanced FormHelper and some other tools from the alaxos/cakephp3-libs plugin

Installation

Adding the plugin

You can easily install this plugin using composer as follows:

composer require alaxos/cakephp3-bootstrap-theme

Enabling the plugin

After adding the plugin remember to load it in your config/bootstrap.php file. The Alaxos plugin must be loaded as well.

Plugin::load('Alaxos', ['bootstrap' => true]);
Plugin::load('Alaxos/BootstrapTheme');

Using the plugin with bake

$ ./bin/cake bake model Users --theme Alaxos/BootstrapTheme

Load Bootstrap CSS and JS

You may use the following functions to load Bootstrap CSS and JS in your template:

<?php 
echo $this->AlaxosHtml->includeBootstrapCSS(['block' => false]);
echo $this->AlaxosHtml->includeBootstrapThemeCSS(['block' => false]);
echo $this->AlaxosHtml->includeAlaxosCSS(['block' => false]);
	
echo $this->AlaxosHtml->includeAlaxosJQuery(['block' => false]);
echo $this->AlaxosHtml->includeAlaxosBootstrapJS(['block' => false]);
?>

cakephp3-bootstrap-theme's People

Contributors

alaxos avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.