Jump to content

Modification to AddressController.php is simply ignored


cleoni

Recommended Posts

Hello,

I am trying to fix a bug (or at least, I think it is) in AddressController.php but my changes are simply ignored.

 

if I edit controllers/front/AddressController.php and insert a

 

die('halted');

 

or even a simple and plain syntax error in the file

 

just to see if my changes are taken into account, if I then open the registration screen of the shop, everything works normally. I would expect the site to halt somewhere instead.

 

Of course I have disabled the cache, tried to clear it with BO->Advanced->Performance [Clear Smarty Cache and Autoload Cache] but code it still doesn't halt.

 

I know I should use the "override" folder, but since every change is ignored, I thought to go straight to the core code.

 

I am using Presta 1.5.6.0... where I'm wrong?

 

Edited by cleoni (see edit history)
Link to comment
Share on other sites

Oh sorry I edited AddressController, I just  mistyped its name.

I have put die() in in the constructor. However, if there is a syntax error in the file I assume this should stop the whole execution as soon as the class is loaded... very strange it still works like a charm, isn't it?

 

Edited by cleoni (see edit history)
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...