Need your feedback
Site Search
-
Categories
- Actionscript (1)
- Django (28)
- iPhone (7)
- Javascript (12)
- Linux (13)
- Mac OS Basic (11)
- Misc (43)
- PHP (25)
- Python (2)
- Software Support (7)
- Uncategorized (1)
-
-
-
Tag Archives: php render_to_string
php render_to_string
Function: function render_to_string( $file, $context = array() ){ if( ! file_exists( $file ) ){ return “”; } ob_start(); include( $file ); $cnt = ob_get_clean(); return $cnt; } Example:http://www.softwarematrix.cn/example/php.render_to_string/ You can download the test code from the example.