

Multiple CSS Style Session Flash’es in CakePHP

We all know that CakePHP has the Session component that allows us to login and logout users and to show them messages that appear only once: Session->setFlash(‘Random message that appears only once’); ?> We can style this message the way we want but what about having these kind of messages that are style differently […]
Multilingual Website with CakePHP

We all know that developing a website in CakePHP is very easy and also fast. Here’s how to create a multilingual website fast. First open app/config/bootstrap.php and set the languages you want available for your website: Configure::write(‘Config.languages’, array( ‘ro’ => array( ‘language’ => ‘Romanian’, ‘locale’ => ‘rum’, ‘localeFallback’ => ‘rum’, ‘charset’ => ‘utf-8’ ), ‘en’ […]
Multiple Databases in CakePHP

There comes a time in life when you need to use multiple databases for a website you have to build 🙂 . I came across this “problem” when I was working on a portal website and I had to make sure that users can login with the same details on any website that company owned. […]