Tag Archives: php framework

CakePHP to Red Hat’s Openshift

There is only 6 easy steps to deploy your application to cloud.

Step 1 : Sign Up

Just visit to openshift and sign up a new account.

Step 2 : Install client tool

For installation instruction of client visit here

Step 3 : Create domain

Domain is the unique namespace for every account. Execute following command to create your domain

Step 4 : Create application

app name is the name of your application ant app type is the type of application you want to create. For a php application we execute following command:

Step 5 : Add MySQL to your application

Step 6 : Deploy your application to cloud
Once the application is created, it needs to deployed to cloud. After execution of step 4, a folder with the application name is created in current directory. Goto current directory and add cakephp to it.

 

You can access your application from the URL :

http://mycake-mydomain.rhcloud.com

Lets Bake in PHP using CakePHP

From last week I decided to learn CakePHP, which is a open source web application framework for producing web applications. It is written in PHP, modeled after the concepts of Ruby on Rails, and distributed under the MIT License.

I started with the official documentation. But I am not finding it very useful when you really get stuck somewhere. But CakePHP has active developer team and very active community.

Here’s a quick list of features you’ll enjoy when using CakePHP:

  • Integrated CRUD for database interaction
  • Application scaffolding
  • Code generation
  • MVC architecture
  • Request dispatcher with clean, custom URLs and routes
  • Built-in validation
  • Fast and flexible templating (PHP syntax, with helpers)
  • View Helpers for AJAX, JavaScript, HTML Forms and more
  • Email, Cookie, Security, Session, and Request Handling Components
  • Flexible ACL
  • Data Sanitization
  • Flexible Caching
  • Works from any web site directory, with little to no Apache configuration involved

Thats all what I get from the initial chapters of CakePHP.