2017 © Pedro Peláez
 

library phalcon-bootstrap

Bootstrap Component for Phalcon

image

getsky/phalcon-bootstrap

Bootstrap Component for Phalcon

  • Thursday, February 12, 2015
  • by JimmDiGrizli
  • Repository
  • 4 Watchers
  • 19 Stars
  • 265 Installations
  • PHP
  • 2 Dependents
  • 0 Suggesters
  • 5 Forks
  • 1 Open issues
  • 9 Versions
  • 0 % Grown

The README.md

Bootstrap component for Phalcon Build Status Dependency Status

This component is used as a basis for Pherlin. I recommend to use it instead of this bootstrap., (*1)

Run application

To launch the application, you need to execute code:, (*2)

$app = new Bootstrap(new FactoryDefault());
echo $app->run();

Pass true into a method app(), if you do not want to run the handler:, (*3)

$app = new Bootstrap(new FactoryDefault());
echo $app->run(true);

Configuration file

By default, the configuration file is here ../app/config/config_%environment%.ini. %environment% - environment under which the application is running., (*4)

To change the configuration file, you must use the method setPathConfig():, (*5)

$app = new Bootstrap(new FactoryDefault());
$app->setPathConfig('config/config.%environment%.yml');
echo $app->run();

Environment

By default, the environment is set to `` `dev ```. To change it, pass the second parameter name of the desired environment., (*6)

$app = new Bootstrap(new FactoryDefault(), 'prod');

Сaching

Bootstrap allows you to cache the application configuration. When creating object of class Bootstrap, there is check the presence of apc or apcu. If APC(u) is found, the configuration will be cached. To disable caching, you should report it:, (*7)

$app = new Bootstrap(new FactoryDefault(), 'prod');
$app->setCacheable(false);

// check
echo $app->isCacheable();
// print: false

Loader

If you need the autoloader (Phalcon\Loader), you can request it from the bootstrap:, (*8)

$app = new Bootstrap(new FactoryDefault(), 'prod');

/**
* @var $loader Phalcon\Loader
*/
$loader = $app->getLoader();

The Versions

12/02 2015

dev-develop

dev-develop

Bootstrap Component for Phalcon

  Sources   Download

MIT

The Requires

 

The Development Requires

by Avatar JimmDiGrizli

framework bootstrap phalcon

21/11 2014

dev-master

9999999-dev

Bootstrap Component for Phalcon

  Sources   Download

MIT

The Requires

 

The Development Requires

by Avatar JimmDiGrizli

framework bootstrap phalcon

21/11 2014

v1.4.2

1.4.2.0

Bootstrap Component for Phalcon

  Sources   Download

MIT

The Requires

 

The Development Requires

by Avatar JimmDiGrizli

framework bootstrap phalcon

08/10 2014

v1.4.1

1.4.1.0

Bootstrap Component for Phalcon

  Sources   Download

MIT

The Requires

 

The Development Requires

by Avatar JimmDiGrizli

framework bootstrap phalcon

07/10 2014

v1.4.0

1.4.0.0

Bootstrap Component for Phalcon

  Sources   Download

MIT

The Requires

 

The Development Requires

by Avatar JimmDiGrizli

framework bootstrap phalcon

13/05 2014

v1.3.1

1.3.1.0

Bootstrap Component for Phalcon

  Sources   Download

MIT

The Requires

 

The Development Requires

by Avatar JimmDiGrizli

framework bootstrap phalcon

08/05 2014

v1.2.0

1.2.0.0

Bootstrap Component for Phalcon

  Sources   Download

MIT

The Requires

 

The Development Requires

by Avatar JimmDiGrizli

framework bootstrap phalcon

22/02 2014

1.1.0

1.1.0.0

Bootstrap Component for Phalcon

  Sources   Download

MIT

The Requires

 

The Development Requires

by Avatar JimmDiGrizli

framework bootstrap phalcon

17/01 2014

1.0.0

1.0.0.0

Bootstrap Component for Phalcon

  Sources   Download

MIT

The Requires

 

The Development Requires

by Avatar JimmDiGrizli

framework bootstrap phalcon