Prev | Current Page 692 | Next

W. Jason Gilmore

"Beginning PHP and MySQL: From Novice to Professional"

Join us at our next
meeting, held at the coffee shop on the corner of Third and Neil
each Tuesday at 6 p.m.


echo $this->render('footer.phtml');
?>
616 CHAPTER 24 ?–  MVC AND THE Z END F RAMEWORK
Listing 24-5. The about.phtml View
echo $this->render('header.phtml');
?>


Founded: 1997

City: Columbus, Ohio

Where we meet: Cup of Love, corner of Third and Neil

When we meet: Each Tuesday at 6 p.m.

Notes: Bring your board and pieces if you have them!


echo $this->render('footer.phtml');
?>
Listing 24-6. The you.phtml View
echo $this->render('header.phtml');
?>


Your IP Address: escape($this->ip); ?>

Your Browser: escape($this->browser); ?>


echo $this->render('footer.phtml');
?>
As demonstrated in these views, you should pass all data originating in the
controller through the escape() method, as it will properly filter data through PHP??™s
htmlspecialchars() function.
CHAPTER 24 ?–  MVC AND THE Z END F RAMEWORK 617
You??™ll see each of these views refer to header.phtml and footer.phtml files
(both of which are available at the book??™s Source Code/Download page at http://
www.apress.com), which serve as the page template headers and footers, respectively.


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