dev-master
9999999-dev http://www.marciocamello.com.br/WOZEDU REGISTER Based powered by - Yii 2 Advanced Application Template
BSD-3-Clause
The Requires
The Development Requires
by Marcio Camello
framework application template yii2 advanced wozedu
Wallogit.com
2017 © Pedro Peláez
WOZEDU REGISTER Based powered by - Yii 2 Advanced Application Template
Project for learning based in Yii 2, (*1)
If you do not already have Composer installed, you may do so by following the instructions at getcomposer.org. On Linux and Mac OS X, you'll run the following commands:, (*2)
curl -s http://getcomposer.org/installer | php mv composer.phar /usr/local/bin/composer
On Windows, you'll download and run Composer-Setup.exe., (*3)
Please refer to the Composer Documentation if you encounter any problems or want to learn more about Composer usage., (*4)
If you had Composer already installed before, make sure you use an up to date version. You can update Composer
by running composer self-update., (*5)
With Composer installed, you can install Yii by running the following commands under a Web-accessible folder:, (*6)
composer global require "fxp/composer-asset-plugin:1.0.0-beta4" composer create-project --prefer-dist --stability=dev marciocamello/yii2-register your-application
The first command installs the composer asset plugin
which allows managing bower and npm package dependencies through Composer. You only need to run this command
once for all. The second command installs Yii in a directory named basic. You can choose a different directory name if you want., (*7)
php init
Create a new database and adjust the components.db configuration in common/config/main-local.php accordingly.
'components' => [
'db' => [
'class' => 'yii\db\Connection',
'dsn' => 'mysql:host=localhost;dbname=wozedu_yii2_register',
'username' => 'root',
'password' => '',
'charset' => 'utf8',
],
'mailer' => [
'class' => 'yii\swiftmailer\Mailer',
'viewPath' => '@common/mail',
// send all mails to a file by default. You have to set
// 'useFileTransport' to false and configure a transport
// for the mailer to send real emails.
'useFileTransport' => true,
],
],
php yii migrate
http://localhost/backend/web
backend\config\main-local.php backend\controllers\UsersController.php backend\models\Users.php backend\models\UsersRegisterSearch.php backend\views\users\_form.php backend\views\users\_form_password.php backend\views\users\_search.php backend\views\users\create.php backend\views\users\index.php backend\views\users\update.php backend\views\users\update_password.php backend\views\users\view.php backend\web\.htaccess composer.json README.md
Add two new columns to User table from migration file, (*8)
'partner_id' => Schema::TYPE_INTEGER . ' NOT NULL', 'type' => Schema::TYPE_STRING . ' NOT NULL',
WOZEDU REGISTER Based powered by - Yii 2 Advanced Application Template
BSD-3-Clause
framework application template yii2 advanced wozedu