Posted March 30Mar 30 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.
March 30Mar 30 6 hours ago, The Britain said: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.
March 30Mar 30 Author 4 hours ago, Ibai said: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.
March 30Mar 30 Author 20 minutes ago, opentype said: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?
March 31Mar 31 17 hours ago, The Britain said: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
March 31Mar 31 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.
July 7Jul 7 Can someone confirm if this basic{{$var="true";}}{if $var} //html{else} //html{endif}situation still works?While we migrated from PHP blocks now in preparation for v5, I still heavily use these in all of my pages...