Archive | CakePHP RSS feed for this section

[How To] Use of image magick instead of GD for run-time image re-sizing

TweetIn my last post, we looked at a way to re-size images at run time. That method used PHP's built-in GD library for image processing. So it may happen that image processing may increase load on HTTP server. That's why in this post I am going to tell the way to use ImageMagick for image [...]

Read full story · Comments { 3 }

[CakePHP] Passing data from controller to javascript files

TweetThese days javascript is becoming the indispensable tool for a web developer. Each and every web application uses javascript for one or the other purpose. While working with CakePHP based projects, we need to pass variables from PHP (controller) to javascript a lot of times. To pass a variable from controller to view, Controller::set() method [...]

Read full story · Comments { 2 }

[CakePHP] How to re-size images at run-time

TweetThis is a helper + controller combo for CakePHP which I often use. It helps to re-size images at run-time and also aid display them. Oh yes! once the image is resized it also caches them. First let's look at helper method. PLAIN TEXT PHP: class MyHelper extends AppHelper {     function getImageUrl($path, $size, [...]

Read full story · Comments { 7 }

Adding security to your CakePHP application – Part 2

TweetIn the Part 1 of this post, we've discussed how to secure your CakePHP application by following some thumb rules and using Sanitize class. Now, in the second part, we'll discuss how to add some more security to your application by using the nice Security component of CakePHP. Before coming down to the nitty-gritty of [...]

Read full story · Comments { 6 }