Content marketing is one of the most effective lead generation methods — small businesses with blogs get 126% more lead growth than small businesses without. And keyword research has long been necessary to rank well, bring new vi
If you have ever tried to use the weight based shipping option in Opencart, chances are your customer saw this warning at checkout: "opencart Warning: No Shipping options are available".
When you select weight based shipping option is Opencart, th
There will be a time when a project will necessitate the creation of different levels of ADMIN or GROUP LEVEL: administrator, editor, member etc.
First, create a table and name it groups with two columns: id and title.
CREATE TABLE IF NOT EXI
The Easy Blog Simple blog system created for OpenCart Ecommerce platform is wonderful and easy to install. However, the free version does not come with friendly SEO urls.
Here is a step by step method to achieve this.
1. Create a function in /a
A neat trick in creating seo friendly url in cakephp is to just create a few lines of regex code to clean the data before it is saved. However, you want to perform this task only when you are adding new articles NOT on edit
public function befor
There are those moments when as a web developer you will not have access to PHPMyAdmin or access to shell (to build SCHEMA), but critical modification to the database structure and table is needed. Here are some examples of adding and modifying datab
Here are three examples of using regex on cakephp mysql select statement
Include Numbers $this->set('subdivisions', $this->Hsv->find('all', [ 'fields' => array('Subdivision'), 'conditions' => [ 'City' => $homes['Hsv']['City']
Apart from saving user activities in cakePHP beforeSave, you can also save activities in the controller of which you would like to monitor any change in data. Here is a simple code to do just that. But first, create a mysql table 'user_activities'.
There are times when you will like to save user activities to get an idea as to who is doing what. You might not want to use a plugin like luggable. Here is a simple way to do it using the beforeSave function.
public function beforeSave($options
If you want to force certain of your cakePHP webpages to be https and others http, or to use https for logged in users and http for non users, here is a simple script to do just that
// add this function to your appController. When the user is not