Toggle navigation
wCMF 4.0
Guides
Getting started
Architecture
Model
Persistence
Presentation
Configuration
Security
I18n & l10n
Tests
API
Code
Support
wcmf_older
wcmf
src
wcmf
application
views
plugins
function.header.php
1
<?php
2
/**
3
* wCMF - wemove Content Management Framework
4
* Copyright (C) 2005-2015 wemove digital solutions GmbH
5
*
6
* Licensed under the terms of the MIT License.
7
*
8
* See the LICENSE file distributed with this work for
9
* additional information.
10
*/
11
12
/*
13
* Smarty plugin
14
* -------------------------------------------------------------
15
* File: function.header.php
16
* Type: function
17
* Name: header
18
* Purpose: output the given header
19
* Usage: e.g. {header value="Content-Type: text/javascript"}
20
* -------------------------------------------------------------
21
*/
22
function
smarty_function_header($params, \Smarty_Internal_Template $template) {
23
if
(isset($params[
'value'
])) {
24
header($params[
'value'
]);
25
}
26
}
27
?>