login | register
Fri 19 of Mar, 2010 (07:45 UTC)

bitweaver - Web Application Framework and CMS

Web Application Framework and CMS

     
Get RSS Feed

PHP in blocks?

TheBouncyPherret
Reply to this PostReply with Quote to this Post

PHP in blocks?

Posted:Mon 09 of Feb, 2009 (04:34 UTC)
Is it possible to have PHP in blocks? I tried to make a custom block for the right side of my wiki, but the PHP was showing up as text, and not actually doing what I wanted it to do.

Any ideas?

TBP
Kozuch
Avatar
Joined: 06 Mar 2006
Reply to this PostReply with Quote to this Post

Re: PHP in blocks?

Posted:Mon 09 of Feb, 2009 (17:12 UTC)
"Blocks" in bitweaver language are "modules". However, I am not competent to give you an answer.
xing
Joined: 07 Mar 2004
Reply to this PostReply with Quote to this Post

Re: PHP in blocks?

Posted:Sun 15 of Feb, 2009 (07:23 UTC)
it is not possible to use the web interface to have php code evaluated. you will have to write your own module to achieve this. it's fairly simple.

all you need to do is create a couple of files in one of the module folders and that's it. if you look at kernel/modules/mod_powered_by.php and kernel/modules/mod_powered_by.tpl, you will get an idea of how to create your own php / smarty module.

x