Here is some idea in improving apache performance by adding some lines in the app/webroot/.htacces.
When trying to use the Amazon API, I read a lot about the Amazon rule of only being allowed to make 1 request a second or your web site would be refused access to Amazon if this was ignored too often.
So I set about solving the issue using CakePHP and ended up with a few classes that could be of use to others.
-
Published by Ratty 08/29/11 - 14:34
-
1234 views
If you're ever bothered by CakePHP's limited breadcrumbs support for displaying them use this to build your own!
-
Published by energoso 08/23/11 - 13:37
-
3463 views
Make Minify helper work with themed assets
-
Published by tpuglia 08/23/11 - 05:28
-
2008 views
I have posted a tutorial on how to use uploadify with cakephp on my blog you can it...
Password validation is very important for the tasks like resetting password.
here's a snippets by which you can check username availability in cakephp environment using jquery!
This article shows how to implement a generic and easy to use AJAX validator, which uses the regular model validation rules and works on-the-fly. It doesn't require even to touch a model.
This article assumes that you are using jQuery. You don't have to set validation rules for the validated fields, but if you have not, the validation will always succeed.
For this purpose, we'll make use of
- an additional helper AjaxValidator
- an additional helper ExtendedForm
- an additional component AjaxValidator
- one entry in the routing table
- one additional js-file
- app_controller
- if you wish, configuration using Configure()
- if you wish, css-files
Note: I have encountered side-effects in conjunction with the Analogue-Plugin, therefore I don't map ExtendedForm to Form. Thus, you have to switch to ExtendedForm as a Helper - there's no mapping layer.
-
Published by dispy 08/14/11 - 01:00
-
3376 views
Post/Redirect/Get (PRG) is a common design pattern for web developers to help avoid certain duplicate form submissions and allow user agents to behave more intuitively with bookmarks and the refresh button.
When a web form is submitted to a server through an HTTP POST request, a web user that attempts to refresh the server response in certain user agents can cause the contents of the original HTTP POST request to be resubmitted, possibly causing undesired results, such as a duplicate web purchase.
To avoid this problem, many web developers use the PRG pattern — instead of returning a web page directly, the POST operation returns a redirection command.
When using the cakePHP pagination helper, you will notice that it sends it's parameters by GET and they are available in the $this->params array. So you can't use this->data because all POST magic is lost when changing the page with the pagination helper.
A solution is to use the Post/Redirect/Get design pattern to redirect the POST data by GET to the current page.
-
Published by luciansabo 08/12/11 - 19:05
-
3709 views
I created this helper as an exercise to learn some more about JQuery and CakePHP. Although there is an AutoComplete available in CakePHP, it is in the Ajax helper which is deprecated. My version could use some cleanup still, but I would like to think someone may find it useful.
Updated to handle multiple autocomplete's on one page. I had to change the javascript to iterate through the autocomplete items and then added a specific tag to the drop down list so they could find the correct text input. Also prevented the js from being sourced twice (maybe Cake does that internally?) and updated the CSS to attach to the class and not the id.
-
Published by Matt 08/07/11 - 20:41
-
4522 views
I try to integrate Smarty in cakephp 2.0 rendering.
-
Published by skler 08/05/11 - 15:15
-
2637 views
Here is a way to hide links where users are not authorized.
Rights are cached in session.
-
Published by aalexgabi 07/27/11 - 14:00
-
3233 views
The CakePHP core team is proud to announce the immediate availability of CakePHP 1.3.11 and 2.0.0-beta.
-
Published by lorenzo 07/26/11 - 19:16
-
Featured
-
29187 views
NetBeans supports Symfony, Zend Studio supports Zend Framework, but no IDE has support for CakePHP, one of the most popular PHP frameworks. For me, a fan of CakePHP, it was really frustrating that I was not able to develop CakePHP applications as comfortably as other developers using different frameworks, so I decided to write NeptunIDE - a cloud based IDE with a special support for my favourite PHP framework.
-
Published by jakubl 07/25/11 - 21:30
-
5624 views
cakeinit is a command line tool to grab CakePHP and various plugins via GIT in one step.
-
Published by jcutrer 07/21/11 - 14:00
-
4411 views
Place the Skitter Slideshow in his CakePHP with this simple helper!
-
Published by thiagosf 07/13/11 - 16:41
-
2702 views
CakePHP plugin which makes using the LinkedIn API a breeze.
This plugin provides a simple and solid bridge between CakePHP and LinkedIn API. No need to know the complexity of OAuth, just add the plugin to your plugins directory and you can use the LinkedIn API out of the box. This plugin is written on top of the OAuth lib by Cakebaker (http://code.42dh.com/oauth/). The good part is that you can use this plugin anywhere in your application. No need to create a datasource in conjunction with a database configuration.
+ https://github.com/inlet/CakePHP-LinkedIn
+ https://github.com/inlet/CakePHP-LinkedIn/wiki
-
Published by inlet 07/13/11 - 16:31
-
6062 views
Latest Comments