Ktl-icon-tai-lieu

PHP zend framwok

Được đăng lên bởi Tran van Tung
Số trang: 1421 trang   |   Lượt xem: 7185 lần   |   Lượt tải: 0 lần
Zend Framework 2 Documentation
Release 2.2.0dev

Zend Technologies Ltd.

April 04, 2013

CONTENTS

1

Overview

1

2

Installation

3

3

Getting Started with Zend Framework 2
3.1 Some assumptions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
3.2 The tutorial application . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

5
5
5

4

Getting started: A skeleton application
4.1 Virtual host . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

7
8

5

Modules
5.1 Setting up the Album module . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
5.2 Configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
5.3 Informing the application about our new module . . . . . . . . . . . . . . . . . . . . . . . . . . . .

9
9
11
11

6

Routing and controllers

13

7

Create the controller
7.1 Initialise the view scripts . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

15
16

8

Database and models
8.1 The database . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
8.2 The model files . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
8.3 Using ServiceManager to configure the table gateway and inject into the AlbumTable .
8.4 Back to the controller . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
8.5 Listing albums . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

17
17
17
19
21
21

9

.
.
.
.
.

.
.
.
.
.

.
.
.
.
.

.
.
.
.
.

.
.
.
.
.

.
.
.
.
.

.
.
.
.
.

.
.
.
.
.

Styling and Translations

10 Forms and actions
10.1 Adding new albums . . . . . . . . . . . . . . . . . . .
10.2 Editing an album . . . . . . . . . . . . . . . . . . . . .
10.3 Deleting an album . . . . . . . . . . . . . . . . . . . .
10.4 Ensuring that the home page displays the list of albums .

25

.
.
.
.

.
.
.
.

.
.
.
.

.
.
.
.

.
.
.
.

.
.
.
.

.
.
.
.

.
.
.
.

.
.
.
.

.
.
.
.

.
.
.
.

.
.
.
.

.
.
.
.

.
.
.
.

.
.
.
.

.
.
.
.

.
.
.
.

.
.
.
.

.
.
.
.

.
.
.
.

.
.
.
.

.
.
.
.

.
.
.
.

.
.
.
.

27
27
32
34
35

11 Conclusion

37

12 Zend Framework Tool (ZFTool)
12.1 Installation using Composer . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
12.2 Manual installation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ...
Zend Framework 2 Documentation
Release 2.2.0dev
Zend Technologies Ltd.
April 04, 2013
PHP zend framwok - Trang 2
Để xem tài liệu đầy đủ. Xin vui lòng
PHP zend framwok - Người đăng: Tran van Tung
5 Tài liệu rất hay! Được đăng lên bởi - 1 giờ trước Đúng là cái mình đang tìm. Rất hay và bổ ích. Cảm ơn bạn!
1421 Vietnamese
PHP zend framwok 9 10 269