berikut ini cara install Yii Framework
1. Unduh yii framework
Anda dapat mengunduh di sini.
2. Install xampp di pc kita
Jika belum punya xampp unduh di sini
3. Copy dan ekstrak file
Dari hasil unduh framewok yii tadi kita extraxt ke dalam folder xampp terus kemudian rename dengan nama yii.
4. Buka command prompt
Buka startmenu->run->cmd lalu ketikan
C:\Documents and Settings\namauser>cd ..
C:\Documents and Settings>cd ..
C:\>cd xampp
C:\xampp>cd php
Pada direktori php, gunakan php.exe untuk menginstall yii yang telah di
extraxt di folder xampp pada folder xampp -> htdoct -> dengan nama
file kita.
C:\xampp\php>php.exe c:\xampp\yii\framework\yiic webapp c:\xampp\htdocs\nama_file_yii_kita
Jika benar input yes untuk mulai menginstall
Create a Web application under 'C:\xampp\htdocs\nama_file_yii_kita'? [Yes|No] yes
Proses instalasi berjalan
mkdir C:/xampp/htdocs/devilzc0de_yii
mkdir C:/xampp/htdocs/devilzc0de_yii/assets
mkdir C:/xampp/htdocs/devilzc0de_yii/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:/xampp/htdocs/devilzc0de_yii/images
generate index-test.php
generate index.php
mkdir C:/xampp/htdocs/devilzc0de_yii/protected
generate protected/.htaccess
mkdir C:/xampp/htdocs/devilzc0de_yii/protected/commands
mkdir C:/xampp/htdocs/devilzc0de_yii/protected/commands/shell
mkdir C:/xampp/htdocs/devilzc0de_yii/protected/components
generate protected/components/Controller.php
generate protected/components/UserIdentity.php
mkdir C:/xampp/htdocs/devilzc0de_yii/protected/config
generate protected/config/console.php
generate protected/config/main.php
generate protected/config/test.php
mkdir C:/xampp/htdocs/devilzc0de_yii/protected/controllers
generate protected/controllers/SiteController.php
mkdir C:/xampp/htdocs/devilzc0de_yii/protected/data
generate protected/data/schema.mysql.sql
generate protected/data/schema.sqlite.sql
generate protected/data/testdrive.db
mkdir C:/xampp/htdocs/devilzc0de_yii/protected/extensions
mkdir C:/xampp/htdocs/devilzc0de_yii/protected/messages
mkdir C:/xampp/htdocs/devilzc0de_yii/protected/migrations
mkdir C:/xampp/htdocs/devilzc0de_yii/protected/models
generate protected/models/ContactForm.php
generate protected/models/LoginForm.php
mkdir C:/xampp/htdocs/devilzc0de_yii/protected/runtime
mkdir C:/xampp/htdocs/devilzc0de_yii/protected/tests
generate protected/tests/bootstrap.php
mkdir C:/xampp/htdocs/devilzc0de_yii/protected/tests/fixtures
mkdir C:/xampp/htdocs/devilzc0de_yii/protected/tests/functional
generate protected/tests/functional/SiteTest.php
generate protected/tests/phpunit.xml
mkdir C:/xampp/htdocs/devilzc0de_yii/protected/tests/report
mkdir C:/xampp/htdocs/devilzc0de_yii/protected/tests/unit
generate protected/tests/WebTestCase.php
mkdir C:/xampp/htdocs/devilzc0de_yii/protected/views
mkdir C:/xampp/htdocs/devilzc0de_yii/protected/views/layouts
generate protected/views/layouts/column1.php
generate protected/views/layouts/column2.php
generate protected/views/layouts/main.php
mkdir C:/xampp/htdocs/devilzc0de_yii/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:/xampp/htdocs/devilzc0de_yii/protected/views/site/pages
generate protected/views/site/pages/about.php
generate protected/yiic
generate protected/yiic.bat
generate protected/yiic.php
mkdir C:/xampp/htdocs/devilzc0de_yii/themes
mkdir C:/xampp/htdocs/devilzc0de_yii/themes/classic
mkdir C:/xampp/htdocs/devilzc0de_yii/themes/classic/views
generate themes/classic/views/.htaccess
mkdir C:/xampp/htdocs/devilzc0de_yii/themes/classic/views/layouts
mkdir C:/xampp/htdocs/devilzc0de_yii/themes/classic/views/site
mkdir C:/xampp/htdocs/devilzc0de_yii/themes/classic/views/system
Your application has been created successfully under C:\xampp\htdocs\devilzc0de_
yii.
C:\xampp\php>
5. Instalasi selesai
6. Mensetting gii
Gii ini adalah module untuk melakukan generate code secara otomatis. Mensetting gii terletak pada
C:\xampp\htdocs\nama_file_yii_kita\protected\config\main.php
7. Langkah selanjutnya buka dibrowser.
Ketikan
http://localhost/nama_file_yii_kita, login sebagai demo atau admin
8. Selamat mengedit applikasi anda.
0 comments:
Posting Komentar