Posts Tagged: cake php
-
May 21, 2010
Comments OffCustom 404 error page with CakePHP
1. Create your error layout in app/view/layouts/ (with name error.ctp) 2. Create your 404 error view in app/view/errors/ (with name error404.ctp) In /cake/libs/view/errors you will find all the default error views. You can copy and paste error404.ctp in your app/view/errors directory or create a new file and customize this view as you like. 3. Set...
-
May 20, 2010
Comments OffHow to use or implement fusion charts with cakephp ?
Create Fusioncharts with cakePHP in easy Six steps:- Step 1:- Download trail version of fusionCharts from its official web site....
-
May 20, 2010
Comments OffA easy captcha component implentation into cakephp.
First save the code below into a file called captcha.php and put it in your controller components folder Then very important create a folder called “fonts” in your files which is located in webroot/files/ copy the fonts you want to use inside that folder you can add as many fonts as you like and use...
-
May 20, 2010
Comments OffINTERVIEW QUESTIONS OF CAKE PHP WITH ANSWER
Q1. What is meant by MVC (MODEL-VIEW-CONTROLLER)? ANSWER: model view controller, it is a software architecture, used to isolates business logic from presentation logic. cakephp is based on mvc pattern. Q2. What are 3 important parts of MVC (MODEL-VIEW-CONTROLLER)? ANSWER: 1. The Model represents the application data 2. The View renders a presentation of model...
-
May 20, 2010
Comments OffImage Upload and Resize Component for CakePHP 1.2
############## image.php ##################### create a components image in following given path /app/controllers/components/image.php /* File: /app/controllers/components/image.php */ class ImageComponent extends Object { /* * Uploads an image and its thumbnail into $folderName/big and $folderName/small respectivley. * the generated thumnail could either have the same aspect ratio as the uploaded image, or could * be a zoomed...
-
May 20, 2010
Comments OffCake php interview questions and answers
What is meant by MVC? model view controller, it is a software architecture, used to isolates business logic from presentation logic. cakephp is based on mvc pattern. What are 3 important parts of MVC? The Model represents the application data The View renders a presentation of model data The Controller handles and routes requests made...
-
May 03, 2010
Comments Offcakephp interview questions
Questionnaire started with some of the questions from core php like what all functions do you use in your development can you just list them ,tell us what was that you did special in php. after that the cakephp questions were asked. It ranged from various perspective in cakephp, i am just putting them down...