Step Creating the GameNomad Contact Form

The contact form provides your user with a simple way to contact you, while ensuring they provide all of the information you require to ensure a timely and accurate response. For instance, if you were building a website which managed magazine subscriptions, you might want users to include the subscription number found on the magazine label when contacting you for support. A contact form can force the user to include this, thereby saving the hassle of your support team to otherwise ask for it if...

Adjust Your Document Root

Ok, there's just one more step before we can actually begin using our Zend Framework-powered website. Because the .htaccess and index.php files reside within the public directory, the public 120 CHAPTER 5 INTRODUCING THE ZEND FRAMEWORK directory must be identifiable by Apache as the website's document root and root directory. To change these settings, open your httpd.conf file and search for DocumentRoot. Until now the Document-Root directive has been set to C apache htdocs gamenomad, however...

Extend Your Website with RSS and Facebook

Back in the early days of the web, companies new and old were obsessed with monetizing eyeballs in other words, encouraging as many people to come to their website as possible. This encouragement often came in the form of lavish parties, product giveaways, and daring Super Bowl ads. Following the burst of the Internet bubble, coupled with the rise of massive social networking hubs such as Face-book and MySpace, companies started considering more pragmatic tactics when it comes to reaching the...

Customizing the Page Title

Based on Listing 5-8, the site's title will always be set to My Game Collection. You can change this easily enough to reflect the page-specific contents. Adjust the layout's lt title gt tag so it looks like this CHAPTER 5 INTRODUCING THE ZEND FRAMEWORK 127 Within each controller action, you can set the title to correspond with the action's purpose this- gt view- gt pageTitle Welcome to GameNomad

Info Wen

32 lt p gt Thank you, lt br gt Most e-mail clients will strip everything prior to and following the lt body gt tag enclosure, meaning if you want to use CSS styling within your e-mail, you'll need to include the styles within the lt style gt tag following the lt body gt tag, as was done in lines 03-14. Keep in mind that some e-mail clients will downright remove anything found within lt style gt tags, altogether removing any possibility of formatting e-mail using CSS. Welcome to the GameNomad...

Create the indexphp File

As was noted in the .htaccess file, it's also the entry point for all incoming requests. In all, this file is responsible for completing four tasks setting PHP's include_path directive to include the Zend Framework's library directory, making it possible for Zend Framework's classes to be called within scripts without having to first include them using the require statement, referencing the boot-strap.php file, and finally jumpstarting Zend's front controller, which handles the request routing....