I am new in composer, using windows and xampp. I have created a composer.phar file in the protected directory with the following lines:
{
"require": {
"2amigos/yiistrap": "dev-master"
}
}
Then run composer install in the command prompt and I found that Yiistrap downloaded in the vendor folder. In this circumstance, I don’t understand how to configure and enable Yiistrap in my application.
Thanks in advance
sc0rp
(Fabian Rolof)
December 1, 2014, 9:55pm
2
In configuration you need to add following lines:
<?php
// main configuration
return array(
...
// path aliases
'aliases' => array(
...
'bootstrap' => realpath(__DIR__ . '/../extensions/bootstrap'), // change this if necessary
),
// import paths
'import' => array(
...
'bootstrap.helpers.TbHtml',
),
// application modules
'modules' => array(
...
'gii' => array(
'generatorPaths' => array('bootstrap.gii'),
),
),
// application components
'components' => array(
...
'bootstrap' => array(
'class' => 'bootstrap.components.TbApi',
),
),
);
and in layout
<?php Yii::app()->bootstrap->register(); ?>
Is this process used for manual configuration? I do not understand how to configure after installing by composer.