18.218.55.14 |    

Navigation

Google Advertisement

Load a defined template file.

get_template
  1. // $template = get_template ( './template/header.tpl' );
  2. // $template = str_replace( '[%PHP_SELF%]', $_SERVER['PHP_SELF'], $template );
  3. // echo $template;
  4. //
  5. // ***************************************************************
  6. // get_template -- load current template file...
  7. //
  8. //      string getTemplate( string string )
  9.  
  10. function get_template ( $file ) {
  11.  
  12. // load template file...
  13. (string) $tpl=implode( '',file( (string) $file ) ) or die ( "Can't load -".$file."- as template file!" );
  14. return $tpl;
  15.  
  16. }
Parsed in 0.010 seconds at 50.64 KB/s

Search
 
Full text search by name and content of a snippet.

User online
There are 2 users online.

Tags Cloud

Latest snippets
str2seconds
(Bash::Function)
is_integer
(Bash::Function)
file_rotate
(Bash::Function)
confirm
(Bash::Function)
is_workingtime
(Bash::Function)
last day of last month
(Bash::Snippets)
crypt_apr1_md5
(PHP::Function)
crypt_apr1_md5
(Perl::Function)
transparent
(CSS)
rfc2822Toiso8601
(PHP::Function)