Tag Archives: controller

UIWebView to display web content (Cocoa Framework)

UIWebViews can be used to display web pages (for example, within iPhone applications). The snippets below demonstrate a view controller to display http://snipd.net .

Posted in Objective-C | Also tagged , , , , , , , , | Leave a comment

Disable layout and modify HTTP response headers (Zend Framework)

Suppose you want to send an XML file or an image to a user. Your controller would need to disable the layout (if there is one enabled) and change its headers.

Posted in PHP | Also tagged , , , , , | Leave a comment

Mapping URLs to action parameters (Zend Framework)

Suppose you want to map /fetch/google.com to the fetch action within the Fetch controller with google.com as a parameter. Zend Framework allows you to create a regex route for this purpose.

Posted in PHP | Also tagged , , , , , , , | Leave a comment