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
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
Thanks..
One more thing, can´t figure it out from the how to. Where do I put the two php files?
One more thing, can´t figure it out from the how to. Where do I put the two php files?
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
controllers/blocks/form.php
controllers/single_pages/dashboard/reports/forms.php
single_pages/dashboard/reports/forms.php
Thanks
Il´l give it a try..
Il´l give it a try..
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...