Prev | Current Page 693 | Next

W. Jason Gilmore

"Beginning PHP and MySQL: From Novice to Professional"


These global templates can be placed in the /application/modules/default/views/
scripts/ directory and will automatically be located and integrated into the view
when using the render() method. Not surprisingly, the header could include references
to the page masthead as well as the CSS and JavaScript files. The footer could
include things such as copyright information and the closing page tags.
?– Tip Quite conveniently, the Zend Framework supports the ability to take advantage of more sophisticated
templating solutions than those demonstrated here, such as Smarty (see Chapter 19). See the
Zend Framework manual for more information.
Trying It Out
With the actions and views defined, it??™s time for the moment of truth. Try navigating
to the following pages and see what happens:
??? To access the home page, navigate to this URL: http://localhost/.
??? To access the about.phtml view, navigate to this URL: http://localhost/about/.
??? To access the you.phtml view, navigate to this URL: http://localhost/about/you/.
Next, consider experimenting by adding a new action and class and set of corresponding
views. Just copy and rename one of the controllers, being sure to follow the
same conventions used in the original class.
Searching the Web with Zend_Service_Yahoo
Table 24-1 presented just some of the dozens of Zend Framework components at
your disposal; therefore, as you might imagine, it??™s difficult to decide which component
to demonstrate in this brief chapter.


Pages:
681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705