30
2012
ZF Navigation Helper
In Zend Framework, Zend_Navigation() is a component which we can use to navigate through menus, links, sitemap or other navigation related purpose. For applying the navigation in your web application we can do this by using these following steps to achieve this. Step 1: Firstly we will create a xml file inside the configs directory. application/configs/navigation.xml <?xml version=”1.0″ encoding=”utf-8″?> <configdata> <nav> <home> <class>testingclass</class> <label>Home</label> <uri>/Paintourhome/admin</uri> <liclass>someclass</liclass> </home> <user> <module>admin</module> <controller>user</controller> <action>index</action> <label>Users</label> </user> <order> <label>Order</label> [...]
29
2012
Zend ACL
In Zend framework if we want to implement role type for our application then we can use Zend_Acl () which provides an access control list for privileges management through role and resource. For this, firstly we should understand two terms: Resource: It is an object that access is controlled. Zend Framework provide very simple way to create a resource. Zend_Acl_Resource_Interface that provide single method getResourceId(). You can add multiple resources to Zend_Acl. Resource will be [...]
28
2012
Defining Attributes of a php5 class
An attribute is also known as data members and is used to hold data of a class. Attributes are also known by name “properties” or “fields”. Attribute is used to hold data for a class. Attributes are specific for a class.For example a customer class would hold data related to a customer and an order class would hold data related to order. Defining and Initializing Attributes of a Class: Attributes are defined by using one [...]
27
2012
Creating Own Libraries in CodeIgniter
About Libraries: Whenever we talk about “Libraries” we normally refer to the classes that are located in the libraries directory and described in the Class Reference of this user guide. Now we will describe how can you create your own libraries within your ‘application/libraries’ directory in order to keep separate both your local resources and global framework resources. Codeigniter has one advantage that will allow your libraries to extend native classes if simply you want [...]
24
2012
How to Create a Php5 Class Object
Object: An individual instance of the data structure defined by a class. You define a class once and then make many objects that belong to it. Objects are also known as instance. you can create as many objects as you like of that class type. Each object have their existance separately. New: To create an instance of a class, the new keyword must be used. An object will always be created unless the object has [...]
24
2012
How to Create a Php5 Class
Class: A class is a user defined data type and is a collection of variables and functions that serves a common purpose. It gives you the ability to think about real world objects and translate them into code. You can think of a class as a template for making many instances of the same kind (or class) of object. A class has both member variables and member functions. Simple Class Definition Structure: Basic class definitions [...]
22
2012
Importing mysql records via CSV through PHP
CSV file is a comma-separated file which we will create manually by naming e.g emp.csv and place the values of database column which we want to store in database.Then we take a php file e.g importcsv.php and write the following code in it.For getting more information about csv use this link : * http://blog.3dmick.com/2012/08/csv-file-processing-in-php/ Firstly create a database in mysql e.g named as employee as we did and make a table named as csvimport with [...]
20
2012
Jquery Infinite Scrolling
Infinite scroll is also called autopagerize , endless pages. But it is the pre-fetching content from a subsequent page, showing loading image in the bottom for few seconds and after that new content is added directly to the user’s current page. We use Infinite scrolling when we have too large content to show on initial load. Mostly we use infinite scrolling in case of searching results and blog posts. Use below code in your HTML [...]
20
2012
PHP Directory Functions
You can use PHP to access a directory, to know the content (files and sub directories) of a directory, to create a directory and to delete a directory. There are various functions which we can use for creation, deletion of directory. These directory functions allow you to retrieve information about directories and their contents. Directory Functions : 1) Change Directory : ‘chdir()’ function is used to change the current directory to the specified directory. This [...]
18
2012
Load Image from server in Xcode
If you are trying to build an iphone/ipad app in xcode that load image from server then this blog will be very helpful for you. In this application we will see how to load an image from server and use it in your app. This is easiest way to load an image from server. You need to follow some steps in xcode. Step 1: Open your xcode and create a view based project and named [...]
17
2012
Web Services in PHP
Web Services: Web services are a way to communicate with other electronic machines via standard transport protocols with the XML, SOAP, REST or WSDL or to publish self content over the internet i.e. simply converting your application into a responding web application that can talk with other application or can respond to a standard request. Web Services enable businesses to share application functionality regardless of the source language, operating system, or hardware used to create [...]
16
2012
CSV File Processing in PHP
If you want to exchange data either import or export then you can do this through CSV file format in your php application. To export the data of a table from mysql in CSV format go to export option given in mysql admin. Then here you will find many options e.g CSV , pdf, CSV in MS Excel, Microsoft office etc, by default (sql) option comes. Choose CSV option for exporting your data in csv file format. CSV [...]
14
2012
PHP/CURL
PHP supports a library called “libcurl(Curl Library in PHP)” which is designed to safely fetch and display the verbose of data or information from remote sites. CURL library is in built in php no extra installation is needed but php and libcurl is installed. Libcurl library will help to connect and communicate with many different types of servers with different types of protocols. This library supports many protocols e.g DICT, FILE, FTP, FTPS, GOPHER, HTTP, [...]
14
2012
Sending email with attachments using ZendFramework
In this blog we will see how to send an e-mail with and without an attachment using the Zend Framework. First of all we will learn a bit about Zend_Mail() function to send an e-mail . Zend_mail provides a simple functionality to compose a mail with text, subject and sender. It has ability to add multiple recipients, send multiple messages with one smtp connection or HTML e-mail or multi-part e-mail messages i.e. mail with attachement. [...]
14
2012
Basics of Oops concepts in php
If you are working with procedural language then you must be knowing the problems that you face while using procedural code structure. There are problems of repeating the code, flexibility issue, maintenance problem, less easy to understand and fix bug. Using Object Oriented php we overcome all these problems. Main OOPs concepts are: 1. how to create a php5 class 2. how to create a php5 class object 3. defining Attributes of a PHP5 class [...]
13
2012
Hashing In PHP
A hash function is used to convert an input of arbitrary length into an output of fixed length, which is called the message digest or hash of the input. Then we use this output in place of the original input. The output which we will get after appling hash function always has the same length.Also, the output is much shorter than the input, so that processing and storing can be done much quicker. In PHP [...]
13
2012
File Handling in php
In this blog we will learn about basic function used to handle files. File handling has its own importance, as we know that to make the output permanent we need to use file handling. File handling functions in php are very user-friendly. This tutorial will let you know about every fact of file handling. We will learn about create, read, write, append, close and delete operations on file. Opening a file: Before performing any of [...]
7
2012
Captcha In Zend
CAPTCHA stands for “Completely Automated Turing test to tell Computers and Humans Apart;” it is used as a challenge-response to ensure that the individual submitting information is a human and not an automated process. Typically, a captcha is used with form submissions where only authenticated users are not necessary, but you desire to prevent spam submissions. Captchas can take variety of forms, including asking logic questions, presenting skewed fonts, and presenting images and asking how [...]
4
2012
Xml Processing in Javascript
XML: XML stands for Extensible Markup Language. It is classified as an extensible language because it allows its users to define their own tags. The primary purpose of this document is the sharing of structured data across different information systems, particularly via the Internet. But unfortunately when you see HTML files and XML files you will find some similarity but there exists a difference between HTML and XML Document. 1. XML was designed to describe [...]
4
2012
Zend framework pagination
Pagination is the process of dividing (content) into discrete pages, either electronic pages or Printed pages. Today the latter are usually simply instances of the former that have been outputted to a printing device, such as a desktop printer or a modern printing press. If you have already created pages and you want to apply pagination to them, it would not be a big deal. Pagination is three step process. 1. you will need to [...]
Categories
- AJAX (2)
- Android (6)
- ASP.Net (9)
- CodeIgniter (7)
- htaccess (2)
- HTML5 (3)
- iPhone (13)
- Java Script (3)
- Joomla (2)
- jQuery (9)
- Magento (1)
- Mobile App (18)
- MySQL (12)
- PHP (78)
- Testing (4)
- Uncategorized (8)
- WordPress (4)
- Xcode (14)
- Zend (29)
An article by