Ekini - blog.ekini.net - Ekini.net by Wenbert Del Rosario

Latest News:

CakePHP Facebook Component 18 Aug 2013 | 03:36 am

A simple CakePHP component that uses the Facebook PHP SDK (https://github.com/facebook/facebook-php-sdk). Setup the component like this: Then you should be able to do this in your controllers: Grab...

Facebook Page Tab: Remove scrollbars and auto-resize height 2 Aug 2013 | 10:28 am

I have come across many ones, but this one always worked for me without problems. CSS Put this just after the tag: Put this after you have jQuery and other libraries loaded. Don’t forget to put in ...

Get tweets from User Timeline with API 1.1 (PHP) 28 Jun 2013 | 09:17 am

This code is from http://stackoverflow.com/q/12916539/66767 combined with http://stackoverflow.com/a/15387732/66767 to auto-link URLs and hashtags. Quick and dirty… copy and paste below!

Setting up File Uploader / FineUploader Basic with CakePHP 21 Feb 2013 | 07:38 am

The configuration:

CakePHP: Disabling the Security Component for Specific Actions in a Controller 21 Feb 2013 | 03:34 am

Sometimes, I need to disable the Security component for certain actions in the controller. For example, if I need to handle FineUpload. If I do not disable the Security component, I get a “request has...

CakePHP: Select Box / Drop-down List linked from related Model 13 Feb 2013 | 02:00 am

For example, an Article has an Author. In the database, the Article table would have an author_id field. Assuming that we are following the CakePHP Model and Database Conventions (http://book.cakephp....

CakePHP: Displaying images that are outside the public accessible directory (webroot) using Media Views 8 Feb 2013 | 02:39 am

Let’s say that Configure::read('App.uploads_temp') is somewhere outside the public accessible directory: /var/www/yourapp/private //This goes into the controller /** * @param $filename A filename with...

Some useful Knockout.JS examples from my JSFiddle 24 Nov 2012 | 05:14 am

I am learning Knockout.js Accessing an observable array outside the foreach loop from the HTML http://jsfiddle.net/wenbert/MEKLN/ Setting a default / selected option in a Select box http://jsfiddle.ne...

CakePHP 2.x: CSV File download from a database query 10 Oct 2012 | 11:42 pm

Here is a quick way to output/stream/download a CSV file from your database using CakePHP. For simplicity, I have placed everything in the controller. Not good practice but it quickly does the job.

CouchDB and PHP Web Development Beginner’s Guide 15 Aug 2012 | 12:24 pm

CouchDB and PHP Web Development Beginner’s Guide from Packt Publishing has been released. I was a technical reviewer for the book. The book has been released more than a month ago but I was not able t...

Recently parsed news:

Recent searches: