A simple way to check and enforce SSL can be done by using the RequestHandler component. Here’s an example: private function checkHttps() { if(!$this->RequestHandler->isSSL())
Year: 2010
This had me pondering for a minute. Quite often I write code along the lines of: public function doStuff($stuff, $complex = FALSE) { if
Quite a convenient little snippet. Thought I would share it with all my dear readers and git lovers. (Thanks to the original author, whom I
This post is actually mostly about jQuery (with some cake sprinkles), but why not… Let’s examine a typical situation: We have a Product model, which
You’d think that by now there should be an easier way to accomplish something like this. (i.e. Send a client IP to some service, and
A quiet, little method inside model.php, can actually help us out quite a bit. I am talking about the onError() callback. Here’s a snippet from
Hello All, Our company is looking for CakePHP developers, PHP developers and front-end engineers (jQuery ninjas with PHP skills). If you are interested please use
First let’s see what Wikipedia says about materialized views: A materialized view takes a different approach [from the regular sql view] in which the query
If you are moving data into a CakePHP environment and the passwords in the existing DB aren’t hashed, you can use the simple shell provided