
functions.php
By: a guest on
May 9th, 2012 | syntax:
PHP | size: 0.57 KB | hits: 20 | expires: Never
<?php
namespace Src;
use Calendar\Controller\BaseController;
global $config;
$config = BaseController::getConfig();
function asset($type, $item)
{
switch($type)
{
case 'img':
$r_item = $config['other']['assetPath'] . '/' . $config['other']['tplUsed'] . '/images/' . $item;
case 'css':
$r_item = $config['other']['assetPath'] . '/' . $config['other']['tplUsed'] . '/style/' . $item;
case 'js':
$r_item = $config['other']['assetPath'] . '/' . $config['other']['tplUsed'] . '/script/' . $item;
default:
$r_item = null;
}
return $r_item;
}