Functions
WebDev/*nix assorted functions & hacks
Search
find all
Array
-
Bash
-
Classes
-
Config
-
DateTime
-
Debug
-
dotjs
-
File
-
foooo
-
Git
-
HTML
-
Images
-
Javascript
-
Linux
-
Math
-
Misc
-
MySQL
-
OS X
-
Reading
-
Redis
-
Shell scripts
-
snippets
-
SQL
-
Strings
-
TextMate
-
Web
-
\(^o^)/ Fun!
-
_Misc hacks
-
_Pages
HTML
* Readme
pageStart($list)
popup_link(...)
styled($string, $color='black', $style='')
template($file, $assoc_data)
5
found
auth
Name:
Category: HTML
Body:
//_______________________________ // template($file, $assoc_data) / function template($file, $assoc_data=array()) { if (! file_exists($file)) { trigger_error("template(): file '$file' not found.", E_USER_WARNING); return false; } ob_start(); extract($assoc_data); include($file); $string = ob_get_clean(); return $string; }
Footer