CyberArmy University | Open Source Institute | CyberArmy Intelligence & Security | CyberArmy Services & Projects

[Library Index]

[View category: PHP] [Discuss Article]

Introducing CakePHP

Article is yet to be rated
Author:      h3raLd
Submitted:      01-Jan-1970 01:00:00
Imported From:      zZine (original author: h3raLd)


I started learning the PHP programming language about 2 years ago and I don't consider myself an expert, although I have developed and am currently developing various websites and applications.
However, PHP has its downsides, which are normally advertised quite well by non-PHP programmers. Some of them are:
  • PHP is too simple and thus anybody can write ?bad code? in PHP
  • PHP can be exploited easily, if precautions aren?t taken
  • PHP is vary disorganized compared to other languages
  • PHP?s Object Oriented model is poor compared to other languages
I don?t believe PHP itself has flaws, but rather that these complaints are valid if people - especially newbies - use PHP incorrectly. So, I decided to write an article about CakePHP, which is a PHP framework that aims to make life easier for developers and correct some of the "flaws" listed above. The article is available on this page:
http://www.zzine.org/read.php?op=view&item=1370

STOP!

Do not click the link above! The article is actually incredibly long (that?s why it was not included in this publication) and I discourage people from reading it as is because it may be boring and obscure in places for those who don?t know what PHP is about. Nevertheless, some sections of the article are quite interesting for PHP newbies to read, and also for developers used to other programming languages like Perl or Ruby.

In its stead, I?ve created this short overview describing each section of the article very briefly, and I recommend reading this before moving on to the article itself (for those of you who absolutely do not want to take my advice and want to skip to the article, the link to the full article is at the end of this piece).

Bringing order to chaos

This first section explains how and why PHP could benefit from a framework to organize it better. It?s partly auto-biographical, as it focuses on my experiences with various PHP frameworks, but it is useful to those interested in learning more about the general ?framework? concept and philosophy.

The Rails phenomenon

If you have never heard of the Ruby on Rails framework or have never learned anything about it before, I highly recommend reading this section. It briefly introduces concepts like MVC patterns, which will be necessary to understand CakePHP?s structure. If you DON?T want to know more about the CakePHP framework, but you?d be interested in learning more about the concepts and possibly applying them to your programming language of choice, this section will also benefit you, as it provides a quick introduction to Rails ports, which is the Rails framework exported to other languages like Java, Python and Perl.

CakePHP, just another Rails clone?

A brief introduction to CakePHP?s purpose and key concepts, without getting too technical.

The ingredients

A more detailed overview of CakePHP?s directory structure, functionality, and basic principles. This section can be read as a more technical discussion about the framework and is also suitable for future reference when developing a website or application.

Meet the bakers
For those readers who like getting to know the people ?behind the scenes?, here?s an exclusive interview with PHPnut and gwoo, CakePHP?s lead developers. It ranges from anecdotes to clarifications about the framework, and is an interesting and pleasant read, in my opinion.

Let?s cook...
A detailed list on how to get involved in the project. CakePHP?s staff is currently looking for more dedicated contributors to help with the framework?s code, their wiki section, the official documentation, or just people interested in trying CakePHP out and expressing their opinions and suggestions about it.

...or just eat
This section was written by Marc Abramowitz, a PHP programmer who started using CakePHP at his workplace and made all his colleagues (and boss) very enthusiastic about using it. It?s a success story which also covers a few of the basic concepts and usages of the framework. This is a must read for those who are unsure or scared of using a PHP framework for their applications.

...And the icing?
Last but not least, a quick look into the possible future of CakePHP, listing new functionalities which will be implemented sooner or later in the framework.

Notes and Related Resources
A list of all the sources used or referred to during the article, and special thanks to people who helped me out with all this.

Now you are ready to read all or some of my article, so feel free to click the link below!

CakePHP - A ?tasty? solution for PHP programmers

This article was originally published by CyberArmy.net in the CyberArmy Library.

You must be logged in to vote on an article

About Us | Privacy Policy | Mission Statement | Help