Fixing a WordPress pagination 404 error

Note: This article was originally written by Mei Gwilym on Aug 19, 2015. I’ve recently had a load of WordPress work. Much of these jobs are similar, so I’ve had a good chance to try and learn more about better theme and plugin design. One of these sites had a …

Making Yii 2 Client side validation work

Recently i have been working on Yii 2 for one of my clients. The application relies heavily on Ajax for loading different components and forms. Since there were forms, I had to use validation as well. Yii 2 has made validation very simple. The server side validation worked perfectly, almost out …

Forcing HTTPS on AWS EC2 load-balancer cluster

Recently i had to force rewrite HTTP to HTTPS on servers running under an AWS EC2 load-balancer. My first instinct was to add rewrite rule like the one below.

But that did not work and after a bit of debugging i was able to figure out that it was …

Wistia file upload using Upload API

Wistia a professional video hosting with great analytics and video marketing tools. It has tons of features along with prompt customer support. What it lacks though is a great developer community. And surprisingly, Wistia does not officially support PHP developers for API integrations. It does not even have a PHP team for it? …

Laravel 4.x cheatsheet

Laravel documentation is good and is improving day by day but here is a brief and basic list of important points and methods that we need to work with. Installation: 1 – Download source from github 2 – Put it into the webroot 3 – Install composer 4 – CD to that …

Ajax-based pagination Laravel 4

Pagination of dataset is a hot topic when it comes to frameworks. I have to agree that Laravel makes pagination a breeze. We almost have to do nothing but chain up a paginate() method with out dataset and we are almost there. Only other thing that we have to do …

Attaching files to Zendesk comments using SDK/API

In addition to generating comments and tickets through Zendesk API, we can also attach files to comments. The method is simple and straightforward. You basically provide the uploaded file path and MIME type to upload method of the Attachments API and it will return an attachment token that will then …

Explicitly parsing Blade code in Laravel 4

Laravel by default uses Blade Template Engine which works with files with extension “.blade.php” and are readily parsed without any issue. But if you somehow have to parse the Blade tags you fetched from database or some other source than you might have to look into the Blade API for …

Using Zendesk API/SDK for basic ticket management tasks

Zendesk has a well-documented REST-ful API for interations with its apps which can be used to relpicate all sorts of ticket management functionality. There is also an API wrapper released for all major languages. It also has a PHP version. But none of these clients have a thorough documentation like …