powered by Slim Framework
enhanced by Nesbot.com

CakePHP: Using the JsHelper to submit a form with AJAX

Published on Oct 31, 2011 by Jamie Munro

The JsHelper in CakePHP 1.3 has replaced the AjaxHelper from CakePHP 1.2. I recently tried to implement the JsHelper without very much success; perhaps if I would have read the documentation more closely it would have been quite obvious what my mistake was. So in case you're like me and often skim over long documentation of a helper when you just need one function (in my case $this->Js->submit()) then you can often miss very important information. This article will hopefully help clarify it.

Read more >

Tags: PHP | cakephp

CakePHP: Using the jQuery Sortable Plugin and Saving to the Database

Published on Sep 26, 2011 by Jamie Munro

It's time to permanently remove all "manual" sorting from the Internet. You know the one I mean where it has the up and down arrows or even worse, the text box that accepts a numerical order input. By implementing the jQuery Sortable Plugin, you will be able to provide a simple, but effective drag-and-drop ordering solution for just about any type of data!

Read more >

Tags: PHP | Javascript | cakephp | jquery

CakePHP: Login System using the Authentication Component

Published on Aug 25, 2011 by Jamie Munro

When you need to ensure that a user is both registered and logged in to view a specific action in your controller, CakePHP provides an Authentication component to help manage the process.

Read more >

Tags: PHP | cakephp

CakePHP: Scaffolding a new database table

Published on Aug 21, 2011 by Jamie Munro

With each new table you create in your database, you will typically need to create a model, controller, and one or more views to get started. CakePHP contains two solutions to get you started creating these files with minimal effort.

Read more >

Tags: PHP | cakephp