Hi I want to embed "linkex" in main.tpl file of my template. It is the code which needs to embed there <?php include( "linkex/data/output/1001" ); ?> Code (markup): It once succeed in putting Php code in main.tpl. But it does not produce the out put which is in data file /1001/. Please help me for this I shall be thank full to you
tpl files (smarty template) cannot execute PHP code within the file unless you wrap it with {PHP} ... {/PHP} (as opposed to <? ... ?>), also the include would be relative to the smarty loader in this case and not the template file.
thanks I do the same I succeed. This php code is included but the file does not show the output. in simple php page it shows output data.