Viewing entries tagged with 'code sample'

Code Sample: HTML / CSS

Posted by Mitch Viner on 5 January 2012 | 0 Comments

Tags:

For an HTML / CSS code sample, just view the source of this website. It uses the HTML5 doctype, modernizr.js for older browser support, and is powered by SilverStripe. I authored all the css, using Paul Irish's HTML5 Boilerplate as a starting point to get the compatibility with older browsers. The mobile version of the site is done just by using CSS Media Queries and including a seperate stylesheet for mobile.

Read the full post

Code Sample: Magento

Posted by Mitch Viner on 22 December 2011 | 0 Comments

Tags: ,

This is a partial Magento controller that was used to override the default Product Controller in order to split the usual product page into a 3 step product configuration wizard. The full file is not posted here just because of it's size, some of the methods removed were just methods that overrode, and slightly modified existing methods. This controller was created for Magento 1.3.4 about a year ago.

Read the full post

Code Sample: Symfony2

Posted by Mitch Viner on 19 December 2011 | 0 Comments

Tags: ,

Below is a work-in-progress base controller for a Symfony application that is still in it's infancy. It's nothing too fancy, but demonstrates knowledge of PHP5.3 OOP development.

Read the full post

Code Sample: jQuery

Posted by Mitch Viner on 16 December 2011 | 0 Comments

Tags: ,

Below is a jQuery "storage" mechanism I developed to extend an application with the ability to store data on an IFrame. The purpose of using the IFrame, is that other parts of the application can load templates for use by the jQuery jsRender plugin to render views inside of the application. This simple extension allows for easy access to reading and writing those templates within the IFrame as well as seamlessly manages storing data objects on the IFrame as well. This provides a unified way to access the jsRender templates, as well as JSON data.

Read the full post