Yii 2 Basic Final Demo.pdf


Preview of PDF document yii-2-basic-final-demo.pdf

Page 1 23460

Text preview


สารบัญ
คำนำ ............................................................................................................................................. 1
ปฐมบท .......................................................................................................................................10
ติดตั้ง composer ...................................................................................................................10
basic template และ advance template ..............................................................................14
การติดตั้ง Yii 2 Basic Template ............................................................................................15
โครงสร้างโฟลเดอร์ของ Yii2 Basic Template ..........................................................................18
การติดตัง้ advance template ................................................................................................19
Hello World .........................................................................................................................23
Application Object....................................................................................................................24
ไฟล์ Index.php .....................................................................................................................25
Applications Object คืออะไร .........................................................................................25
Application Configurations การแนบการตั้งค่าภายนอก .....................................................26
Application Properties ตัวแปรหลักของ Application ......................................................26
Language ......................................................................................................................29
Modules ........................................................................................................................29
Params ..........................................................................................................................29
Timezone ......................................................................................................................30
Application Events event ที่ทางานระดับ global .............................................................30
Application Lifecycle ผังการทางานของ object ................................................................33
Controller ..................................................................................................................................35
สร้าง controller ...............................................................................................................36