Set up a Yii2 Project in 5 minutes Local+Staging Environments.
When you're done, access the root link
/admin to see the magic.
- Once you logged in, click on the Create New Project Button.
- Type the name for your new project to identify it.
- Enable the Yii2Advanced AddOn
For a brand new project
- Go to the final steps
Using your Github Code.
- Connect your Guthub Account and Select your Yii2Advanced Repository.
- Add the following lines to your
backend/config/main.phpor see if you have them already...
<?php return [ 'homeUrl' => '/admin', 'components' => [ 'request' => [ 'baseUrl' => '/admin', ], 'urlManager' => [ 'enablePrettyUrl' => true, 'showScriptName' => false, ], ], ];
<?php return [ 'homeUrl' => '/', 'components' => [ 'request' => [ 'baseUrl' => '', ], 'urlManager' => [ 'enablePrettyUrl' => true, 'showScriptName' => false, ], ], ];
- Go to final steps.
- Click on "Create Project" at the bottom
On the Project page, click Deploy to see the project live on your new Staging Environment. It'll take around 3 mins to finish the setup and you'll get the IP for your Env.
Download your local environment. You can use our CLI as well.
From the CLI
That's it! Go ahead throwing tons of lines of code!
You should see this on your Staging server and on
Check our guide on "Local+Stage Sync on 3 steps" to sync Local and Staging Envs!.
If you are using a custom Yii2Advanced repository, make sure to follow the Recommended Structure for a Yii2Advanced Project in order to have a clean Deploy and Local Environment.