Problem About While Editing An Order...

I coded an addon by “using pre_place_order” that saves terms in a file while the customer placing an order. But when I want to edit an order at admin, it gives blank page error when I push “save” order button. I realized that the problem is based on this line:



$termstpl = Registry::get('view')->fetch('views/checkout/components/terms_and_conditions.tpl');




When I remove the line by getting in comment, the problem is disappering. I can edit the order.



What is wrong with this line or code?

I found that the problem is based on path on the line.



Isee the error in php file: PHP Fatal error: Uncaught → Smarty: Unable to load template tygh…



SOLVED.