Follow @endyourif rss Facebook LinkedIn

Using the JsHelper in CakePHP to submit a form with AJAX

Published on Mar 10, 2019

The JsHelper in CakePHP 2.x has replaced the AjaxHelper from CakePHP 1.x. 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.

Using the JsHelper in CakePHP to submit a form with AJAX

Published on Mar 10, 2019

The JsHelper in CakePHP 2.x has replaced the AjaxHelper from CakePHP 1.x. 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.

Using CakePHP to scaffold a new database table

Published on Mar 5, 2019

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.

Scaffolding allows an application to perform the following four scenarios, known as CRUD: Create, Retrieve, Update, and Delete.

In CakePHP, scaffolding can be done in two different ways. The first way is extremely simple, but doesn’t provide the ability to customize easily. The second way requires a bit of setup time; however, once done, you have full control over customizing any aspect of things.

Using CakePHP to scaffold a new database table

Published on Mar 5, 2019

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.

Scaffolding allows an application to perform the following four scenarios, known as CRUD: Create, Retrieve, Update, and Delete.

In CakePHP, scaffolding can be done in two different ways. The first way is extremely simple, but doesn’t provide the ability to customize easily. The second way requires a bit of setup time; however, once done, you have full control over customizing any aspect of things.

Using CakePHP with the jQuery Sortable Plugin

Published on Mar 4, 2019

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!

In a recent article, I described the required HTML and Javascript code need to implement the jQuery Sortable Plugin on a gallery of images. If you haven't already done so, please begin by reading this article because this one will gloss over those features and focus on how to implement this with CakePHP.

Using CakePHP with the jQuery Sortable Plugin

Published on Mar 4, 2019

Cannot find module (SNMPv2-TC)

Published on Feb 18, 2019

Setting Up CakePHP with IIS

Published on Jun 11, 2013

Setting Up CakePHP with IIS

Published on Jun 11, 2013

Implementing the Repository Pattern with CakePHP

Published on Jun 3, 2013

Implementing the Repository Pattern with CakePHP

Published on Jun 3, 2013

Changes to Model:find('first') in CakePHP 2.3

Published on Jan 30, 2013

Changes to Model:find('first') in CakePHP 2.3

Published on Jan 30, 2013

Recent Guest Posts on PHPMaster.com

Published on Jan 7, 2013

Recent Guest Posts on PHPMaster.com

Published on Jan 7, 2013

CakePHP Global Constants and Functions

Published on Sep 21, 2012

CakePHP Global Constants and Functions

Published on Sep 21, 2012

CakePHP Extending one View from Another

Published on Sep 20, 2012

CakePHP Extending one View from Another

Published on Sep 20, 2012

CakePHP 2.x Login System

Published on Sep 18, 2012

CakePHP 2.x Login System

Published on Sep 18, 2012

A Short Rant About Coding Conventions

Published on Sep 13, 2012

Are you having CakePHP and NGINX Rewrite Rule Issues?

Published on Sep 10, 2012

Are you having CakePHP and NGINX Rewrite Rule Issues?

Published on Sep 10, 2012

What I Learned This Summer

Published on Sep 7, 2012

CakePHP Version Comparison with PHP Version Comparison

Published on Jun 25, 2012

CakePHP Version Comparison with PHP Version Comparison

Published on Jun 25, 2012

Officially published my CakePHP Book

Published on May 19, 2011

Officially published my CakePHP Book

Published on May 19, 2011

CakePHP 1.2 VS 1.3 VS 2.0 Page Request Times

Published on Mar 7, 2011

CakePHP 1.2 VS 1.3 VS 2.0 Page Request Times

Published on Mar 7, 2011

AJAX Star Rating Plugin For CakePHP

Published on Mar 2, 2011

AJAX Star Rating Plugin For CakePHP

Published on Mar 2, 2011

CakePHP 2-0 Ajax Pagination WITHOUT The Pages

Published on Feb 28, 2011

CakePHP 2-0 Ajax Pagination WITHOUT The Pages

Published on Feb 28, 2011

CakePHP CSS Enhancements From 1.2 To 1.3

Published on Feb 23, 2011

CakePHP CSS Enhancements From 1.2 To 1.3

Published on Feb 23, 2011

Publishing an e-book on Smashwords

Published on Feb 7, 2011

Publishing an e-book on Smashwords

Published on Feb 7, 2011

Interesting CakePHP Bakery Components

Published on Feb 3, 2011

CakePHP 2.0 Rant Retraction

Published on Feb 1, 2011

CakePHP 2.0 Rant

Published on Jan 31, 2011

Using the TextHelper with CakePHP

Published on Jan 24, 2011

Using the TextHelper with CakePHP

Published on Jan 24, 2011

Modifying the CakePHP Bakery Templates

Published on Jan 3, 2011

Modifying the CakePHP Bakery Templates

Published on Jan 3, 2011

Maintaining the back button with AJAX

Published on Dec 28, 2010

Maintaining the back button with AJAX

Published on Dec 28, 2010

Optimizing CakePHP Websites

Published on Jan 20, 2010

Optimizing CakePHP Websites

Published on Jan 20, 2010

Adding SEO functionality

Published on Nov 15, 2009

Adding SEO functionality

Published on Nov 15, 2009

unbindModel and $this->paginate()

Published on Aug 20, 2009

unbindModel and $this->paginate()

Published on Aug 20, 2009

Photobucket, Photos, and You

Published on May 23, 2009

Facebook, Photos, and You!

Published on May 18, 2009

Caching Queries in CakePHP

Published on Apr 25, 2009

Custom pagination query in CakePHP

Published on Apr 13, 2009

3 Flaws to CakePHP's AuthComponent

Published on Apr 10, 2009

A friendly framework reminder

Published on Apr 1, 2009

A friendly framework reminder

Published on Apr 1, 2009

Unbind Model Validation in CakePHP

Published on Mar 28, 2009

Unbind Model Validation in CakePHP

Published on Mar 28, 2009

Login system with CakePHP in under 10 minutes

Published on Mar 23, 2009

Optimize your CSS and JS with CakePHP in minutes

Published on Mar 21, 2009

Optimize your CSS and JS with CakePHP in minutes

Published on Mar 21, 2009

Importance of using the CakePHP Helpers

Published on Mar 20, 2009

Importance of using the CakePHP Helpers

Published on Mar 20, 2009

Re-map key/value array data in PHP

Published on Mar 19, 2009

Re-map key/value array data in PHP

Published on Mar 19, 2009

When to use element() and when to requestAction()

Published on Mar 16, 2009

CakePHP Containable Statement Pitfalls

Published on Mar 15, 2009

CakePHP Containable Statement Pitfalls

Published on Mar 15, 2009

Keeping your CakePHP Controllers Clean

Published on Mar 14, 2009

Keeping your CakePHP Controllers Clean

Published on Mar 14, 2009

Drag and drop category management with CakePHP

Published on Mar 11, 2009

Drag and drop category management with CakePHP

Published on Mar 11, 2009

How to add comments with AJAX in CakePHP

Published on Mar 9, 2009

How to add comments with AJAX in CakePHP

Published on Mar 9, 2009

How to advance our CMS in CakePHP

Published on Mar 8, 2009

How to advance our CMS in CakePHP

Published on Mar 8, 2009

How to create a CMS with CakePHP

Published on Mar 7, 2009

How to create a CMS with CakePHP

Published on Mar 7, 2009

AJAX Select box in CakePHP

Published on Mar 6, 2009

AJAX Select box in CakePHP

Published on Mar 6, 2009

How to setup a route in CakePHP

Published on Mar 5, 2009

How to setup a route in CakePHP

Published on Mar 5, 2009

StringExtractComponent for CakePHP

Published on Feb 28, 2009

StringExtractComponent for CakePHP

Published on Feb 28, 2009

Why Frameworks Are Better

Published on Feb 17, 2009

Why Frameworks Are Better

Published on Feb 17, 2009