Override files

Permalink
Hi
I need a bit of help.
I have made some modifikations to three files, and it works fine when they are in their original folders. When I move them to an override directory only the last one is working.
The files are:
concrete/core/controllers/blocks/form.php
concrete/core/controllers/single_pages/dashboard/reports/forms.php

concrete/single_pages/dashboard/reports/forms.php

I have created new folders in the root like this:
core/controllers/blocks/form.php
core/controllers/single_pages/dashboard/reports/forms.php
This one works fine.
single_pages/dashboard/reports/forms.php

I have just copied the php files, but do I need to include something..

Bob

 
JohntheFish replied on at Permalink Reply
JohntheFish
Concrete wont let you override anything inside /core/.

Instead, you override the files that inherit from the /core/ classes.
This has the advantage (compared to pre 5.6 versions) that you can inherit/extend the actual /core/ classes within your overrides rather than needing to completely replace them.

There are details in this howto:

http://www.concrete5.org/documentation/how-tos/developers/overridin...
Bob64 replied on at Permalink Reply
Thanks..
One more thing, can´t figure it out from the how to. Where do I put the two php files?
JohntheFish replied on at Permalink Reply
JohntheFish
The root equivalent of the concrete path (not the concrete core path):

controllers/blocks/form.php
controllers/single_pages/dashboard/reports/forms.php
single_pages/dashboard/reports/forms.php
Bob64 replied on at Permalink Reply
Thanks
Il´l give it a try..