Frequent PHP problems and solutions


I started off with frequent CakePHP problems last month. This month I add some common PHP problems. Strip additional white spaces With UTF8 the "normal" preg_replace doesn’t really work anymore. For some cases we could use the following trick: $str…

Preventing Brute Force on Login


With default cake login procedures a user could try unlimited passwords to one specific account. That means, if you write a bot that tries every possible combination (thousand times per minute!), this bot could eventually gain access to the account….

Loading Classes on the fly


With the LazyLoading Model from Lorenzo (there are other sources as well) we already speed up the application by 20-40% (depending on the application size and amount of models). Something i never really liked is that components and helpers can…