Cakephp has a really reliable pagination system. However, somethings you may desire to style you pagination a little differently, perhaps with some bootstrap markup. Here are some simple steps you can follow to change your cakephp pagination to a boo
Every brand is trying different ways to promote its product on Instagram, which is the fastest growing social networking site in the world. If Instagram marketing is a part of your online campaign, then you should try this - launch contests on Instag
If you are looking for a graph, math or geometry plugin for Cakephp, then Jpgraphs is a great option. First, download Jpgraphs. Create a folder in your app/vendor directory called jpgraph and upload the contents of src folder into it. In the co
Authorize.net is one of the most respected payment systems on the web and if you feel for an upgrade from paypal, it is one of the best alternative. So here is a quick way to create an authorize.net plugin for your cakePHP website. 1. Create a mys
It is the simple things that sometimes consume most of you time on certain projects. It can be quite irritating trying to figure out why a simple issue like why a field that is clearly in the mysql table does not show up in the results of a simple qu
There are times when both admin and regular users will use the same form; for example, in a blog post comment form. Due to securities concerns admin may want access to image upload or other ckeditor plugin on the form, but concurrently prevent reg
Here is a quick way to install cakePHP in xampp using composer Download cakePHP 3.0 Log in to the shell of xampp Change directory to htdocs # cd htdocs Install composer to your xampp # php -r "readfile('https://getcomposer.org/insta
Here is a simple way to create a multi-level navigational menu in cakePHP. First create a mysql table: CREATE TABLE IF NOT EXISTS `menus` ( `id` int(11) NOT NULL, `title` varchar(150) DEFAULT NULL, `title_slug` varchar(170) DEFAULT NULL, `c
// CREATE SLUG Inflector::pluralize($singular) other purposes: camelize, underscore, humanize, tablesize, classify, variable, slug // HTTP REQUEST App::uses('HttpSocket', 'Network/Http'); $HttpSocket = new HttpSocket(); // STRING QUERY GET
If you are using your application or website to send emails or text messages from different controllers, it would be easier for you to set this up just once in the appcontroller and then call these function from any controller. In your appcontroll
If you work with cakePHP you will realize that there are some differences between the 2.0 and 3.0 and a small learning curve. Here are the simple steps to baking with cakephp 3.0 IN Xampp Get to the command prompt via xampp control panel Do
CakePHP will only save one record if save in a foreach loop or do while loop is not done properly. The CREATE function and an UNSET should be call before and after each loop iteration foreach($parlar as $par){ $this->request->data['Winner'] =
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
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
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'.
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[0]['Hsv']['City']
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
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
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
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