CakePHP: Baking a Application in Minutes

Posted by coldtobi | 20 Mar, 2011, 12:17

On my last PHP project I spent too much time on basic tasks like form validation, generation and all the stuff behind. As this "problems" are quite common this is basically a reinvention of the wheel. So I started looking for a good, easy to understand PHP Framework to speed things up. 

What I found is CakePHP, a MVC based framework.

Ok, there are several frameworks available, so why to choose CakePHP? I think this is up to personal taste which framework appeals you most. Of course, there are comparisons in the blogosphere, so this can be a starting point for the decision. (for example)

Back to the cake. Well, IMPRESSIVE. This framework saves you lots of work -- most functions you need everyday are already there and the documentation called "Cookbook" is also quite complete and easy to understand. The API is not very complicated, so learning this framework is definitely faster than writing your own framework. (For the German readers: read this article).

Nevertheless, back to the topic again.  

To get an application up and running in minutes you can use a method they call scaffolding. You setup a scaffold* and your are ready.

(* Your scafold consists of a database and two files.... Of course, I assume you have your webserver and database server ready, and for the sake of easiness debian running to install all required packages. As an alternative to a webserver, you might want to check the package cakephp-instaweb and the docs here. Also for the sake of easiness, this tutorial shows will not use mod_rewrite, to avoid the hassle involving proper mod_rewrite configuration)

Don't believe it?

Try it yourself. 


Blog and Website | Comments (0) | Trackbacks (0)

Enabling InnoDB support in debian (MySQL)

Posted by coldtobi | 17 Mar, 2011, 10:17

InnoDB as storage engine has some advantages: Just one example: it is the backend to use when foreign keys are required.

For a complete picute, read the documenation:

 However, on Debian InnoDB is disabled by default: (take a look at /etc/mysql/my.cnf)


However, it's not just uncommeting to enable it: Your mysqldaemon will fail.  This article will explain how you can enable it with Debian

Of course, this assumes that you already setup mysql on your Debian server.


Blog and Website | Comments (3) | Trackbacks (0)