Oxid6 - EXCEPTION SYSTEMCOMPONENT TEMPLATENOTFOUND

Hi,
I am getting this issue “[message EXCEPTION_SYSTEMCOMPONENT_TEMPLATENOTFOUND filename.tpl]” for overriding the ThankYouController.php. Please any one help me. How to solve the issue.

how you want to override this *.tpl file? with module or from template
p.s paste some code

I need to override the “ThankYouController.php” module file and template “thankyou.tpl” both files.

The error message speaks of “filename.tpl”. You say, it’s “thankyou.tpl”. Is the template file set correctly in your controller?

Yep. Still: pls paste some code :wink:

I configured the template file in my controller ThankYouController

“protected $_sThisTemplate = ‘/views/blocks/page/checkout/filename.tpl’;”

Did you add this in template area in metadata.php?

Yes, I add below mentioned code in metadata.php file,

‘blocks’ = array(
array(
‘template’ => ‘page/checkout/thankyou.tpl’,
‘block’ => ‘checkout_thankyou_proceed’,
‘file’ => ‘/views/blocks/page/checkout/filename.tpl’
),
),

Templates are not blocks. There is a template section in metadata.

https://docs.oxid-esales.com/developer/en/6.0/modules/skeleton/metadataphp/index.html?highlight=metadata