Frameworks

Joomla Plugins: unpublishing an article

by: Matt Hofstetter | March 11 , 2011 | Joomla

It is interesting that by default, Joomla requires an article to be approved by an administrator before it is published live, but once the article has been published, the author can edit it in any way they choose. It seems to me that any time an article is edited by someone other than an administrator,… view article

Ruby on Rails Partials

by: Matt Hofstetter | March 9 , 2011 | Ruby on Rails

A Ruby on Rails partial can be thought of as a kind of view-function. When a partial is created it is given a name and collection of data, such as an array. The code inside the partial template will then be repeated for each element of that array, and that array element can be accessed by the name… view article

Reusable Code with cakePHP Elements

by: Matt Hofstetter | March 6 , 2011 | CakePHP

In CakePHP, an Element is a block of code that can be easily summoned with a simple function call. This ease of reusability makes Elements ideal for managing often-repeated blocks of code. Ideally, the code inside an Element should be static. For dynamic code it would be more appropriate to… view article