muchos Posted April 27, 2007 Share Posted April 27, 2007 Ok.. so i have come to a stage where I have a design... I need to integrate WHMCS which method is better using PHP include in the blank area or code around the current templates ? 0 Quote Link to comment Share on other sites More sharing options...
trine Posted April 27, 2007 Share Posted April 27, 2007 If you can, use the templates and use smarty without using php includes. Use smarty plugins for performing php actions. Plus that allows you to reuse the plugs elsewhere, if constructed well. if you need to use includes for page blocks, menus, headers and footers, you can use: {include file='filename.tpl'} instead of: {php}include_once("filename.php");{/php} (using php in your smarty templates is never the ideal, if you can avoid it. Why? because poorly coded php can lead to xss or sql injections, or if the template can be read, may divulge sensitive info.) 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.