Using error_reporting() in Zen cart

2.1k views Asked by At

I am working in Zen Cart and I have some errors in different pages. I want to use error_reporting(0).

How and in which page can I use this?

Could anybody please help me?

2

There are 2 answers

0
Scott C Wilson On BEST ANSWER

Zen cart has a built in way to make it easy to do error reporting.

Create a directory at the top of your cart called includes/local. In this directory, put a file called configure.php. In this file, put

<?php
   define('STRICT_ERROR_REPORTING', true);
   ?>

you will then see the php errors your code generates.

1
Paresh Behede On

you can just write error_reporting(E_ALL) for displaying all errors + notices + warnings...