application/libraries/Twig.php
/**
     * Add Template Location
     *
     * Adds a new template location to the template
     * locations array. Allows adding of template folders
     * before view loading for example.
     *
     * @param mixed $location
     * @returns object
     *
     */
Add Template Location
Adds a new template location to the template
locations array. Allows adding of template folders
before view loading for example.

@param mixed $location
@returns object
Add Template Location Adds a new template location to the template locations array . Allows adding of template folders before view loading for example . @param mixed $location @returns object
public function add_template_location($location_var) {
        if (is_array($location_var)) {
            foreach ($location_var AS $location => $offset) {
                if (is_dir($location)) {
                    $this->_template_directories[] = $location;
                }
            }
        } else {
            if (is_dir($location_var)) {
                $this->_template_directories[] = $location_var;
            }
        }
    }
public function add_template_location ( $ location_var ) { if ( is_array ( $ location_var ) ) { foreach ( $ location_var AS $ location => $ offset ) { if ( is_dir ( $ location ) ) { $ this -> _template_directories [ ] = $ location ; } } } else { if ( is_dir ( $ location_var ) ) { $ this -> _template_directories [ ] = $ location_var ; } } }
Add Template Location
 Adds a new template location to the template
 locations array.
Add Template Location Adds a new template location to the template locations array .