Tag Archives: CakePHP

WordPress: ORM Model Class

Object Relational Mapping or ORM is something that WordPress is missing, but that doesn’t mean we can’t create an abstract Model that act similar to ORM behavior. Here are the first version to implement the ORM in WordPres – far from completions. Here are the implementation: The usage: More features to add in – to… Read More »

Y2016

Year 2016, InsyaAllah, next year to be a year of sharing knowledge of what I’ve learnt so far. Following are the trainings I would like to conduct: 1. Mobile Apps Development with jQuery Mobile 2. Mobile Apps Development with Intel XDK (incoming) 3. API Development with Slim Framework (incoming) 4. PHP Basic / Advanced 5.… Read More »

MySQL: Save Arabic Characters / Words

Database / Table for Arabic Usage Charset – UTF-8 Collation – utf8_unicode_ci Example: In CakePHP, make sure to set ‘encoding’ => ‘utf8’ in database.php. You can have Arabic Lorem Ipsum at Multilanguage Lorem Ipsum Generator For web page, please ensure to add meta tag, charset `utf-8′, as following: Reference: How to save Arabic Words Into… Read More »

CakePHP: PHPMailer Component – Using GMail SMTP

Requirements: CakePHP 2.x PHPMailer Download PHPMailer & extract it to APP/vendors. Add following lines in APP/vendors/phpmailer/class.phpmail.php line 542, in ELSE statement. This to ensure we have a secured domain through SSL / TLS. Create a component called EmailComponent in APP/app/Controller/Component Create a controller, ExampleController.php to test out our EmailComponent When you navigate to http://localhost/APP/Example, the… Read More »