Usually, the pages are displayed using two additional
GET parameters passed to the index.php file to create URLs such as index.php?controller=news&action=list to
display a list page.
If we recap from chapter 1, Figure 2.4 shows the Zend Framework classes that implement the MVC design
pattern. There are three separate components used and within each component, more than one class is required
for the application.
Licensed to Menshu You
Please post comments or corrections to the Author Online forum at
http://www.manning-sandbox.com/forum.jspa?forumID=329
Figure 2.4: The interaction of the various Zend Framework classes used to create an MVC application
One important aspect of all modern web applications is that the URL looks ???good??? so that it is more
memorable for users and is also easier for search engines like Yahoo! or Google to index the pages of the
website. An example friendly URL would be www.example.com/news/list and it should come as no surprise
that the Zend Framework??™s front controller uses a sub-component, known as a router, support friendly URLs
by default.
2.6.1 The Zend Framework??™s Controller
The Zend Framework??™s front controller code is spread over a number of classes that work together to provide a
very flexible solution to the problem of routing a web request to the correct place to do the work.
Pages:
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58