AngularJS: Working with JSON Data & HTTP Service

This article shows an example on how you can fetch JSON data from external file. First, let’s create an example of inline JSON data inside the controller. In the below code, in countryController, we have countries array containing country and capital name. In the HTML view, we have used ng-repeat directive to loop through the … Read more

File Upload in PEAR and Smarty

For uploading files, you need to install a package of PEAR called ‘HTTP_Upload’ along with the installation of PEAR and Smarty. HTTP_Upload is used for easy and secure managment of files submitted via HTML forms. This package provides an advanced system for managing uploads of files via HTML input type “file” fields. Features include: 1) … Read more