Having trouble using Vendor code in your CakePHP 2.x application because of namespaces? Hope that this little snippet will help you solving that problem.
New Relic is an application monitoring solution for PHP (and other languages) which gives you more information about the performance of your application. It works well with all major frameworks (including CakePHP). Little problem for me is that CakePHP has it’s own error handling – which catches any error before it can be fetched by the New Relic PHP agent.
Because our server and availability monitoring is already done by New Relic, I decided to build a custom error handler in CakePHP which uses the PHP API of the New Relic PHP Agent. So all monitoring can be done through New Relic.
You can find the plugin with the error handler here: https://github.com/turnred/newrelic-cakephp (Work In Progress)
While working on the migration of a Cake1.x project to Cake2, I faced a problem with the JsonView plugin of Pagebakers. Instead of being catched by the JsonView View, it just printed out the plain old html error of a missing view. Lees verder
Today I’m migrating one of our webapplications from Cakephp 1.3 to Cakephp 2.0.5.
A lot of webdevelopers do repeating tasks on each project they make. One of these repeating tasks is building your CSS too make the project look great! With bootstrap – which is a project of twitter – most of all CSS styling is already done for you and enables you to easily extend it.
You can find Bootstrap at :
Recently I tried to integrate the php spellchecker of TinyMCE into a project we’re working on, when I stumbled upon the error:
uncaught typeerror cannot call method ‘push’
Googling around I found the solution to the problem by upgrading the TinyMCE package to a newer version (3.4.5). Hope it helps – because I didn’t found that much information on the internet about it.
If you trim files that we’re exported using UTF8 encoding then be carefull that you also trim the non-breaking spaces in it. The default options of trim() do not include this, so you have to use the following code to be sure to also trim them:
// turn non breaking space into 'normal' string // to behave exactly like a non-breaking space $myHTML = " abc";
$nbSpace = array_flip(get_html_translation_table(HTML_ENTITIES, ENT_QUOTES));
$converted = strtr($myHTML, $nbSpace);
// trim utf8 non breaking spaces
$converted = trim($converted,chr(0xC2).chr(0xA0));
Did you knew that you could iterate through an objects variables? Well I did, but I already forgot that it was possible. Lees verder
In this post I’ll try to explain the implementation of MVC (Model-View-Controller) in the Zend Framework. If you are not familiar with Zend Framework, you might read the Introduction to Zend Framework post