Browsed by
Category: CakePHP

Y2016 ?>

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. Web Development with CakePHP 3 (incoming) 6. Web Development with Laravel 5 (incoming) 7. Web Development with Yii Framework 2 (incoming) 8. WordPress for Developers…

Read More Read More

MySQL: Save Arabic Characters / Words ?>

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 MySQL Table

HTML: Editable Elements ?>

HTML: Editable Elements

I’m using the following: X-editable Bootstrap 2 Cakephp / Any PHP Framework Include the jQuery, Bootstrap 2 in your HTML head The View The JavaScript The Controller References X-editable http://jquery.com/download/ http://getbootstrap.com/2.3.2/getting-started.html Angular X-editable – http://vitalets.github.io/angular-xeditable

CakePHP: PHPMailer Component – Using GMail SMTP ?>

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 email should send to [someone@you.com]. Please do check the mailbox. 🙂 References: http://phpmailer.worxware.com/?pg=examplebgmail http://blog.teamtreehouse.com/sending-email-with-phpmailer-and-smtp http://book.cakephp.org/2.0/en/controllers/components.html#creating-a-component