Monday, 9 March 2015

Cake PHP(part 1)

The Rapid Development PHP Framework

What is Cake PHP?

According to the official Cake PHP website, cakephp.org,

“CakePHP is a rapid development framework for PHPthat provides an extensible architecture for developing, maintaining, and deploying applications.
Using commonly known design patterns like MVC and ORM within the convention over configuration paradigm, CakePHP reduces development costs and helps developers write less code”

  

History

Cake PHP was created by Michal Tatarynowicz On April 15, 2005.Inspired by Roby on Rails.Michal published it under MIT license and opened it to the community developers.In July 2005, Larry E Masters (aka PhpNut) took over as
the lead developer.In December 2005, Larry and Garrett J. Woodworth (aka gwoo) founded the Cake Software Foundation to promote development related to Cake PHP.

Features of Cake PHP

it’s PHP! Compatibles with versions 4 and 5. Open Source, MIT license.Object Oriented. Design Patterns: MVC and ORM.Convention over configuration. Framework not set of libraries. Bake Script: Automates CRUD scripting

MVC pattern

PHP Cake enforces Model View Controller (MVC) Pattern.Cake splits operations into three parts:
  1. Models: used for all database interactions.
  2. Views: used for all output and displays.
  3.  Controllers: used to control the application flow.
why Cake PHP MVC?
  1. Reduce redundancy
  2. Organize the different tasks of the web app.
  3. No need for include statements in PHP scripts.
  4. Follow Agile techniques.
  5. Easy to debug and maintain

Friday, 6 March 2015

what Is MVC(Model-View-Controllers)

Model

Model represent capabilities. A model might be a single object (as an alternative dull), or it would be some structure of objects.

There will have to be a one-to-one correspondence between the model and its parts on the one hand, and the represented world as perceived by means of the proprietor of the model on the other hand.

View

 A view is a (visible) illustration of its mannequin. It might regularly spotlight specific attributes of the model and suppress others. It's thus performing as a presentation filter.

A view is hooked up to its model  and gets the information essential for the presentation from the model by using asking questions. It might also replace the mannequin via sending appropriate messages. All these questions and messages must be in the terminology of the model, the view will as a consequence have to comprehend the semantics of the attributes of the mannequin it represents

Controllers

A controller is the link between a user and the process. It supplies the user with input with the aid of arranging for primary views to reward themselves in appropriate locations on the monitor. It supplies method for consumer output by way of offering the person with menus or other way of giving commands and data. The controller receives such user output, translates it into the correct messages and cross these messages on to one or more of the views

The new era of web applications has introduced a number of frameworks designed to aid in rapid development. But, no matter what your preferred language is, finding a suitable framework is not usually an easy task.

Any question about Web Application Framework writes down in comment box. Everyday check this blog u will learn lot things of C programming and Web application development

Web Application Framework

What is Web Application Framework 

 A web application Framework is a patterned code process such as normal application libraries and tools providing an geared up environment for developers to software and support to create structured, maintainable code. Using a web software Framework presents the following advantages


organized &structured programming environment creates maintainable code 

It will be less difficult to make updates or alterations to the code or have new programmer(s) or programming staff(s) take over the web software mission maintenance.

  1. Supplies a greater atmosphere for more than one programmers to work on the net utility mission.
  2. By way of separating the HTML and CSS from the php code, HTML and CSS designers can work on the design (refereed to "view") folder without having to deal or tinker with the Hypertext Preprocessor code.
  3. Most frame Promotes writing a operate (or type) as soon as and reusing it in exclusive materials of the net utility as an alternative of repeating the same function in exceptional areas. So, if there's a have got to alternate the operate, it can be carried out in a single situation instead of getting to alter it in a couple of places.
  4. works come with the fashioned functionalities (courses, helpers, and libraries), such as database entry, form input security tests, validating varieties, importing images, sending emails, and so on. — those customary libraries provide an streamlined and quick approach of coding without needing to rewrite code for normal capabilities.
  5.    Presents higher beta trying out and worm fixing atmosphere — it promotes checking out one functionality at a time, alternatively of testing the entire web software which in general factors programmers to miss programming bugs.

Any question about Web Application Framework writes down in comment box. Everyday check this blog u will learn lot things of C programming and Web application development