Include php in tpl

Magnus J

No avatar

2006-03-13 17:19

Hi,
Do U know if there is a way to include php content i a .tpl page?
For instance a php site menu.

Magnus J

No avatar

2006-03-16 16:02

Please dudes... help me!?

treewood (OpenSolution)

Avatar: treewood

2006-03-16 16:35

Magnus J - it is possible only by <iframe scr="file.php"></iframe>

mirelesotelo

No avatar

2008-01-04 17:28

I am trying too.. =(

Manu64

Avatar: Manu64

2008-04-13 22:04

Hi
Sorry this iframe do not work

I want to insert a contact form with a link !!

help
TY

Manu

treewood (OpenSolution)

Avatar: treewood

2008-04-14 09:10

Manu64 - iframe didn't work? strange. maybe try this:
<iframe scr='file.php'></iframe>

nugroho

No avatar

2008-12-13 09:23

have anyone get succes with inserting php code in .tpl file ?

QC V3.XX

nugroho

No avatar

2008-12-13 11:54

how to modified tplparser.php so i can insert php code in tpl file. after looking around i though it is possible, it used other script like smarty.

Unfortunately i was blind about php programming ... can anyone help me?

i'm using qc v3.0

Arturro777

Avatar: Arturro777

2008-12-13 17:41

Hej guys. If you had searched this forum properly, you would have found the answer... It is possible to include the php code in QC 3.x. First of all you have to change in config/general.php line:
$config['embed_php'] = false; to:
$config['embed_php'] = true;
After that you just add php content to your .tpl file. I used include('file.php');

AK

treewood (OpenSolution)

Avatar: treewood

2008-12-15 07:54

arturro777 - please try this one:
http://opensolution.org/Quick.Cart/docs/?id=tips#how_to_execute_php_code_in_templates

etoh

No avatar

2009-04-06 07:46

is that working for QC v.2.x ?

etoh

Back to top
about us | contact