1. Install Wamp Server.
2. Download the latest Yii framework.
3. Unzipped Yii framework.
4. Copy the contents to C:\Wamp\www
5. Update Environment Variables by right-click My Computer > Properties > Advanced system settings > Advanced > [Environment Variables...]
- At the “System Variables”, select Path > [Edit].
- Add in new values by separating each path by using semicolon ';'. (DO NOT DELETE the existing path). - Then click [OK].
Examples:
%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;%SYSTEMROOT%\System32\WindowsPowerShell\v1.0\;C:\Program Files\WIDCOMM\Bluetooth Software\;C:\Program Files\WIDCOMM\Bluetooth Software\syswow64;C:\Program Files\TortoiseSVN\bin;C:\WAMP\bin\php\php5.3.10;C:\wamp\www\framework
6. Restart your PC to register the added variables.
7. Go to Command Prompt, by typing 'cmd' at Search field (Start > Search)
8. At command prompt, create Yii skeleton for your new website, called “MyWebsite” at webroot.
Below is the examples of the Command Prompts
____________________________________
Microsoft Windows [Version 6.1.7600]
Copyright (c) 2009 Microsoft Corporation. All rights reserved.
C:\Users\yumar>cd..
C:\Users>cd..
C:\>cd wamp
C:\wamp>cd www
C:\wamp\www>cd framework
Microsoft Windows [Version 6.1.7600]
Copyright (c) 2009 Microsoft Corporation. All rights reserved.
C:\Users\yumar>CD..
C:\Users>CD..
C:\>CD WAMP
C:\wamp>CD WWW
C:\wamp\www>YIIC WEBAPP MYWebsiteTest
Create a Web application under 'C:\wamp\www\MYWebsiteTest'? [yes|no] yes
mkdir C:/wamp/www/MYWebsiteTest
mkdir C:/wamp/www/MYWebsiteTest/assets
mkdir C:/wamp/www/MYWebsiteTest/css
generate css/bg.gif
generate css/form.css
generate css/ie.css
generate css/main.css
generate css/print.css
generate css/screen.css
mkdir C:/wamp/www/MYWebsiteTest/images
generate index-test.php
generate index.php
mkdir C:/wamp/www/MYWebsiteTest/protected
generate protected/.htaccess
mkdir C:/wamp/www/MYWebsiteTest/protected/commands
mkdir C:/wamp/www/MYWebsiteTest/protected/commands/shell
mkdir C:/wamp/www/MYWebsiteTest/protected/components
generate protected/components/Controller.php
generate protected/components/UserIdentity.php
mkdir C:/wamp/www/MYWebsiteTest/protected/config
generate protected/config/console.php
generate protected/config/main.php
generate protected/config/test.php
mkdir C:/wamp/www/MYWebsiteTest/protected/controllers
generate protected/controllers/SiteController.php
mkdir C:/wamp/www/MYWebsiteTest/protected/data
generate protected/data/schema.mysql.sql
generate protected/data/schema.sqlite.sql
generate protected/data/testdrive.db
mkdir C:/wamp/www/MYWebsiteTest/protected/extensions
mkdir C:/wamp/www/MYWebsiteTest/protected/messages
mkdir C:/wamp/www/MYWebsiteTest/protected/migrations
mkdir C:/wamp/www/MYWebsiteTest/protected/models
generate protected/models/ContactForm.php
generate protected/models/LoginForm.php
mkdir C:/wamp/www/MYWebsiteTest/protected/runtime
mkdir C:/wamp/www/MYWebsiteTest/protected/tests
generate protected/tests/bootstrap.php
mkdir C:/wamp/www/MYWebsiteTest/protected/tests/fixtures
mkdir C:/wamp/www/MYWebsiteTest/protected/tests/functional
generate protected/tests/functional/SiteTest.php
generate protected/tests/phpunit.xml
mkdir C:/wamp/www/MYWebsiteTest/protected/tests/report
mkdir C:/wamp/www/MYWebsiteTest/protected/tests/unit
generate protected/tests/WebTestCase.php
mkdir C:/wamp/www/MYWebsiteTest/protected/views
mkdir C:/wamp/www/MYWebsiteTest/protected/views/layouts
generate protected/views/layouts/column1.php
generate protected/views/layouts/column2.php
generate protected/views/layouts/main.php
mkdir C:/wamp/www/MYWebsiteTest/protected/views/site
generate protected/views/site/contact.php
generate protected/views/site/error.php
generate protected/views/site/index.php
generate protected/views/site/login.php
mkdir C:/wamp/www/MYWebsiteTest/protected/views/site/pages
generate protected/views/site/pages/about.php
generate protected/yiic
generate protected/yiic.bat
generate protected/yiic.php
mkdir C:/wamp/www/MYWebsiteTest/themes
mkdir C:/wamp/www/MYWebsiteTest/themes/classic
mkdir C:/wamp/www/MYWebsiteTest/themes/classic/views
generate themes/classic/views/.htaccess
mkdir C:/wamp/www/MYWebsiteTest/themes/classic/views/layouts
mkdir C:/wamp/www/MYWebsiteTest/themes/classic/views/site
mkdir C:/wamp/www/MYWebsiteTest/themes/classic/views/system
Your application has been created successfully under C:\wamp\www\MYWebsiteTest.
C:\wamp\www>
-----------------------------------------------------------------------------
2. Download the latest Yii framework.
3. Unzipped Yii framework.
4. Copy the contents to C:\Wamp\www
5. Update Environment Variables by right-click My Computer > Properties > Advanced system settings > Advanced > [Environment Variables...]
- At the “System Variables”, select Path > [Edit].
- Add in new values by separating each path by using semicolon ';'. (DO NOT DELETE the existing path). - Then click [OK].
Examples:
%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;%SYSTEMROOT%\System32\WindowsPowerShell\v1.0\;C:\Program Files\WIDCOMM\Bluetooth Software\;C:\Program Files\WIDCOMM\Bluetooth Software\syswow64;C:\Program Files\TortoiseSVN\bin;C:\WAMP\bin\php\php5.3.10;C:\wamp\www\framework
6. Restart your PC to register the added variables.
7. Go to Command Prompt, by typing 'cmd' at Search field (Start > Search)
8. At command prompt, create Yii skeleton for your new website, called “MyWebsite” at webroot.
Below is the examples of the Command Prompts
____________________________________
Microsoft Windows [Version 6.1.7600]
Copyright (c) 2009 Microsoft Corporation. All rights reserved.
C:\Users\yumar>cd..
C:\Users>cd..
C:\>cd wamp
C:\wamp>cd www
C:\wamp\www>cd framework
Microsoft Windows [Version 6.1.7600]
Copyright (c) 2009 Microsoft Corporation. All rights reserved.
C:\Users\yumar>CD..
C:\Users>CD..
C:\>CD WAMP
C:\wamp>CD WWW
C:\wamp\www>YIIC WEBAPP MYWebsiteTest
Create a Web application under 'C:\wamp\www\MYWebsiteTest'? [yes|no] yes
mkdir C:/wamp/www/MYWebsiteTest
mkdir C:/wamp/www/MYWebsiteTest/assets
mkdir C:/wamp/www/MYWebsiteTest/css
generate css/bg.gif
generate css/form.css
generate css/ie.css
generate css/main.css
generate css/print.css
generate css/screen.css
mkdir C:/wamp/www/MYWebsiteTest/images
generate index-test.php
generate index.php
mkdir C:/wamp/www/MYWebsiteTest/protected
generate protected/.htaccess
mkdir C:/wamp/www/MYWebsiteTest/protected/commands
mkdir C:/wamp/www/MYWebsiteTest/protected/commands/shell
mkdir C:/wamp/www/MYWebsiteTest/protected/components
generate protected/components/Controller.php
generate protected/components/UserIdentity.php
mkdir C:/wamp/www/MYWebsiteTest/protected/config
generate protected/config/console.php
generate protected/config/main.php
generate protected/config/test.php
mkdir C:/wamp/www/MYWebsiteTest/protected/controllers
generate protected/controllers/SiteController.php
mkdir C:/wamp/www/MYWebsiteTest/protected/data
generate protected/data/schema.mysql.sql
generate protected/data/schema.sqlite.sql
generate protected/data/testdrive.db
mkdir C:/wamp/www/MYWebsiteTest/protected/extensions
mkdir C:/wamp/www/MYWebsiteTest/protected/messages
mkdir C:/wamp/www/MYWebsiteTest/protected/migrations
mkdir C:/wamp/www/MYWebsiteTest/protected/models
generate protected/models/ContactForm.php
generate protected/models/LoginForm.php
mkdir C:/wamp/www/MYWebsiteTest/protected/runtime
mkdir C:/wamp/www/MYWebsiteTest/protected/tests
generate protected/tests/bootstrap.php
mkdir C:/wamp/www/MYWebsiteTest/protected/tests/fixtures
mkdir C:/wamp/www/MYWebsiteTest/protected/tests/functional
generate protected/tests/functional/SiteTest.php
generate protected/tests/phpunit.xml
mkdir C:/wamp/www/MYWebsiteTest/protected/tests/report
mkdir C:/wamp/www/MYWebsiteTest/protected/tests/unit
generate protected/tests/WebTestCase.php
mkdir C:/wamp/www/MYWebsiteTest/protected/views
mkdir C:/wamp/www/MYWebsiteTest/protected/views/layouts
generate protected/views/layouts/column1.php
generate protected/views/layouts/column2.php
generate protected/views/layouts/main.php
mkdir C:/wamp/www/MYWebsiteTest/protected/views/site
generate protected/views/site/contact.php
generate protected/views/site/error.php
generate protected/views/site/index.php
generate protected/views/site/login.php
mkdir C:/wamp/www/MYWebsiteTest/protected/views/site/pages
generate protected/views/site/pages/about.php
generate protected/yiic
generate protected/yiic.bat
generate protected/yiic.php
mkdir C:/wamp/www/MYWebsiteTest/themes
mkdir C:/wamp/www/MYWebsiteTest/themes/classic
mkdir C:/wamp/www/MYWebsiteTest/themes/classic/views
generate themes/classic/views/.htaccess
mkdir C:/wamp/www/MYWebsiteTest/themes/classic/views/layouts
mkdir C:/wamp/www/MYWebsiteTest/themes/classic/views/site
mkdir C:/wamp/www/MYWebsiteTest/themes/classic/views/system
Your application has been created successfully under C:\wamp\www\MYWebsiteTest.
C:\wamp\www>
-----------------------------------------------------------------------------
9. Check your Wamp webroot folder.
No comments:
Post a Comment