Beispiel #1
0
function set_resources($source, $type = null)
{
    if (!empty($source) && ($type == "header" || $type == "footer")) {
        $CI =& get_instance();
        $resources = $CI->config->item('resources');
        if (!empty($resources[$source])) {
            if (is_array($resources[$source])) {
                foreach ($resources[$source] as $res) {
                    if ($type == "header") {
                        echo set_resource_header($res);
                    } else {
                        echo set_resource_footer($res);
                    }
                }
            }
        }
    }
}
Beispiel #2
0
		<script src="<?php 
echo base_url('js/custom.js');
?>
"></script>

		
		<!-- RESOURCE AUTO -->
		<?php 
if (!empty($source)) {
    ?>
			<?php 
    set_resources($source, "footer");
    ?>
		<?php 
}
?>
		
		<?php 
set_resource_footer("NOTIFY");
?>

		<?php 
$error = retrieve_error();
if (isset($error)) {
    echo showNotify($error['mensaje'], $error['titulo']);
}
?>

	</body>
</html>