Smarty Template Library Snippets


Makes it extremely easy to integrate code igniter and smarty as well as provide layout capabilites.

09 July, 2011   

How to sort array in smarty template? Create sort modifier file and save it in smarty / plugins with modifier.sortby.php name use this modifier in smarty template like... {foreach item=item key=key from=$users|@sortby:"firstname"} {$item.id}-{$item.firstname} {/foreach}

26 November, 2012   

Example code for smarty Loop for x to y with no array

Take array and create multiple columns, define divisible by value ($divis) from total results then use modulus within the loop. This example shows multiple columns for unordered list items.

03 August, 2011   

By the below template we can make for-loop using xslt.

22 December, 2011   

MaxScript code example to load a library

13 April, 2013   

Load and store classes for easy use and re-usability using advanced PHP object storing.

An example of Strict Textmate Template

11 May, 2013   

Generate CAPTCHA images for form validation without any outside library's or plug-ins

01 January, 2013   

Basic template for xhtml transitional

A Template for building OpenGL applications using GLUT.

24 August, 2011   

When you are writing dynamic link libraries and need to control the loading and unloading of a DLL, or if you want to initialize your DLL when it is loaded, you can have a function called DllMain do your initialization. Windows calls the DllMain function of a DLL in four instances: 1) When a process attaches the DLL 2) When a thread attaches...

28 March, 2011   

When you are writing dynamic link libraries and need to control the loading and unloading of a DLL, or if you want to initialize your DLL when it is loaded, you can have a function called DllMain do your initialization. Windows calls the DllMain function of a DLL in four instances: 1) When a process attaches the DLL 2) When a thread attaches...

09 March, 2011   

Here are Doctype Template

26 January, 2012   

A simple example template of an Asset Update XML

25 April, 2011   

HTML5 starting point template. Used in conjunction with HTML5 CSS reset at the above link.

13 December, 2011   

Chooses a pre-determined playlist from your iTunes library

11 September, 2011   

Simple example template of an Import XML

20 August, 2015   

Basic setup code for jQuery, linking to Google APIs for the jQuery library.

09 March, 2011   

Default XHTML start code for designing a layout or template for your website. Great for working on several clients/projects and do not want to retype this code over and over again.