Webistrate - Draw Your Own Conclusions

CakePHP: Using the JsHelper to submit a form with AJAX

Posted by Jamie Munro | October 31, 2011 | Tags:

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.

See the solution »

Share


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

Posted by Jamie Munro | September 26, 2011 | Tags: ,

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!

See the solution »

Share


CakePHP: Login System using the Authentication Component

Posted by Jamie Munro | August 25, 2011 | Tags:

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.

See the solution »

Share


CakePHP: Scaffolding a new database table

Posted by Jamie Munro | August 21, 2011 | Tags:

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.

See the solution »

Share


Buy one of my books