Skip to content

Instantly share code, notes, and snippets.

View ariefbayu's full-sized avatar
🏠
Working from home

Arief Bayu Purwanto ariefbayu

🏠
Working from home
View GitHub Profile
@ariefbayu
ariefbayu / gist:3857511
Created October 9, 2012 09:04 — forked from danmatthews/gist:3240064
Solution to doing some processing for every method of FuelPHP REST controller. Also add limit supported data type.
<?php
class ExampleRestController extends Controller_Rest {
/**
* @var array List all supported methods
*/
protected $_supported_formats = array(
'xml' => 'application/xml',
// 'rawxml' => 'application/xml',