Yii tutorial
I.
installing yii
* nadiscuss na to ni sir Mique …..di ko na ididiscuss
——–
II. setting up your folder using cmd
1.set path=c:\wamp\bin\php\php5.2.9-2 //hanapin mu kung saan ang ung php.exe at iset mu as path
2. cd\wamp\www\yeah\framework // balik ka sa framework ng yii
3. yiic webapp c:\wamp\www\blog // enter this command to create your application folder
4. press y
—
setting up database and creating a model
1edit protected/config/main.php uncomment mysql using notepad ++
2.create testdrive database in phpadmin
4. import mu ung mysql sa protected/data
5. run cmd
6.set path=c:\wamp\bin\php\php5.2.9-2
7.cd\wamp\www\blog\protected //punta ka sa protected
8.yiic shell c:\wamp\blog\index.php //type mu yan
9.model User tbl_user// ang model ay class, etong command nato eh gagawa ng model para sa table na user sa loob ng magagawang model makikita ung accessible variables
10.crud User//type mu yan–> gagawa ng create read,update delete na feature sa site para sa user table
11.http://localhost/blog2/index.php?r=user ->>itype nyo sa browser , diba pede ng magedit , update ,delete na ng user un ang crud…
—
reference:Building a Blog System using Yii by Qiang Xue
au
All comments are moderated. Your comments will not appear here unless approved by the blog owner. Thank you.
update ko nalang pag natutunan ko na ung iba
Posted by dos193 at April 14, 2010, 9:55 pm