We build custom web applications
to grow your business.

How to change cakephp pagination to bootstrap pagination

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

Untold Secrets: How To Double Your Customer Base With A SuccessfulInstagram Contest

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

Using Jpgraph with Cakephp

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

cakePHP authorize.net plugin for a custom shopping cart: Installed in 5 minutes

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

4 ways to fix cakePHP column or table field not showing in query

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

Cakephp admin only image upload option in Ckeditor Form

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

Installing cakePHP 3.0 on xampp using composer

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

How to create Multi-level navigational menu with CakePHP

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

CakePHP tips and tricks

// 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

cakePHP text message and email function in appcontroller

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

Baking with cakePHP 3.0 in xampp

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 save in foreach loop

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'] =

Simple Cakephp function to force https SSL without using security component

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

Saving User Activities in cakePHP beforeSave function

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

Saving users activity in cakePHP controller

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'.

Using regex on cakephp select statement

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']

Adding and modifying MYSQL Tables in any CAKEPHP controller - NO PHPMyAdmin or Shell Access

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

Create clean seo friendly urls in cakephp beforeSave function

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

How to Create SEO Friendly URLS in Opencart 2 Easy Blog Simple Blog Model

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

Setting different admin group user privileges in Cakephp

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

Page 3 of 4, showing 20 record(s) out of 61 total