Today we will run that how to register own library in Opencart 2.2.0.0. As we know library files are very help full at the time coding because if we use a function so many times at different place then we prefer the library files so we should use a library file for common functions. So for this we have to register our own library file. So for this we have to write some code in the front.php file which is placed under system/engine .
Here I have registered my own library file named test.php presents under library cart folder. And we can also register library file on both admin and catalog folders startup.php file.
so it is better to register a library file always in front.php file.
Be the first to comment.