• Share
  • Email
  • Embed
  • Like
  • Save
  • Private Content
Cake php  oops approach for php
 

Cake php oops approach for php

on

  • 1,667 views

OTS Solutions delivering high quality open source solutions like Cakephp Application Development, Cakephp Web Development services by expert professional developers.

OTS Solutions delivering high quality open source solutions like Cakephp Application Development, Cakephp Web Development services by expert professional developers.

Statistics

Views

Total Views
1,667
Views on SlideShare
1,662
Embed Views
5

Actions

Likes
0
Downloads
1
Comments
0

3 Embeds 5

http://blog.otssolutions.com 3
http://webcache.googleusercontent.com 1
http://www.docshut.com 1

Accessibility

Categories

Upload Details

Uploaded via as Microsoft PowerPoint

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment

    Cake php  oops approach for php Cake php oops approach for php Presentation Transcript

    • Cake PHP – OOPS approach for PHP www.otssolutions.com
    • What is CakePHP ?• CakePHP is written in PHP and is modeled after the concepts of Ruby on Rails (ROR)• CakePHP is a rapid development framework for PHP that provides an extensible architecture for developing, maintaining, and deploying applications.• CakePHP makes use of commonly known design patterns like ActiveRecord, Association Data
    • Why use CakePHP ?• Model, View, Controller Architecture• Helps developers to reduce code repentance in creation of websites or web applications.• Application Scaffolding.• Built in view helpers for AJAX, JavaScript, HTML Forms.• Access Control Lists
    • Why use CakePHP ?• Data Sanitization• Security, Session, and Request Handling Components• Flexible View Caching• Full support for PHP OOP’s approach And• It is developed under the MIT license so it is free for everyone
    • Where to use CakePHP ?• Highly scalable projects• Projects with Heavy Database Interactions and Object Relational Mapping• Projects where caching is needed• Projects which needs to be implemented with MVC approach• Where code re-usability is necessity
    • Where not to use CakePHP ?• Basic Blog• Basic CMS• Basic E-Commere• Basic Forums / Bulletin Boards
    • Who is using CakePHP ?
    • What is MVC approach?
    • What is MVC approach?• Model/View/Controller (MVC) is a software architecture used for building applications.• MVC separates the business logic and application data from the presentation data to the user.• Applications built using MVC approach are re-usable and expressive.
    • What is OOPs?• Object-oriented programming is a method of implementation in which programs are organized as cooperative collections of objects, each of which represents an instance of some class, and whose classes are all members of one or more hierarchy of classes united via inheritance relationships.
    • OOPs advantages over conventional approaches • OOP provides a clear modular structure for programs which makes it good for defining abstract data types where implementation details are hidden and the unit has a clearly defined interface.. • OOP makes it easy to maintain and modify existing code as new objects can be created with small differences to existing ones.
    • OOPs advantages over conventional approaches • OOP provides a good framework for code libraries where supplied software components can be easily adapted and modified by the programmer. This is particularly useful for developing graphical user interfaces.
    • Characteristics of OOPs • Class definitions • Objects • Abstraction • Encapsulation • Inheritance • Generic classes • Polymorphism • Operator and Function overloading. • Message Passing
    • How OOPs work • Classes describe objects • Objects inherit from superclasses
    • Class Hierarchies
    • Advantages of OOPs • Simplicity • Modularity • Modifiability • Extensibility • Maintainability • Re-usability
    • OOPs in PHP • PHP 5 has a full object model as compared to PHP4. • PHP treats objects in the same way as references or handles, meaning that each variable contains an object reference rather than a copy of the entire object. • PHP supports Visibility, abstract and final classes and methods , additional magic methods, interfaces, cloning and typehinting
    • OOPs Features in PHP Autoloading : Autoloading is a mechanism where you can specify where the code should look for a class name that follows a particular pattern. Once you have set this up, usually very early in the script when everything gets configured, then you can simply instantiate classes without having to expressly include their declaration files.
    • OOPs Features in PHP Interfaces : PHP does not have multiple inheritance, so each object can only have one parent, and the top-level parent of all objects is of type StdClass. However PHP does support interfaces, which allows polymorphism (one class which can look like another) in PHP.
    • OOPs Features in PHP Type Hinting : We use the instanceOf comparison operator to check that an object with the correct capabilities had been received, but we can make this simpler by using type hinting in our functions and object methods. .
    • OOPs Features in PHP Fluent Interfaces : This is a neat trick that can often be seen in particular in framework code, so it is worth a mention here. A “fluent interface” is one where you can chain the methods together, useful especially where you would be calling a sequence of methods on the same object.
    • AddressUnited StatesGlendaleGlendale Plaza655 North Central Avenue17th FloorGlendale, California 91203Ph: +1 408 540 0001United kingdomNo 1 Liverpool StreetLondon EC2M7QDUnited KingdomPh: +44 208 099 1660
    • Gurgaon ( Haryana )795, Udyog Vihar, Phase-VGurgaon (Haryana) IndiaPh: +91 124 4748100+91 124 4748101US: +1 408.540.0001UK: +44 208.099.1660AU: +61 280.114.816India : +91 124.474.8100 | +91 124.474.8101
    • Thank You
    • USA United kingdom IndiaGlendaleGlendale Plaza London Gurgaon ( Haryana ) 795, Udyog Vihar, Phase-V655 North Central Avenue No 1 Liverpool Street Gurgaon(Haryana) India17th Floor London EC2M 7QD Ph: +91 124 4101350Glendale, California 91203 United Kingdom +91 124 4748100United States Ph: +44 208 099 1660Ph: +1 408 540 0001 Write to us at: sales@otssolutions.comWrite to us at: sales@otssolutions.com Write to us at: sales@otssolutions.com http://www.otssolutions.com/