This is the URL for accessing the controller:
https://www.testsystem.com/index.php?ro ... tcode/test
Here is the output of the controller:
Hello World The view goes here
The location of the controller: catalog/language/en-gb/testcode
Here is the code for the controller
Code: Select all
<?php
class ControllerTestcodeTest extends Controller{
public function index()
{
// set the heading_title of the module
$this->data['heading_title'] = $this->language->get('heading_title');
echo 'Hello World ';
echo 'The view goes here';
//$this->load->view('testcode/test', $data);
//$this->response->setOutput($this->load->view('testcode/test', $data));
$this->render(); // renders the output
exit;
}
}
?>
Here is the view code:
Code: Select all
<div class="testcode">
<h2>IT WORKED IT WORKED!</h2>
<p>Hey Some text showed up in this paragraph</p>
</div>
Code: Select all
<?php
// Heading
$_['heading_title'] = 'Test Code Test Title';
?>
Now for the kicker the error log from opencart
Code: Select all
2018-09-05 0:23:43 - PHP Warning: Illegal string offset 'code' in /home/testsys/public_html/catalog/controller/event/language.php on line 6
2018-09-05 0:23:43 - PHP Warning: Illegal string offset 'direction' in /home/testsys/public_html/catalog/controller/event/language.php on line 6
2018-09-05 0:23:43 - PHP Warning: Illegal string offset 'date_format_short' in /home/testsys/public_html/catalog/controller/event/language.php on line 6
2018-09-05 0:23:43 - PHP Warning: Illegal string offset 'date_format_long' in /home/testsys/public_html/catalog/controller/event/language.php on line 6
2018-09-05 0:23:43 - PHP Warning: Illegal string offset 'time_format' in /home/testsys/public_html/catalog/controller/event/language.php on line 6
2018-09-05 0:23:43 - PHP Warning: Illegal string offset 'datetime_format' in /home/testsys/public_html/catalog/controller/event/language.php on line 6
2018-09-05 0:23:43 - PHP Warning: Illegal string offset 'decimal_point' in /home/testsys/public_html/catalog/controller/event/language.php on line 6
2018-09-05 0:23:43 - PHP Warning: Illegal string offset 'thousand_point' in /home/testsys/public_html/catalog/controller/event/language.php on line 6
2018-09-05 0:23:43 - PHP Warning: Illegal string offset 'text_home' in /home/testsys/public_html/catalog/controller/event/language.php on line 6
2018-09-05 0:23:43 - PHP Warning: Illegal string offset 'text_yes' in /home/testsys/public_html/catalog/controller/event/language.php on line 6
2018-09-05 0:23:43 - PHP Warning: Illegal string offset 'text_no' in /home/testsys/public_html/catalog/controller/event/language.php on line 6
2018-09-05 0:23:43 - PHP Warning: Illegal string offset 'text_none' in /home/testsys/public_html/catalog/controller/event/language.php on line 6
2018-09-05 0:23:43 - PHP Warning: Illegal string offset 'text_select' in /home/testsys/public_html/catalog/controller/event/language.php on line 6
2018-09-05 0:23:43 - PHP Warning: Illegal string offset 'text_all_zones' in /home/testsys/public_html/catalog/controller/event/language.php on line 6
2018-09-05 0:23:43 - PHP Warning: Illegal string offset 'text_pagination' in /home/testsys/public_html/catalog/controller/event/language.php on line 6
2018-09-05 0:23:43 - PHP Warning: Illegal string offset 'text_loading' in /home/testsys/public_html/catalog/controller/event/language.php on line 6
2018-09-05 0:23:43 - PHP Warning: Illegal string offset 'text_no_results' in /home/testsys/public_html/catalog/controller/event/language.php on line 6
2018-09-05 0:23:43 - PHP Warning: Illegal string offset 'button_address_add' in /home/testsys/public_html/catalog/controller/event/language.php on line 6
2018-09-05 0:23:43 - PHP Warning: Illegal string offset 'button_back' in /home/testsys/public_html/catalog/controller/event/language.php on line 6
2018-09-05 0:23:43 - PHP Warning: Illegal string offset 'button_continue' in /home/testsys/public_html/catalog/controller/event/language.php on line 6
2018-09-05 0:23:43 - PHP Warning: Illegal string offset 'button_cart' in /home/testsys/public_html/catalog/controller/event/language.php on line 6
2018-09-05 0:23:43 - PHP Warning: Illegal string offset 'button_cancel' in /home/testsys/public_html/catalog/controller/event/language.php on line 6
2018-09-05 0:23:43 - PHP Warning: Illegal string offset 'button_compare' in /home/testsys/public_html/catalog/controller/event/language.php on line 6
2018-09-05 0:23:43 - PHP Warning: Illegal string offset 'button_wishlist' in /home/testsys/public_html/catalog/controller/event/language.php on line 6
2018-09-05 0:23:43 - PHP Warning: Illegal string offset 'button_checkout' in /home/testsys/public_html/catalog/controller/event/language.php on line 6
2018-09-05 0:23:43 - PHP Warning: Illegal string offset 'button_confirm' in /home/testsys/public_html/catalog/controller/event/language.php on line 6
2018-09-05 0:23:43 - PHP Warning: Illegal string offset 'button_coupon' in /home/testsys/public_html/catalog/controller/event/language.php on line 6
2018-09-05 0:23:43 - PHP Warning: Illegal string offset 'button_delete' in /home/testsys/public_html/catalog/controller/event/language.php on line 6
2018-09-05 0:23:43 - PHP Warning: Illegal string offset 'button_download' in /home/testsys/public_html/catalog/controller/event/language.php on line 6
2018-09-05 0:23:43 - PHP Warning: Illegal string offset 'button_edit' in /home/testsys/public_html/catalog/controller/event/language.php on line 6
2018-09-05 0:23:43 - PHP Warning: Illegal string offset 'button_filter' in /home/testsys/public_html/catalog/controller/event/language.php on line 6
2018-09-05 0:23:43 - PHP Warning: Illegal string offset 'button_new_address' in /home/testsys/public_html/catalog/controller/event/language.php on line 6
2018-09-05 0:23:43 - PHP Warning: Illegal string offset 'button_change_address' in /home/testsys/public_html/catalog/controller/event/language.php on line 6
2018-09-05 0:23:43 - PHP Warning: Illegal string offset 'button_reviews' in /home/testsys/public_html/catalog/controller/event/language.php on line 6
2018-09-05 0:23:43 - PHP Warning: Illegal string offset 'button_write' in /home/testsys/public_html/catalog/controller/event/language.php on line 6
2018-09-05 0:23:43 - PHP Warning: Illegal string offset 'button_login' in /home/testsys/public_html/catalog/controller/event/language.php on line 6
2018-09-05 0:23:43 - PHP Warning: Illegal string offset 'button_update' in /home/testsys/public_html/catalog/controller/event/language.php on line 6
2018-09-05 0:23:43 - PHP Warning: Illegal string offset 'button_remove' in /home/testsys/public_html/catalog/controller/event/language.php on line 6
2018-09-05 0:23:43 - PHP Warning: Illegal string offset 'button_reorder' in /home/testsys/public_html/catalog/controller/event/language.php on line 6
2018-09-05 0:23:43 - PHP Warning: Illegal string offset 'button_return' in /home/testsys/public_html/catalog/controller/event/language.php on line 6
2018-09-05 0:23:43 - PHP Warning: Illegal string offset 'button_shopping' in /home/testsys/public_html/catalog/controller/event/language.php on line 6
2018-09-05 0:23:43 - PHP Warning: Illegal string offset 'button_search' in /home/testsys/public_html/catalog/controller/event/language.php on line 6
2018-09-05 0:23:43 - PHP Warning: Illegal string offset 'button_shipping' in /home/testsys/public_html/catalog/controller/event/language.php on line 6
2018-09-05 0:23:43 - PHP Warning: Illegal string offset 'button_submit' in /home/testsys/public_html/catalog/controller/event/language.php on line 6
2018-09-05 0:23:43 - PHP Warning: Illegal string offset 'button_guest' in /home/testsys/public_html/catalog/controller/event/language.php on line 6
2018-09-05 0:23:43 - PHP Warning: Illegal string offset 'button_view' in /home/testsys/public_html/catalog/controller/event/language.php on line 6
2018-09-05 0:23:43 - PHP Warning: Illegal string offset 'button_voucher' in /home/testsys/public_html/catalog/controller/event/language.php on line 6
2018-09-05 0:23:43 - PHP Warning: Illegal string offset 'button_upload' in /home/testsys/public_html/catalog/controller/event/language.php on line 6
2018-09-05 0:23:43 - PHP Warning: Illegal string offset 'button_reward' in /home/testsys/public_html/catalog/controller/event/language.php on line 6
2018-09-05 0:23:43 - PHP Warning: Illegal string offset 'button_quote' in /home/testsys/public_html/catalog/controller/event/language.php on line 6
2018-09-05 0:23:43 - PHP Warning: Illegal string offset 'button_list' in /home/testsys/public_html/catalog/controller/event/language.php on line 6
2018-09-05 0:23:43 - PHP Warning: Illegal string offset 'button_grid' in /home/testsys/public_html/catalog/controller/event/language.php on line 6
2018-09-05 0:23:43 - PHP Warning: Illegal string offset 'button_map' in /home/testsys/public_html/catalog/controller/event/language.php on line 6
2018-09-05 0:23:43 - PHP Warning: Illegal string offset 'error_exception' in /home/testsys/public_html/catalog/controller/event/language.php on line 6
2018-09-05 0:23:43 - PHP Warning: Illegal string offset 'error_upload_1' in /home/testsys/public_html/catalog/controller/event/language.php on line 6
2018-09-05 0:23:43 - PHP Warning: Illegal string offset 'error_upload_2' in /home/testsys/public_html/catalog/controller/event/language.php on line 6
2018-09-05 0:23:43 - PHP Warning: Illegal string offset 'error_upload_3' in /home/testsys/public_html/catalog/controller/event/language.php on line 6
2018-09-05 0:23:43 - PHP Warning: Illegal string offset 'error_upload_4' in /home/testsys/public_html/catalog/controller/event/language.php on line 6
2018-09-05 0:23:43 - PHP Warning: Illegal string offset 'error_upload_6' in /home/testsys/public_html/catalog/controller/event/language.php on line 6
2018-09-05 0:23:43 - PHP Warning: Illegal string offset 'error_upload_7' in /home/testsys/public_html/catalog/controller/event/language.php on line 6
2018-09-05 0:23:43 - PHP Warning: Illegal string offset 'error_upload_8' in /home/testsys/public_html/catalog/controller/event/language.php on line 6
2018-09-05 0:23:43 - PHP Warning: Illegal string offset 'error_upload_999' in /home/testsys/public_html/catalog/controller/event/language.php on line 6
2018-09-05 0:23:43 - PHP Warning: Illegal string offset 'error_curl' in /home/testsys/public_html/catalog/controller/event/language.php on line 6
2018-09-05 0:23:43 - PHP Warning: Illegal string offset 'datepicker' in /home/testsys/public_html/catalog/controller/event/language.php on line 6
2018-09-05 0:23:43 - PHP Warning: Illegal string offset 'backup' in /home/testsys/public_html/catalog/controller/event/language.php on line 6
2018-09-05 0:23:43 - PHP Notice: Array to string conversion in /home/testsys/public_html/catalog/controller/event/language.php on line 6
2018-09-05 0:23:43 - PHP Warning: Invalid argument supplied for foreach() in /home/testsys/public_html/system/engine/loader.php on line 121