note 35458 added to function.ob-get-contents

From: Date: Mon, 01 Sep 2003 18:57:02 +0000
Subject: note 35458 added to function.ob-get-contents
Groups: php.notes 
Request: Send a blank email to php-notes+get-55439@lists.php.net to get a copy of this message
@ shadedecho: You can solve your problem easily with templates. Templates separate design and code. A good template engine is Smarty (http://smarty.php.net). http://smarty.php.net/manual/en/what.is.smarty.php If you use a template engine you can use the same php code for the e-mail and the webpage: <?php $mailtext=$smarty->fetch('e-mail.tpl'); $smarty->display('webdocument.tpl'); ?> ---- Manual Page -- http://www.php.net/manual/en/function.ob-get-contents.php Edit Note -- http://master.php.net/manage/user-notes.php?action=edit+35458 Delete Note -- http://master.php.net/manage/user-notes.php?action=delete+35458&report=yes Reject Note -- http://master.php.net/manage/user-notes.php?action=reject+35458&report=yes

« previous php.notes (#55439) next »