Follow

Tag: CakePHP

Schema Migration in CakePHP 3.x

Posted on April 17, 2017 by in PHP Solutions

Introduction

In this blog, we’re going to look at the purpose of the schema migration tool provided by CakePHP and the benefits of using it in our project(s).

What does it do

CakePHP provides a plugin called migration which is supported by the core team. This plugin is a wrapper for the database migrations library Phinx.

Using a migration file we can create or drop tables, add or remove columns, create indexes and even insert data into our database. A migration file contains PHP script which handles our schema.

Common mistakes while working with CakePHP index page views

Posted on February 3, 2017 by in PHP Solutions

At some point of time as developers, we all go through a situation where we have a short deadline and a hand-full of work. In such situations if we are working with CakePHP index views, this blog may help you avoid some common mistakes. For this tutorial, we are targetting CakePHP 2 and CakePHP 3.

Prerequisite

  • Knowledge on CakePHP views