Add CKEditor to CakePHP with model validation

Yesterday I had a very frustrating issue implementing CKEditor (an awesome open-source WYSIWYG editor) in a CakePHP 2.3.2 installation. I thought the issue had something to do with CakePHP … ow boy, was I wrong 🙂

Continue reading Add CKEditor to CakePHP with model validation

CakePHP Basics Tutorial – Part 4

Overview

In this tutorial I will show you the power of associations in cakePHP.  With associations you can link up your models and get related data when you fetch results from one model.

In this example I’ll show you how to create an association between a User and a Product.

Continue reading CakePHP Basics Tutorial – Part 4

CakePHP Basics Tutorial – Part 3

Overview

In this tutorial I will show you how to create a login form which validates the user with the database and do some basic security to redirect people who try to access a protected page. I’ll go over Flash messages to show the user some information which will last for one request.

Continue reading CakePHP Basics Tutorial – Part 3

CakePHP Basics Tutorial – Part 2

Overview

In this tutorial I’ll show you in about 30 minutes how to create a html form with the built-in FormHelper of CakePHP which automatically links up to the database fields to see what kind of input field should be generated.  Further on we also check out the built-in validation options and how we can save our submitted form data to the database. And at the end I’ll explain how you can use CakePHP’s Model callback functions to put in our custom code before a CakePHP action.

Continue reading CakePHP Basics Tutorial – Part 2

CakePHP Basics Tutorial – Part 1

Overview

In this tutorial I’ll show you in about 30 minutes how to do a basic setup of CakePHP and read some data from the database without writing any SQL!  This will be an i-don’t-know-how-many-parts tutorial, but I’ll try to add every week a few until the basics are covered!

Continue reading CakePHP Basics Tutorial – Part 1