![]() |
|
| Domain Name Sales | Domain Software | Calculate UK Domain Drop Dates | Domain Registration | NameDrive | Domain Parking | Subscribe to our Domains For Sale newsletter |
| | ||||||
| Home | Register | Rules | Membership Upgrade | Domains For Sale | Domain Name Escrow | Mark Forums Read | Domain Classified | Chat Room |
| Scripts and Coding PHP, MySQL, scripts |
![]() |
| | LinkBack | Thread Tools | Display Modes |
| | #1 (permalink) |
| Administrator |
Hi, Does anyone know how to include a PHP file inside a Smarty template? 1, I create the PHP file, it works fine 2, Empty TPL file except for {include_php file="path and filename of PHP file"} 3, main page Code: <?
session_start();
//includes
require("includes/globals.php");
//assign smarty variables
$smarty->assign("page_title","title");
$smarty->assign("page_content","TPL file with PHP include");
$smarty->display("template.tpl");
?> Warning: Smarty error: pathandfilename.php is not readable in /home/name/public_html/smarty/libs/Smarty.class.php on line 1095 Any ideas anyone? Thanks Admin
__________________ Domain Appraisal | Domain Escrow Service | UK Appliances | Surrey Deals | Domain Auctions from Acorn Domains Subscribe to our Domains For Sale newsletter :: Submit a Domain For Sale to our newsletter :: Domains For Sale |
| |
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Domain Name Community | Replies | Last Post |
| review template (WP theme, html / php template) | seanc | Wordpress | 2 | 20-06-2007 03:58:21 PM |
| Template - How Do You Value Yours? | retired_member6 | NameDrive | 2 | 24-11-2006 02:29:28 PM |
| SSI or PHP include? | purg | Search Engine Optimisation | 4 | 10-11-2006 08:44:57 PM |