Skip to content

KokaUA/phpixie-bootstrap3-bundle

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

phpixie-bootstrap3-bundle

bootstrap3 bundle for phpixie3

  1. Bootstrap v3.3.5
  2. jQuery v2.1.4
  3. 16 themes from bootswatch

Установка

  1. Подключаем бандл в проект
composer require koka/phpixie-bootstrap3-bundle:dev-master
  1. Создать ссылку на web директорию бандла
cd web/bundles
ln -s ../../vendor/koka/phpixie-bootstrap3-bundle/web bootstrap3Bundle
  1. Подключить бандл в нашем проекте
// src/Project/Framework/Bundles.php
    protected function buildBundles()
    {
        return array(
            new \Project\App($this->builder),
            new \Koka\Bootstrap3Bundle\App($this->builder)
        );
    }

Использование

Подключаем в нашем шаблоне нужную тему, для подлюченния оригинального bootstrap3 используем default

<?php  include $this->resolve('bootstrap3Bundle:default');?>

И выводим в нужном месте блоки bootstrap-css и bootstrap-js и jquery-js. Пример стандартного шаблона.

<?php  include $this->resolve('bootstrap3Bundle:default');?>
<!DOCTYPE html>
<html>
	<head>
		<title>PHPixie 3.0</title>
		<?php $this->block('bootstrap-css');?>
		<?php $this->block('jquery-js');?>
	</head>
	<body>
        <h1>PHPixie 3.0</h1>
		<?php $this->childContent();?>
		<?php $this->block('bootstrap-js');?>
	</body>
</html>

About

bootstrap3 bundle for PHPixie

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors