NAT3863
NAT3863

Reputation: 511

Creating a Yii application setup / installation page

I am creating an application and will be deployed to production soon.

For the ease of convenience, I would like to create a custom setup and installation page which will allow users to input variable values to be used in config/main.php as well as to execute the RBAC setup and create necessary tables.

For most web application, there is an 'install' folder which users point their browsers to and begin the app installation. How do I implement something similar in Yii?

Upvotes: 0

Views: 312

Answers (2)

DaSourcerer
DaSourcerer

Reputation: 6606

I think a great start were the app manager extension which provides much of what you need. It doesn't do anything with the RBAC setup, though. Perhaps you want the auth extension as well?

Upvotes: 1

Yii does not have an installation folder, you just download and extract it and put in your server like Wamp/Xampp or etc. and then you can install a new Yii application through command prompt.

C:\wamp\bin\php\php5.4.16> "c:\wamp\www\yii\framework\yiic.bat" webapp "c:\wamp\
www\newyii"

When you run above command, then you will see the following command.

Create a web application under 'c:\wamp\www\newyii'? [no]:

You write Y. and then create your new application.

For more understanding. you should follow the below link.

http://www.yiiframework.com/doc/guide/1.1/en/quickstart.installation

Thanks.

Upvotes: 0

Related Questions