maxudaskin Posted March 29, 2016 Share Posted March 29, 2016 Hi guys, I'm customizing an OpenCart template that is riddled with programming bugs. It is MVC and I am having a really odd issue with a controller file. The template that I want to use is not loading. I have edited the one in the selected template and also the default, but no avail. I was troubleshooting why it wasn't working and I came to the conclusion that either I am completely blind or stupid, or PHP is all of a sudden a troll. Please let me know if you need more context, but here is a snippet of the code and the result. I am really at a loss right now. Result: 14 Code: echo "1"; if (file_exists(DIR_TEMPLATE . $this->config->get('config_template') . '/template/product/category.tpl')) { echo "2";die(); $this->response->setOutput($this->load->view($this->config->get('config_template') . '/template/product/category.tpl', $data)); } else { echo "3";die(); $this->response->setOutput($this->load->view('default/template/product/category.tpl', $data)); } echo "4";die(); Quote Link to comment Share on other sites More sharing options...
maxudaskin Posted March 29, 2016 Author Share Posted March 29, 2016 Turns out OpenCart has been modifying the source and adding an additional } that is creating a syntax error. Off to find the root of this issue. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.