Browsed by
Category: PHP

WordPress: ORM Model Class

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 have columns properties, what to hide, what to show, column alias and many more. But this is my first attempt to make the WordPress Plugin…

Read More Read More

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

How to Include PHP ActiveRecord in WordPress as Global Feature

How to Include PHP ActiveRecord in WordPress as Global Feature

This post for developers who used to ORM/ActiveRecord and not familiar with WordPress Query (like me) and want the ORM/ActiveRecord to be available in WordPress. As per post’s title, this post regarding how you can include PHP ActiveRecord for global use – let say you have multiple plugins that use PHP ActiveRecord, you can’t load same PHP ActiveRecord classes / redeclared classed in an application or system – to be precise in PHP. So the solution is to add in…

Read More Read More

Training: Web Mobile Application Development (Basic / Intermediate) – INTIM – August 2015

Training: Web Mobile Application Development (Basic / Intermediate) – INTIM – August 2015

Training: Web Mobile Application Development (Basic / Intermediate) Location: INTAN Kampus Wilayah Timur (INTIM), Kemaman, Terengganu Date: 17th – 20th August 2015 Slide: http://bit.ly/training-web-mobile-application-development Training Materials: Web Mobile Application Starter Kit – https://bit.ly/training-mobile-app-starter-kit Basic Android Configuration – https://bit.ly/training-mobile-app-android-config API Template – https://bit.ly/training-api-template Important Articles: HTTP Methods for Restful Services – http://bit.ly/htpp-nethods-for-restful-services Android Configuration – http://bit.ly/android-config-xml Chrome Device Mode – http://bit.ly/chrome-device-mode  

Web Services: Slim Framework + Eloquent(Laravel)

Web Services: Slim Framework + Eloquent(Laravel)

Setting up the Restful API is easy with Slim Framework & Eloquent(Laravel). Here are the steps: Install required components via composer – Slim Framework + Eloquent(Laravel) Create a database called web_services and create users table. Setting up Eloquent Setting up Routes Final Touch Install the necessary components using composer – create a composer.json and save it in a working directory and run composer install. We’re creating a simple web services for Users – Simple CRUD. Create a database called web_services…

Read More Read More

Quick Development: Slim Framework + Illuminate(Laravel)

Quick Development: Slim Framework + Illuminate(Laravel)

Create a project folder and add a composer.json file in it and paste the following codes, and run composer install. You should have Slim Framework, Twig, Illuminate(Laravel) in the project folder. Add a index.php file in project folder and copy paste the following: Create a folder named models in the project folder and add the following into a file named Article.php: Don’t forget our .htaccess file in a project folder. 🙂 Now you can navigate to your system, for example:…

Read More Read More