Category: PHP Frameworks
Curl | How to test a Restful web service using curl
Let’s consider, we have a demo Restful service (created in Java Spring here but you can create in any language) to login user which accepts username and password as input and returns Success/Failure in response. Request Object : Demo Login
Cakephp 3.0 | Steps to create theme controller
Description : Cakephp 3.0 provides a way to display different front end view for different clients using Themes. Theme is a plugin which follows the same structure as other cakephp plugins. Before Cakephp 3.0 it was only used to separate
Add buttons to ACORD forms, submit ACORD form to a webservice
ACORD pdf forms are editable. We can not only fill data in existing input elements but also add more elements (like new buttons and fields) in the forms and invoke actions to submit data from pdf to an external URL.
Javascript | How to post Acord PDF Forms data to a Web URL
Description : You have Fillable PDF on which you have button “Save Entered Data”. On button you want post the form data to php file. Solution : Follow these steps : 1. Open Form with Adobe Acrobat Pro. Goto–>Tools. 2.
PHP | Why HTML to PDF does not show same styling as on HTML page?
Sometimes, HTML to PDF conversion does not show the same styling in PDF as it shows in HTML. There are several reasons for that such as : 1. Bootstrap classes: Using bootstrap classes in creating PDF could be the problem.
PHP | Deleting files from local machine (unlink(): No such file or directory)
Assume following is the path on your system in which you want to delete some files through code (unlink function): C:\wamp\www Now if we use the same address in source variable (“C:\wamp\www”), it gives the following error: unlink(): No such
How to add new custom HTML pages in Totara/Moodle
Totara / moodle does not have the default feature to add custom HTML pages and display on the site. But we can achieve this by installing a plugin: “General plugins (Local): Static Pages” Steps to install and use this plugin
Using UNION syntax in CakePHP 2.4.6
Following UNION syntax works properly in CakePHP 2.4.6 version but it doesn’t work in CakePHP 2.5.2 version: $unionQuery = $dbo->buildStatement ( array( ‘fields’ => array( required fields), ‘table’ => $dbo->fullTableName(database_table_name), ‘alias’ => ‘customObject1’, ‘limit’ => null, ‘offset’ => null, ‘joins’
Heroku | An introduction to Procfile and its use
Introduction: We can make our Heroku app run different type of processes by creating a Procfile in the app. There is a specific structure and syntax that we need to follow while creating a Procfile. Following are the main points