application/libraries/Twig.php
/**
     * Register Function
     *
     * Alllows you to register functions for use within
     * the Twig environment.
     *
     * @param mixed $name
     * @returns object
     *
     */
Register Function
Alllows you to register functions for use within
the Twig environment.

@param mixed $name
@returns object
Register Function Alllows you to register functions for use within the Twig environment . @param mixed $name @returns object
public function register_function($name) {
        $this->_twig->addFunction($name, new Twig_Function_Function($name));
        return $this;
    }
public function register_function ( $ name ) { $ this -> _twig -> addFunction ( $ name , new Twig_Function_Function ( $ name ) ) ; return $ this ; }
Register Function
 Alllows you to register functions for use within
 the Twig environment.
Register Function Alllows you to register functions for use within the Twig environment .
// Return class for chaining