Instalacion Yii 2 - Libre

download Instalacion Yii 2 - Libre

of 7

Transcript of Instalacion Yii 2 - Libre

  • 7/23/2019 Instalacion Yii 2 - Libre

    1/7

  • 7/23/2019 Instalacion Yii 2 - Libre

    2/7

    YII 2.0

    The latest version of Yii 2 is 2.0.4, released on May 10, 2015. Yii 2.0 is a complete rewrite of Yii on topof PHP 5.4.0. It is aimed to become a state-of-the-art of the new eneration of PHP framewor!. Yii 2.0

    is not compatible with ".".

    complete chane lo

    #prade instr#ctions

    There are two wa$s to install Yii 2% #sin &omposer, or downloadin an application template. 'e hihl$

    recommend $o# to #se the former.

    1. INSTALL VIA COMPOSER

    This is the preferred wa$ of installin Yii 2.0. If $o# do not have &omposer $et, $o# ma$ install it b$

    followin the instr#ctions here.

    (fter installin &omposer, r#n the followin command to install the&omposer (sset Pl#in%

    php composer.phar lobal re)#ire *f+pcomposer-asset-pl#in%".0.*

    /ow choose one of the application templates to start installin Yii 2.0. (n application template is a

    pac!ae that contains a s!eleton 'eb application written in Yii.

    To install the basic application template, r#n the command below%

    php composer.phar create-proect $iisoft$ii2-app-basic basic 2.0.4

    To install the advanced application template, r#n the command below%

    php composer.phar create-proect $iisoft$ii2-app-advanced advanced 2.0.4

    /ote that $o# ma$ be prompted to enter $o#r 1itH#b #sername and password d#rin the installation

    process. This is normal. #st enter them and contin#e.

    2. INSTALL FROM AN ARCHIVE FILE

    3ownload one of the followin archive files, and then e+tract it to a 'eb-accessible folder%

    Yii 2 with basic application template

    Yii 2 with advanced application template

    Grupo Empresarial EISEI, S.A. de C.V.

    1 / 7

    https://github.com/yiisoft/yii2/blob/2.0.4/framework/CHANGELOG.mdhttps://github.com/yiisoft/yii2/blob/2.0.4/framework/UPGRADE.mdhttp://getcomposer.org/doc/00-intro.md#installation-nixhttps://github.com/francoispluchino/composer-asset-pluginhttps://github.com/francoispluchino/composer-asset-pluginhttps://github.com/yiisoft/yii2/releases/download/2.0.4/yii-basic-app-2.0.4.tgzhttps://github.com/yiisoft/yii2/releases/download/2.0.4/yii-advanced-app-2.0.4.tgzhttps://github.com/yiisoft/yii2/blob/2.0.4/framework/UPGRADE.mdhttp://getcomposer.org/doc/00-intro.md#installation-nixhttps://github.com/francoispluchino/composer-asset-pluginhttps://github.com/yiisoft/yii2/releases/download/2.0.4/yii-basic-app-2.0.4.tgzhttps://github.com/yiisoft/yii2/releases/download/2.0.4/yii-advanced-app-2.0.4.tgzhttps://github.com/yiisoft/yii2/blob/2.0.4/framework/CHANGELOG.md
  • 7/23/2019 Instalacion Yii 2 - Libre

    3/7

    3. UPGRADE FROM OLDER VERSIONS

    If $o# are #pradin from Yii 2.0.0 with composer, simpl$ r#n the followin command in $o#r proects

    root director$%

    php composer.phar re)#ire $iisoft$ii2 2.0.4

    If $o# installed Yii #sin an archive file, $o# sho#ld download the new release file, e+tract it and replace

    the older version with the new one.

    pradin from Yii "." is not trivial. Please refer to the #ide abo#t#pradin from Yii ".".

    4. OBTAIN THE LATEST CODE

    Yii 2.0 is hosted on 1itH#b. Yo# are welcome to contrib#te to the Yii 2.0 development b$

    s#bmittin iss#e reportsor mere re)#ests.

    REFERENCIAS

    http%www.$iiframewor!.comdownload

    Grupo Empresarial EISEI, S.A. de C.V.

    2 / 7

    http://www.yiiframework.com/doc-2.0/guide-intro-upgrade-from-v1.htmlhttp://www.yiiframework.com/doc-2.0/guide-intro-upgrade-from-v1.htmlhttps://github.com/yiisoft/yii2https://github.com/yiisoft/yii2/issues?state=openhttps://github.com/yiisoft/yii2/pullshttp://www.yiiframework.com/download/http://www.yiiframework.com/doc-2.0/guide-intro-upgrade-from-v1.htmlhttps://github.com/yiisoft/yii2https://github.com/yiisoft/yii2/issues?state=openhttps://github.com/yiisoft/yii2/pullshttp://www.yiiframework.com/download/
  • 7/23/2019 Instalacion Yii 2 - Libre

    4/7

    ENABLE GII MODULE IN YII2

    T#torial abo#t how to enable ii mod#le of Yii2.

    1. INSTALL GII

    6dit composer.son file of $o#r proect, and add followin dependenc$%

    *re)#ire*% 7

    *$iisoft$ii2-ii*% *8*

    9,

    Grupo Empresarial EISEI, S.A. de C.V.

    3 / 7

  • 7/23/2019 Instalacion Yii 2 - Libre

    5/7

    Then #pdate $o#r composer dependencies.

    : composer #pdate

    (lternativel$, $o# can let composer do these a#tomaticall$.

    Grupo Empresarial EISEI, S.A. de C.V.

    4 / 7

  • 7/23/2019 Instalacion Yii 2 - Libre

    6/7

    : composer re)#ire *$iisoft$ii2-ii%8*

    2 CONFIGURATION

    2.1 BASIC TEMPLATE

    ;or Yii2 basic proect template, the confi#ration is in confiweb.php file of $o#r proect.

    !=36>? 7

    // ...

    :confi@mod#lesA@iiA B @

    class BC $iiDiiDEod#le,

    allowedIPs BC @8A,

    // or allow localhost only

    // 'allowedIPs' => ['127.0.0.1', '::1'],

    A

    // ..

    9

    2.2 ADVANCED TEMPLATE

    ;or e+ample, to enable ii in bac!end of $o#r advanced proect template, $o# sho#ld

    editbac!endconfimain-local.php%

    !=T6GT? 7

    // ...

    :confi@mod#lesA@iiA B @

    class BC $iiDiiDEod#le, allowedIPs BC @8A,

    // or allow localhost only

    // 'allowedIPs' => ['127.0.0.1', '::1'],

    A

    // ..

    Grupo Empresarial EISEI, S.A. de C.V.

    5 / 7

  • 7/23/2019 Instalacion Yii 2 - Libre

    7/7

    9

    3 ACCESS

    (fter enablin ii mod#le $o# can access it b$ #rl% http%$o#r=app=pathinde+.phprBii.

    REFERENCIAS

    http%codevoila.compost2"enable-ii-mod#le-in-$ii2

    Grupo Empresarial EISEI, S.A. de C.V.

    6 / 7