Category Archives: PHP

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… Read More »

Phalcon: First Time Setup (for Windows & WAMP)

Download Phalcon’s .dll file based on your environment – i’m using WampServer 32 bit(check with Task Manager if you don’t know your WampServer running on 32 bit or 64 bit). Once downloaded, extract the php_phalcon.dll into C:wampbinphpphp[version]ext. Add extension=php_phalcon.dll in 2 places: C:wampbinapacheapache[version]binphp.ini C:wampbinphpphp[version]php.ini Now, restart your WampServer services and check phpinfo(), see if it’s loaded or… Read More »

Phalcon: Multiple-Module Skeleton

Assalamualaikum, I’ve been learning Phalcon Framework recently and end up built a Multiple-Module Skeleton app – basically to ease development process to manage modules. Looking forward to add in more features. I have it on GitHub. I have the directory structure as follow: Hope to get some feedbacks. Jazakumullahu khairan.

DomPDF: Production Ready Configuration

DomPDF – Production Ready Configuration PHP  Version: 5.3 and above Settings: allow_url_fopen Extensions: MBString (Installation), GD (Installation), DOM(enabled by default) DomPDF Configuration / Usage Enable Remote – def(“DOMPDF_ENABLE_REMOTE”, true); Read/Write access to the DOMPDF_TEMP_DIR Use Absolute URL Use Full Document Root or Relative (if you’re still unable to view the image) Use JPEG UPDATE (2015-02-17): Security… Read More »

GeoServer – GetFeatureInfo Template Data Model (structure)

Extend from this GeoServer – Custom Get Feature Info Display Knowledge requirement – Freemaker The standard template files is header.tpl, content.tpl, footer.tpl. header.tpl usually where JavaScript, CSS, meta tag, title placed here. footer.tpl where you put your HTML page footer, Copyright, etc. content.tpl where we going to iterate through all the features to display interactive… Read More »