2017 © Pedro Peláez
 

project yii2-register

WOZEDU REGISTER Based powered by - Yii 2 Advanced Application Template

image

marciocamello/yii2-register

WOZEDU REGISTER Based powered by - Yii 2 Advanced Application Template

  • Tuesday, January 6, 2015
  • by MarcioCamello
  • Repository
  • 2 Watchers
  • 0 Stars
  • 10 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

Wozedu - yii2-register

Project for learning based in Yii 2, (*1)

Install Application

Installing via Composer

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)

Init Environment

php init

Configure Database Connection

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,
        ],
    ],

Migrate User Table

php yii migrate

Production Backend URL

http://localhost/backend/web

Files Source Created and Modified for this project

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

User Table Changes

Add two new columns to User table from migration file, (*8)

'partner_id' => Schema::TYPE_INTEGER . ' NOT NULL',
'type' => Schema::TYPE_STRING . ' NOT NULL',

The Versions

06/01 2015

dev-master

9999999-dev http://www.marciocamello.com.br/

WOZEDU REGISTER Based powered by - Yii 2 Advanced Application Template

  Sources   Download

BSD-3-Clause

The Requires

 

The Development Requires

by Marcio Camello

framework application template yii2 advanced wozedu