Thursday, May 30, 2013

CakePHP = Rails Framework

As I said in previous posts I really miss rails framework while working for PHP web applications. Just looking around the best sites on rails I found that CakePHP has a similar framework like rails.

Was really excited to get hands on it. Downloaded the latest version of the framework and started the application. But crashed with several warnings like 'Warning: _cake_core_ cache was unable to write...'

After reading warnings and checking around for solution, found, that need to provide writable permissions to tmp in app folder chmod -R 777 app/tmp which really helped for starting the project smoothly. Also found the answer which is helpful for other errors.

Until now I found that it contains functions similar to rails like beforeFilter() and so on, although I am not yet familiar with this framework. But it contains many function which I tried to build in my framework like render or helpers.

I am really going to love this if it works like rails, and will have no complaints about PHP.

2 comments:

  1. I find your statement "CakePHP = Rails Framework" quite blunt :)
    The truth is a little bit more complicated. And not sure if they are really that well comparable.
    But well, if it suits you, why not.

    ReplyDelete
    Replies
    1. It was just a first thought, I will be looking to the framework soon. Let me know more about it if you have worked. It will really help me for selecting the best framework for PHP. Or I will just have to again start working on the framework I was building as per the rails framework. Thanks in advance.

      Delete