Tag Archives: views

Additional Alert Email Does Not Work in OpenCart 2.3.0.2

Even though we are still finding bug in Open Cart 2.3.0.2, it is still a far cry better than what we’ve seen from 3.x by far.

You may have noticed the “Additional Alert Email” field simply will not save in your OpenCart “Store Settings” editor. This is a result of the OC devs renaming the input field in 2.3.0.2 without changing the references everywhere else. Continue reading Additional Alert Email Does Not Work in OpenCart 2.3.0.2

CodeIgniter: Load View from Database (more or less)

I have seen a few people asking how to load a view from a database (or something other than a physical file in the “views” folder).

In my particular case, a client wants the ability to edit HTML and TEXT email templates. Without giving them direct access to editing the physical files, I decided to move the views being used for email to the database instead. Continue reading CodeIgniter: Load View from Database (more or less)

Easily load multiple views with CodeIgniter

It is not uncommon to load a common header, footer and other views in each controller. While this can be achieved like so…

$this->load->view('header', $header_data);
$this->load->view('content', $content_data);
$this->load->view('footer', $footer_data);

I wanted the ability to do the same thing with a single line of code. So I decided to extend the core Loader library by creating “application/core/MY_Loader.php” with the following code… Continue reading Easily load multiple views with CodeIgniter