free hit counter

Editing .ctp Files in Dreamwaver and Eclipse

Editing .ctp Files in Dreamwaver and Eclipse
Editing .ctp Files in Dreamwaver In Dreamweaver, by default,we can’t edit our codes in .ctp script in the code or design views. Using Dreamweaver configuration, we can set it up. Here we will see the proper configuration for 1.Viewing   CTP and THTML files in code view with PHP syntax coloring 2.Viewing  CTP and THTML files in ...

CakePHP Video Encoder Component 1

CakePHP Video Encoder Component
This is a component to convert and encode videos in your CakePHP application. This was extracted from a live project. Requirements CakePHP 1.2+ ffmpeg flvtool2 How to install FFmpeg in Linux sudo apt-get install ffmpeg for more info http://linuxers.org/tutorial/how-install-ffmpeg-linux Installing FLVTool2 : Open the terminal and type following command to install FLVTool2: sudo apt-get install ...

Image Resize Component for CakePHP

Image Resize Component for CakePHP
image resize with aspect ratio in CakePHP Installation Place the above script in a file named ImgResizerComponent.php within your app/controllers/components/ directory. Next, simply add ‘ ImgResizer‘ to your controller’s component property.               ImgResizer Component Download Link  Example $image = WWW_ROOT . ’img/myimage.png’;   $w=100;   $h=100;   $this->ImgResizer->set_image($w,$h,$image );