Welcome to MVCForge!
A social news site written by programmers for programmers who build applications using MVC Frameworks like CodeIgniter, CakePHP, Ruby on rails, Django and more.

cakephp

17

Pagination menu for CakePHP

http://foldifoldi.com

In this article, foldifoldi, will teach us how to create a paginated directory page where people could browse via an alphabetical menu. So clicking ‘A’ returns all entries that begin with ‘A’, ‘B’ with ‘B’ and so on. CakePHP’s Paginator Helper made this all very easy.

More »
cakejosh's picture
Created by cakejosh 48 weeks 2 days ago – Made popular 48 weeks 1 day ago
Category: cakephp   Tags:
1

Pre-populating form values in Cakephp

http://www.milesj.me

When I first started using CakePHP, I couldn't find a way to pre-populate a form with data. Why would I need this you ask? Well its simple, it would be used to edit something already existent. So what I need to do is grab the data from the database, and then populate the form.

More »
frayo's picture
Created by frayo 48 weeks 5 days ago
Category: cakephp   Tags:
1

Limit the fields you return in CakePHP

http://richardeyre.me.uk

Whenever you use CakePHP’s find('first') or find('all') methods, it will return the data you have asked for. However, you may find that they return more data than you need. Check it out how to limit data transfer in CakePHP.

More »
jayr's picture
Created by jayr 50 weeks 9 hours ago
Category: cakephp   Tags:
1

Edit view mysteriously changing to Add on Save validation failure

http://sabbour.wordpress.com

When youre editing a model, then saving it. For some reason, the form action was changing from /controller/edit/1 to
/controller/add. Check it out solution for this problem.

More »
jayr's picture
Created by jayr 50 weeks 9 hours ago
Category: cakephp   Tags:
17

Installing Prototype/Scriptaculous into your CakePHP

http://www.liquidbass.de

You wanted to install the prototype framework with the scriptaculous effects to my cakePHP Application, but after uploading the prototype files into the webroot/js folder and linking them in the layout, i got a failure message like "Undefined variable: javascript".

More »
muradin's picture
Created by muradin 50 weeks 5 days ago – Made popular 50 weeks 4 days ago
Category: cakephp   Tags:
18

8 Ways to Speed Up CakePHP Apps

http://www.pseudocoder.com

We all know that Cakephp is slow compared to Codeigniter. But in this article, Matt will show to us the 8 ways to speed up our cakephp applications.

More »
blassreiter's picture
Created by blassreiter 50 weeks 5 days ago – Made popular 50 weeks 4 days ago
Category: cakephp   Tags:
5

AJAX Select box in CakePHP

http://www.endyourif.com

Discover how to utilize CakePHP's helpers to update a select box via AJAX when a select box is changed.

More »
endyourif's picture
Created by endyourif 50 weeks 6 days ago – Made popular 50 weeks 5 days ago
Category: cakephp   Tags:
17

Custom routing in CakePHP

http://quainttech.blogspot.com

First of all, there is CakePHP's CAKE_ADMIN config setting. This is a routing solution that allows a function called: index() in controller: users to be accessed like this: /admin/users/index. All you need to do is rename the method to: admin_index() and set the CAKE_ADMIN variable to 'admin'. This seemed like a nice solution, but frankly it wasn't.

More »
brainw's picture
Created by brainw 50 weeks 6 days ago – Made popular 50 weeks 5 days ago
Category: cakephp   Tags:
8

Keeping your CakePHP Controllers Clean

http://www.endyourif.com

My goal is to make every function in our controllers under 20 lines of code. It might sound ambitious, but I think it is completely feasable.

More »
endyourif's picture
Created by endyourif 51 weeks 51 min ago – Made popular 50 weeks 5 days ago
Category: cakephp   Tags:

Best published articles