34.204.169.76 |    

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.015 seconds at 33.44 KB/s

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

User online
There are 3 users online.

Tags Cloud

Latest snippets
last day of last month
(Bash::Snippets)
crypt_apr1_md5
(PHP::Function)
crypt_apr1_md5
(Perl::Function)
transparent
(CSS)
rfc2822Toiso8601
(PHP::Function)
STDERR
(Bash::Function)
radius
(CSS)
shadow
(CSS)
rotate
(CSS)
create_function
(JavaScript::Snippets)