Setelah berhasil melakukan Instalasi Yii berikut kita akan membuat aplikasi pertama Yii

  1. Masuk dengan commad ke webroot

    D:\home\yii\public_html>..\yii\framework\yiic webapp coba
    Create a Web application under ‘D:\home\yii\public_html\coba’? [Yes|No] y
          mkdir D:/home/yii/public_html/coba
          mkdir D:/home/yii/public_html/coba/assets
          mkdir D:/home/yii/public_html/coba/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 D:/home/yii/public_html/coba/images
       generate index-test.php
       generate index.php
          mkdir D:/home/yii/public_html/coba/protected
       generate protected/.htaccess
          mkdir D:/home/yii/public_html/coba/protected/commands
          mkdir D:/home/yii/public_html/coba/protected/commands/shell
          mkdir D:/home/yii/public_html/coba/protected/components
       generate protected/components/Controller.php
       generate protected/components/UserIdentity.php
          mkdir D:/home/yii/public_html/coba/protected/config
       generate protected/config/console.php
       generate protected/config/main.php
       generate protected/config/test.php
          mkdir D:/home/yii/public_html/coba/protected/controllers
       generate protected/controllers/SiteController.php
          mkdir D:/home/yii/public_html/coba/protected/data
       generate protected/data/schema.mysql.sql
       generate protected/data/schema.sqlite.sql
       generate protected/data/testdrive.db
          mkdir D:/home/yii/public_html/coba/protected/extensions
          mkdir D:/home/yii/public_html/coba/protected/messages
          mkdir D:/home/yii/public_html/coba/protected/models
       generate protected/models/ContactForm.php
       generate protected/models/LoginForm.php
          mkdir D:/home/yii/public_html/coba/protected/runtime
          mkdir D:/home/yii/public_html/coba/protected/tests
       generate protected/tests/bootstrap.php
          mkdir D:/home/yii/public_html/coba/protected/tests/fixtures
          mkdir D:/home/yii/public_html/coba/protected/tests/functional
       generate protected/tests/functional/SiteTest.php
       generate protected/tests/phpunit.xml
          mkdir D:/home/yii/public_html/coba/protected/tests/report
          mkdir D:/home/yii/public_html/coba/protected/tests/unit
       generate protected/tests/WebTestCase.php
          mkdir D:/home/yii/public_html/coba/protected/views
          mkdir D:/home/yii/public_html/coba/protected/views/layouts
       generate protected/views/layouts/column1.php
       generate protected/views/layouts/column2.php
       generate protected/views/layouts/main.php
          mkdir D:/home/yii/public_html/coba/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 D:/home/yii/public_html/coba/protected/views/site/pages
       generate protected/views/site/pages/about.php
       generate protected/yiic
       generate protected/yiic.bat
       generate protected/yiic.php
          mkdir D:/home/yii/public_html/coba/themes
          mkdir D:/home/yii/public_html/coba/themes/classic
          mkdir D:/home/yii/public_html/coba/themes/classic/views
       generate themes/classic/views/.htaccess
          mkdir D:/home/yii/public_html/coba/themes/classic/views/layouts
          mkdir D:/home/yii/public_html/coba/themes/classic/views/site
          mkdir D:/home/yii/public_html/coba/themes/classic/views/system

    Your application has been created successfully under D:\home\yii\public_html\coba.

    D:\home\yii\public_html>

  2. Hasilnya bisa dilihat di http://yii/coba/

    Untuk halaman Aboutnya sebagai berikut:

    Untuk halaman Contact sebagai berikut

    Perhatikan, bahwa sudah ada verifikasi data-data yang harus diisi.

    Untuk menu Login akan muncul seperti gambar berikut:

Langkah selanjutnya adalah http://www.proweb.co.id/articles/web_application/analisa_aplikasi_dasar_yii.html .

Kunjungi www.proweb.co.id untuk menambah wawasan anda.

 

 

 

 

 

Aplikasi pertama Yii