Jump to content

Featured Replies

Posted

I have a notice in my panel that PHP Blocks in Pages will no longer be supported. We utilize these for important site functionality, how do we continue? Thank you for your time and assistance.

 

I have a notice in my panel that PHP Blocks in Pages will no longer be supported. We utilize these for important site functionality, how do we continue? Thank you for your time and assistance.

I think you can do this with HTML blocks. Using IPS format: {{$var="hello";}} and {$var} to show it.

  • Author
 

I think you can do this with HTML blocks. Using IPS format: {{$var="hello";}} and {$var} to show it.

Thank you, would this work for heavily utilized PHP? We have custom PHP applications that access custom mysqli databases.

  • Community Expert

Probably better to (have someone) create a custom app for your use.

  • Author
 

Probably better to (have someone) create a custom app for your use.

I would ideally prefer to keep using PHP blocks as redoing the work would be a tremendous lift for our little site. I assume there won't be a work-around for this depreciation?

  • Community Expert
 

I would ideally prefer to keep using PHP blocks as redoing the work would be a tremendous lift for our little site. I assume there won't be a work-around for this depreciation?

Yes, the workaround would be to create an application which adds those PHP blocks. To be honest, if its quite a lot of PHP you are using in custom blocks, you would be better with an application in any case. It will cause you less issues when things go wrong

  • Community Expert
  • Management

I know it's a little more work but using an application to create complex PHP widgets is a better option long term. Not only can you code these widgets in a proper IDE, you can use version control to rollback changes. In addition, the platform doesn't have to use eval to turn strings into PHP code on the fly which is fairly slow and not very secure.

It's a different way of working, but you can achieve the same outcome.

Recently Browsing 0

  • No registered users viewing this page.