Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post: #1

CakePHP started in 2005, when Ruby on Rails was gaining popularity. The community has since grown and spawned several sub-projects. CakePHP is not a port of Ruby on Rails to PHP, but appropriates many of its useful concepts. The Mambo Foundation announced in 2007 that it would utilize the CakePHP framework for future versions of its widely used content management system, calling CakePHP a "solid choice and certainly one of the top frameworks available today." Features of CakePHP Like Rails, CakePHP makes it easier for the user to interface with the database with active records. It also encourages use of the model-view-controller architectural pattern. * Compatible with PHP4 and PHP5 * Integrated CRUD for database and simplified querying * Request dispatcher with custom URLs * Templating (PHP syntax with helper methods) * View helpers for AJAX, Javascript, HTML forms * Website directory independent * Built-in validation * Access control lists (ACL) * Application scaffolding * Data sanitization * Security, session, and request handling components * View caching
Post: #2
PHP HyperText Preprocessor
PHP’s support for Apache(Server) and MySQL(Database) further increases its popularity. Apache is now the most-used web-server in the world. MySQL is a powerful free SQL database, and PHP provides a comprehensive set of functions for working with it. The combination of Apache, MySQL and PHP is all but unbeatable.
History of CakePHP

In 2005, Michal Tatarynowicz wrote a minimal version of a Rapid Application Framework in PHP. He found that it was the start of a very good framework. Michal published the framework under the MIT license, dubbing it Cake, and opened it up to a community of developers, who now maintain Cake under the name CakePHP.
Why CakePHP?
The MVC Pattern

Controllers contain the logic of your application. Each controller can offer different functionality; controllers retrieve and modify data by accessing database tables through models; and they register variables and objects, which can be used in views.
Models are active representations of database tables: they can connect to your database, query it (if instructed to do so by a controller) and save data to the database. It is important to note that in order to correctly apply the MVC architecture, there must be no interaction between models and views: all the logic is handled by controllers.
Views can be described as template files that present their content to the user: variables, arrays and objects that are used in views are registered through a controller. Views should not contain complex business logic; only the elementary control structures necessary to perform particular operations, such as the iteration of collected data through a foreach construct, should be contained within a view.
Cake File Layout
App Layout
Installing CakePHP
Server Requirements

Here are the requirements for setting up a server to run CakePHP:
1.  An HTTP server (like Apache) with the following enabled: sessions, mod_rewrite (not absolutely necessary but preferred)
2.  PHP 4.3.2 or greater. Yes, CakePHP works great in either PHP 4 or 5.
3.  A database engine (right now, there is support for MySQL 4+, PostgreSQL and a wrapper for ADODB).
To download a stable version of code, check out the files section of the CakePHP project at CakeForge by going to
Setting Up CakePHP
For development we can place the whole Cake installation directory inside the specified DocumentRoot like this:
NOTE: /app/tmp must be writable by the user that your web server runs as.
Database Configuration
A fresh install doesn't have a database.php, so you'll need to make a copy of /app/config/database.php.default. Once you've made a copy and renamed it you'll see the following:
Example: app/config/database.php
var $default = array('driver' => 'mysql',
'connect' => 'mysql_connect',
'host' => 'localhost',
'login' => 'user',
'password' => 'password',
'database' => 'project_name',
'prefix' => '');
Routes Configuration
Routes are individual rules that map matching URLs to specific controllers and actions. Routes are configured in the app/config/routes.php file. They are set-up like this:
<?php $Route->connect ( 'URL', array('controller'=>'controllername', 'action'=>'actionname', 'firstparam') ); ?>
If you now try to access your application, the CakePHP default page will be displayed, warning you that a database connection could not be established. We need to create a new MySQL database named memo that's accessible by a user named root
Create a table named notes
Now If you refresh the default page, CakePHP will notify you that the database is now accessible
CakePHP is now configured properly, and we can turn to the development of our application
Create a file named note.php and save it in your /app/models/ directory. You need only include the following lines in it:
<?php class Note extends AppModel {  var $name = 'Note';
} ?>

Important Note..!

If you are not satisfied with above reply ,..Please


So that we will collect data for you and will made reply to the request....OR try below "QUICK REPLY" box to add a reply to this page
Popular Searches: seminar report on cakephp,

Quick Reply
Type your reply to this message here.

Image Verification
Image Verification
(case insensitive)
Please enter the text within the image on the left in to the text box below. This process is used to prevent automated posts.

Possibly Related Threads...
Thread: Author Replies: Views: Last Post
  CakePHP seminar projects crazy 1 1,052 13-07-2010 05:44 PM
Last Post: vijaycusato7