Skip to content
This repository has been archived by the owner on Jul 27, 2023. It is now read-only.

Commit

Permalink
Update README
Browse files Browse the repository at this point in the history
  • Loading branch information
Antonio Ramirez committed Apr 21, 2013
1 parent 5290d5b commit e20c77a
Showing 1 changed file with 8 additions and 13 deletions.
21 changes: 8 additions & 13 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,20 +5,15 @@ Library that will help boost your application installation with ease and also to
bootstrap files on a much cleaner way that the framework currently proposes. For example:

```
// yii has been installed via composer
require('./../app/lib/vendor/yiisoft/yii/framework/yii.php');
// set alias for namespacing
// make sure the path is correct as it can also be installed via composer (see above)
Yii::setPathOfAlias('Yiinitializr', './../app/lib/Yiinitializr');
// if installed via composer
require('./../../common/lib/vendor/autoload.php');
// use its initializr
use Yiinitializr\Helpers\Initializer;
// tell the Initializer class providing the root, the application config name,
// and the files to merge -very useful when working with advanced boilerplates
// and different environments
Initializer::create('./../app', 'main', array('common', 'env', 'local'))->run();
Yiinitializr\Helpers\Initializer::create('./../', 'frontend', array(
__DIR__ .'/../../common/config/main.php',
__DIR__ .'/../../common/config/env.php',
__DIR__ .'/../../common/config/local.php'
))->run();
```

##How to use it
Expand Down Expand Up @@ -138,4 +133,4 @@ root in order to run and ** PHP 5.3+**

> [![2amigOS!](http://www.gravatar.com/avatar/55363394d72945ff7ed312556ec041e0.png)](http://www.2amigos.us)
<i>web development has never been so fun</i>
[www.2amigos.us](http://www.2amigos.us)
[www.2amigos.us](http://www.2amigos.us)

0 comments on commit e20c77a

Please sign in to comment.