View RSS Feed

Code Tips

  1. Is your ZC plugin ready for PHP 7?

    by , 8 Feb 2017 at 12:06 AM (Behind The Code, with DrByte)
    NOTE: This post has been relocated to: https://docs.zen-cart.com/dev/code/p..._deprecations/


    This the 3rd in a series about readying your plugins for PHP 5.3, and for PHP 5.4, 5.5 and 5.6.

    NOTE: This post assumes some pretty solid PHP knowledge, because all the changes listed will require adapting your code to find a new way to do whatever it was doing before.

    NOTE: This is not the complete official list of changes. I've edited this list down ...
    Categories
    Code Tips , Best Practices
  2. Is your plugin code safe for PHP 5.4 and 5.5 and 5.6?

    by , 30 Mar 2014 at 04:55 AM (Behind The Code, with DrByte)
    This is a follow-up post to my previous post about readying your plugins for PHP 5.3, this time addressing PHP 5.4, 5.5 and 5.6. Also check out the next one: for PHP 7.0, 7.1, 7.2, 7.3

    NOTE: This post assumes some pretty solid PHP knowledge, because all the changes listed will require adapting your code to find a new way to do whatever it was doing before.

    NOTE: This is not the complete official list of changes. I've edited this list down to the basics, catering mostly ...
    Categories
    Code Tips
  3. Creating an Observer Class: send a specialized additional email during Create Account

    by , 7 Sep 2012 at 04:42 AM (Behind The Code, with DrByte)
    Note: This post has been relocated to: https://docs.zen-cart.com/dev/code/o...ation-example/
    Categories
    Code Tips , Best Practices
  4. Is your plugin code safe to use on PHP 5.3?

    by , 2 Sep 2012 at 10:04 PM (Behind The Code, with DrByte)
    (Also see the posts about readiness for PHP 5.4 and 5.5 and 5.6 and readiness for PHP 7.0, 7.1, 7.2, 7.3 )

    When PHP 5.3 was released, some older features were retired (some removed, some "deprecated", etc).

    And if your custom code or your addons/plugins are using those features, things will break and you'll encounter the dreaded "white screen of death".

    What do you need to change?

    Here's the list I generally follow, along with ...
    Categories
    Code Tips
disjunctive-egg