Tag Archives: view

LView – PHP View Class

View class that contains features like: – get vars inside the view with: 1) $var1 2) $this->var1 3) or $this->get( ‘var1′, ‘defaultValue’ ) – factory method for direct chaining: LView::factory( ‘test.php’ )->set( ‘var1′, ‘value1′ )->show(); – set filter callbacks that will be executed right after rendering – set global vars and global filters to be [...]

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

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

Doctype declaration (Zend Framework)

The following snippet will add a doctype declaration to your views. Modify Bootstrap.php . protected function _initDoctype() { $this->bootstrap(‘view’); $view = $this->getResource(‘view’); $view->doctype(‘XHTML1_STRICT’); }

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

Creating the World, View and Projection matrices in XNA

The World, Projection and View matrices are used in XNA to project your 3D world on your 2D computer screen. The theory behind 3D projection can be found here.

Posted in C# | Also tagged , , , , , , , , , , , , | Leave a comment