Using Smarty Inline

From: Date: Fri, 17 Jan 2003 21:11:32 +0000
Subject: Using Smarty Inline
Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-7261@lists.php.net to get a copy of this message
Hi, Is it possible to use Smarty inline (in a normal PHP inside a parsed HTML file environement) without having a separate template file? For instance, I have a very large site that I'd like to roll over to Smarty, but I'd like to take advantage of some of its features (such as html_options) in the meantime. So can I have a file in the document root, test.php for instance: -------------------------------- <html> <head>snip...</head> <body> the content's here <?php some php logic here ?> <form> <select name=customer_id> {html_options options=$customer_options selected=$customer_id} </select> </form> </body> </html> ------------------------------- Is that possible? Or is it just best to jump right in and try building the templates right off the bat? Thanks, Brian Allen

« previous php.smarty.general (#7261) next »