Forums / Cotonti / General / how to connect php file to the page? (Genoa)

uznik73
#1 2012-01-29 08:01

I tried to find some plugin but have not found

Sorry for my poor English
pieter
#2 2012-01-29 08:22

What do you want to do?

You can just use INCLUDE

... can we help you ...
uznik73
#3 2012-01-29 08:42

i want connect my php file(or code) on to new page, not in .tpl files

Sorry for my poor English
esclkm
#4 2012-01-29 08:51

add it in themename.php

littledev.ru - мой маленький зарождающийся блог о котонти.
снижение стоимости программирования и снижение стоимости производства разные вещи. Первое можно скорее сравнить с раздачей работникам дешевых инструментов, чем со снижением зарплаты
uznik73
#5 2012-01-29 09:04

no, it does not fit, I probably badly explain. I want use php code or file like that

testst_1768.png

Sorry for my poor English
GHengeveld
#6 2012-01-29 12:35

What you want will introduce an enourmous security risk, so I highly recommend not to do it. In Siena this feature has been removed because of that. For Genoa, here's what you need:

  • In datas/config.php set $cfg['allowphp_override'] to TRUE
  • In page config, enable 'Allow the PHP page type'.

By the looks of your screenshot I think you're using Siena, in which case it's not possible without using a hack or a plugin of some sort.

Trustmaster
#7 2012-01-29 13:33

In addition to Gert's note about Genoa, you can't paste plain PHP code in WYSIWYG HTML editor, it will convert HTML entities.

May the Source be with you!
uznik73
#8 2012-01-29 22:53

thanks

Sorry for my poor English