untuk mengaplikasikan Yii framework silahkan download di Yii Framework setelah itu copykan folder framework ke web root applikasi. create folder tempat pembuatan applikasi misalnya ‘blog’, langkah selanjutnya adalah membuat kerangka applikasi.
Langkah - langkah membuat Kerangka Applikasi
1) buka ms-dos dengan cara, dari start –> run –> ketik cmd
2) cari tempat folder php.exe (start dari sini). Misalnya di C:\xampp\php> kemudian ketik path tempat anda mengcopy Yii framework + webapp + path tempat anda akan membuat applikasi contohnya : ketik “c:/xampp/htdocs/yi/framework/yiic webapp c:/xampp/htdocs/yi/blog” setelah itu akan muncul Create a Web application under ‘C:\xampp\htdocs\yi\blog’? [Yes|No] ketik Y
hasilnya mkdir C:/xampp/htdocs/yi/blog/assets
generate assets/.yii
mkdir C:/xampp/htdocs/yi/blog/css
generate css/bg.gif
generate css/form.css
generate css/main.css
mkdir C:/xampp/htdocs/yi/blog/images
generate images/.yii
mkdir C:/xampp/htdocs/yi/blog/protected
generate protected/.htaccess
mkdir C:/xampp/htdocs/yi/blog/protected/commands
mkdir C:/xampp/htdocs/yi/blog/protected/commands/shell
generate protected/commands/shell/.yii
mkdir C:/xampp/htdocs/yi/blog/protected/components
generate protected/components/MainMenu.php
generate protected/components/UserIdentity.php
mkdir C:/xampp/htdocs/yi/blog/protected/components/views
generate protected/components/views/mainMenu.php
mkdir C:/xampp/htdocs/yi/blog/protected/config
generate protected/config/console.php
generate protected/config/main.php
mkdir C:/xampp/htdocs/yi/blog/protected/controllers
generate protected/controllers/SiteController.php
mkdir C:/xampp/htdocs/yi/blog/protected/extensions
generate protected/extensions/.yii
mkdir C:/xampp/htdocs/yi/blog/protected/messages
generate protected/messages/.yii
mkdir C:/xampp/htdocs/yi/blog/protected/models
generate protected/models/ContactForm.php
generate protected/models/LoginForm.php
mkdir C:/xampp/htdocs/yi/blog/protected/runtime
generate protected/runtime/.yii
mkdir C:/xampp/htdocs/yi/blog/protected/views
mkdir C:/xampp/htdocs/yi/blog/protected/views/layouts
generate protected/views/layouts/main.php
mkdir C:/xampp/htdocs/yi/blog/protected/views/site
generate protected/views/site/contact.php
generate protected/views/site/index.php
generate protected/views/site/login.php
mkdir C:/xampp/htdocs/yi/blog/protected/views/system
generate protected/views/system/.yii
generate protected/yiic
generate protected/yiic.bat
generate protected/yiic.php
mkdir C:/xampp/htdocs/yi/blog/themes
mkdir C:/xampp/htdocs/yi/blog/themes/classic
mkdir C:/xampp/htdocs/yi/blog/themes/classic/views
generate themes/classic/views/.htaccess
mkdir C:/xampp/htdocs/yi/blog/themes/classic/views/layouts
generate themes/classic/views/layouts/.yii
mkdir C:/xampp/htdocs/yi/blog/themes/classic/views/site
generate themes/classic/views/site/.yii
mkdir C:/xampp/htdocs/yi/blog/themes/classic/views/system
generate themes/classic/views/system/.yii
Your application has been created successfully under C:\xampp\htdocs\yi\blog.
maka di dalam folder blog terdapat / dibuat folder assets,css, images,protected dan themes
selanjutnya di browser ketik “misalnya” http://localhost/yi/blog
Maka hasilnya :
sy dah coba memang berhasil,tp wktu sy running di browser kok muncul pesan "Apache HTTP Server has encountered a problem and needs to close. We are sorry for the inconvenience." knp y, mohon pencerahannya ????thx
BalasHapus