Cannot override Mini-Survey file

Permalink 1 user found helpful
I'm trying to override the minisurvey.php file for the legacy form block.

If I make the edits required to the core file they take effect, but if I copy mini_survey.php file from concrete/blocks/form to application/blocks/form it seems to be ignored.

Cacheing is off. Any ideas?

mrjcgoodwin
 
hutman replied on at Permalink Best Answer Reply
hutman
Did you update the namespace in the file when you copied it over?
mrjcgoodwin replied on at Permalink Reply
mrjcgoodwin
Oops no I hadn't.. I have now but it's still not working. I even tried put deliberate typos in the code to make it fall over, but nothing.

Just to check, the namespace should work as follows?
namespace Application\Block\Form;
hutman replied on at Permalink Reply
hutman
Yes, that is the correct namespace.
mrjcgoodwin replied on at Permalink Reply
mrjcgoodwin
Ah got it - I forgot to update the namespace in the template file too! Thanks Hutman... can you tell it's Friday afternoon :P