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.

Thursday, May 16, 2013

QA : 3 : How to implement the twitter authentication in rails 3.2?

Question from Bala Chandar :

How to implement the twitter authentication in rails 3.2?

Answer :

There is a gem available for twitter authentication oauth-plugin by Pelle Braendgaard

Please check the link Twitter Authentication Settings.