Showing posts with label zend tutorial. Show all posts
Showing posts with label zend tutorial. Show all posts

Thursday, December 11, 2008

Zend Framework 1.7.0 is now available

New Zend Framework released with many new components and features.

Zend Framework 1.7.0 is now available from the Zend Framework download site:

http://framework.zend.com/download/latest

This release introduces many new components and features, including:

• Zend_Amf with support for AMF0 and AMF3 protocols
• Dojo Toolkit 1.2.1
• Support for dijit editor available in the Dojo Toolkit
• Zend_Service_Twitter
• ZendX_JQuery in extras library
• Metadata API in Zend_Cache
• Google book search API in Zend_Gdata
• Preliminary support for GData Protocol v2 in Zend_Gdata
• Support for skip data processing in Zend_Search_Lucene
• Support for Open Office XML documents in Zend_Search_Lucene indexer
• Performance enhancements in Zend_Loader, Zend_Controller, and server components
• Zend_Mail_Storage_Writable_Maildir enhancements for mail delivery
• Zend_Tool in incubator
• Zend_Text_Table for formatting table using characters
• Zend_ProgressBar
• Zend_Config_Writer
• ZendX_Console_Unix_Process in the extras library
• Zend_Db_Table_Select support for Zend_Paginator
• Global parameters for routes
• Using Chain-Routes for Hostname-Routes via Zend_Config
• I18N improvements
o Application wide locale for all classes
o Data retrieving methods are now static
o Additional cache handling methods in all I18N classes
o Zend_Translate API simplified
• File transfer enhancements
o Support for file elements in subforms
o Support for multifile elements
o Support for MAX_FILES_SIZE in form
o Support for breaking validation chain
o Support for translation of failure ,messages
o New IsCompressed, IsImage, ExcludeMimeType, ExcludeExtension validators
o Support for FileInfo extension in MimeType validator
• Zend_Db_Table_Select adapater for Zend_Paginator
• Support for custom adapters in Zend_Paginator
• More flexible handling of complex types in Zend_Soap


The Zend Framework team would like to thank everyone who made this release possible. As always, our generous ZF community has provided countless new features, bug fixes, documentation translations, etc. We'd also like to thank Adobe Systems and Wade Arnold for contributing the new Zend_Amf component. A big thanks to PHP Belgium and everyone who participated in bug hunt day and/or the Zend Framework bug hunt week.


Source:- prlog.org/

Zend Framework 1.7 Includes DB2/400 Adapter

Zend Technologies, the commercial entity behind the open source PHP programming language and its related development tools, has delivered a new release of its suite of PHP tools. Zend Framework 1.7 includes a general release of the new DB2/400 adapter introduced earlier this year, which should improve the interoperability of PHP applications and DB2/400 data. The update also includes various other AJAX-related enhancements.

Zend provided an early release of the DB2/400 adapter with the delivery of Zend Core for IBM i 2.6 in September. At the time, Zend said the new adapter would provide better, faster, and more secure access to existing data and applications residing on System i server.

After poking and prodding at beta sites and the resolution of various technical issues, the DB2/400 adapter was declared ready for prime time at Adobe Systems's MAX conference in San Francisco last month, which was the venue for the launch of Zend Framework 1.7.

Zend Framework 1.7 brings other enhancements, in addition to the new data adapter. For instance, load times have improved by 25 to 50 percent, Zend says, and support for the Action Message Format (AMF) data transfer protocol should improve the product's integration with Adobe's Flex and Flash programming technologies for creating rich Internet applications (RIAs).

Other enhancements include a new editor for the Dojo Toolkit, called dijit. Dojo, which was introduced to System i shops with Zend Core for IBM i 2.6, is an open-source collection of JavaScript tools designed to help developers implement graphical and architectural elements of AJAX applications. Zend Framework 1.7 also introduces support for JQuery, a popular AJAX library that was contributed by the Zend community to the larger open source community.

In further news, Zend is now selling support subscriptions for IBM i customers utilizing Zend Framework 1.7. The subscriptions give customers access to Zend resources for gaining support over the Web and troubleshooting or answering basic questions. The standard support package costs $1,500 and gives customers access to five Web-based incidents and two hours of consulting, while the premium package, which costs $2,500, provides 10 Web-based incidents and three hours of consulting.

Source:- itjungle.com/

Monday, September 15, 2008

Zend Framework Coding Standard for PHP

Naming Conventions

1. Classes: -

Zend Framework standardizes on a class naming convention whereby the names of the classes directly map to the directories in which they are stored. The root level directory of the ZF standard library is the "Zend/" directory, whereas the root level directory of the ZF extras library is the "ZendX/" directory. All Zend Framework classes are stored hierarchially under these root directories..

Class names may only contain alphanumeric characters. Numbers are permitted in class names but are discouraged in most cases. Underscores are only permitted in place of the path separator; the filename "Zend/Db/Table.php" must map to the class name "Zend_Db_Table".

If a class name is comprised of more than one word, the first letter of each new word must be capitalized. Successive capitalized letters are not allowed, e.g. a class "Zend_PDF" is not allowed while "Zend_Pdf" is acceptable.

These conventions define a pseudo-namespace mechanism for Zend Framework. Zend Framework will adopt the PHP namespace feature when it becomes available and is feasible for our developers to use in their applications.

See the class names in the standard and extras libraries for examples of this classname convention. IMPORTANT: Code that must be deployed alongside ZF libraries but is not part of the standard or extras libraries (e.g. application code or libraries that are not distributed by Zend) must never start with "Zend_" or "ZendX_".

2. Filenames: -

For all other files, only alphanumeric characters, underscores, and the dash character ("-") are permitted. Spaces are strictly prohibited.

Any file that contains PHP code should end with the extension ".php", with the notable exception of view scripts. The following examples show acceptable filenames for Zend Framework classes.:

Zend/Db.php
Zend/Controller/Front.php
Zend/View/Helper/FormRadio.php

File names must map to class names as described above.

3. Functions and Methods: -

Function names may only contain alphanumeric characters. Underscores are not permitted. Numbers are permitted in function names but are discouraged in most cases.

Function names must always start with a lowercase letter. When a function name consists of more than one word, the first letter of each new word must be capitalized. This is commonly called "camelCase" formatting.

Verbosity is generally encouraged. Function names should be as verbose as is practical to fully describe their purpose and behavior.

These are examples of acceptable names for functions:

filterInput()
getElementById()
widgetFactory()

For object-oriented programming, accessors for instance or static variables should always be prefixed with "get" or "set". In implementing design patterns, such as the singleton or factory patterns, the name of the method should contain the pattern name where practical to more thoroughly describe behavior.

For methods on objects that are declared with the "private" or "protected" modified, the first character of the variable name must be an underscore. This is the only acceptable application of an underscore in a method name. Methods declared "public" should never contain an underscore.

Functions in the global scope (a.k.a "floating functions") are permitted but discouraged in most cases. Consider wrapping these functions in a static class.

4. Variables: -

Variable names may only contain alphanumeric characters. Underscores are not permitted. Numbers are permitted in variable names but are discouraged in most cases.

For instance variables that are declared with the "private" or "protected" modifier, the first character of the variable name must be a single underscore. This is the only acceptable application of an underscore in a variable name. Member variables declared "public" should never start with an underscore.

As with function names (see section 3.3) variable names must always start with a lowercase letter and follow the "camelCaps" capitalization convention.

Verbosity is generally encouraged. Variables should always be as verbose as practical to describe the data that the developer intends to store in them. Terse variable names such as "$i" and "$n" are discouraged for all but the smallest loop contexts. If a loop contains more than 20 lines of code, the index variables should have more descriptive names.

5. Constants: -

Constants may contain both alphanumeric characters and underscores. Numbers are permitted in constant names.

All letters used in a constant name must be capitalized.

Words in constant names must be separated by underscore characters. For example, EMBED_SUPPRESS_EMBED_EXCEPTION is permitted but EMBED_SUPPRESSEMBEDEXCEPTION is not.

Constants must be defined as class members with the "const" modifier. Defining constants in the global scope with the "define" function is permitted but strongly discouraged.

Source:- framework.zend.com/

Saturday, September 13, 2008

Zend Framework Coding Standard for PHP

PHP File Formatting

1. General

For files that contain only PHP code, the closing tag ("?>") is never permitted. It is not required by PHP, and omitting it prevents the accidental injection of trailing whitespace into the response.
IMPORTANT: Inclusion of arbitrary binary data as permitted by __HALT_COMPILER() is prohibited from PHP files in the Zend Framework project or files derived from them. Use of this feature is only permitted for some installation scripts.

2. Indentation

Indentation should consist of 4 spaces. Tabs are not allowed.

3. Maximum Line Length

The target line length is 80 characters. That is to say, ZF developers should strive keep each line of their code under 80 characters where possible and practical. However, longer lines are acceptable in some circumstances. The maximum length of any line of PHP code is 120 characters.

4. Line Termination

Line termination follows the Unix text file convention. Lines must end with a single linefeed (LF) character. Linefeed characters are represented as ordinal 10, or hexadecimal 0x0A.

Note: Do not use carriage returns (CR) as is the convention in Apple OS's (0x0D) or the carriage return/linefeed combination (CRLF) as is standard for the Windows OS (0x0D, 0x0A).

Source:- framework.zend.com/

Thursday, July 24, 2008

PHP and the Zend Framework

In a previous series of articles in IT Jungle, I introduced you to the enablement of the PHP language, via Zend Core, on i5/OS and the capabilities that PHP provides for the development and deployment of Web applications integrated with i5/OS objects and DB2 data. (See Related Stories below.) The customer interest in PHP has been high and I receive numerous questions at customer events on its usage of PHP on IBM i. Many people also ask about Zend Framework. What is Zend Framework? Can I use it on i5/OS? How can I integrate the advanced functionality that Zend Framework provides?

Let's begin with a general description. Zend Framework is a collection of pre-canned objects (classes and function calls) that facilitate the building of modern applications and Web services by integrating advanced functionality into existing Web applications. Zend Framework includes several components:

  • Zend_Acl: Provides Access Control List (ACL) functionality and privileges management
  • Zend_Config: Simplifies the use of configuration data for Web applications
  • Zend_Controller and Zend_View: Provides the infrastructure for Model-View_Controller (MVC) Websites
  • Zend_Feed: Provides a simple way to work with live syndicated feeds
  • Zend_Filter and Zend_Validate: Facilitates the development of secure Websites by providing basic tools necessary for filtering and validation
  • Zend_Gdata: Google data APIs that provide read/write access to services hosted at google.com such as Spreadsheets, Calendar, Blogger, and CodeSearch
  • Zend_Mail and Zend_Mime: Create and send email messages
  • Zend_PDF: Creates, reads, and modifies PDF documents from PHP applications

The Zend Framework library should be located in a directory that is in the include_path for Zend Core. Typically this would be:

/usr/local/zend/core/include/zend/include

Zend Framework is included and installed as part of Zend Core as of Version 2.5. It can also be downloaded from http://framework.zend.com.

The programmer's reference for Zend Framework can be found at http://framework.zend.com/manual/en. I recommend you refer to it often as you are looking to integrate advanced functionality into your Web/PHP applications.

Let's take a look at one of the Zend Framework capabilities, Zend_Pdf, which facilitates working with PDF documents from your PHP application. A full example of Zend_Pdf can be found at http://framework.zend.com/manual/en/zend.pdf.usage.html. To create and load PDF documents from your PHP application you would first create a PDF class through a statement such as:

$pdf = new Zend_Pdf();

The above statement creates a new instance of the Zend_Pdf object and that instance is referenced through the $pdf variable. Once the instance has been created a document can be loaded from a file through the following call:

$pdf = Zend_PDF::load($filename);

Changes to the PDF document can be saved by calling the 'save' method of the PDF object as follows:

$pdf->save($filename, true);

Note: Prior to usage of the Zend_Pdf class and related function calls you need to include the Zend.pdf framework by including the following line in your PHP code:

require_once 'Zend/Pdf.php'

Do you have questions on PHP and/or MySQL on IBM i? I would love to hear them and have a chance to feature them in future columns in IT Jungle. Send your questions for me to Ted Holt via the IT Jungle Contact page.

Erwin Earley is an advisory software engineer in the IBM lab located in Rochester, Minnesota, and heads up the Open Source Technologies Center of Competency for System i within the System i Technology Center. At that center, he provides education and enablement services for open source related technologies on System i including Linux, MySQL, and Zend's PHP. Earley currently holds certifications from Red Hat as well as the Linux Professional Institute and is a candidate for certification with Zend's PHP.


source:- itjungle.com/

Wednesday, April 16, 2008

Offshore software development India has successfully delivered project based on Zend framework.

Offshore software development India has successfully delivered project based on Zend framework. The ECF portal for the UK is based on Zend framework using PHP 5.2 and PostgreSQL 8.2. This is back to back successful implementation of another framework after Symfony framework in PHP and share point server site definition in .net. The ECF portal is going to live by end of March, 2008. The best part of the project is the enhancement of the core Zend framework 1.0.3. Layouts and LDAP modules are extended from 1.0 .3 which are now available in version 1.5.

The team at Offshore Software Development India has developed such expertise that made them possible to deliver portal based on different framework like Zend, Symfony and open sources like Drupal, Joomla, SugarCRM, Magento.

The friendly approach of OSDI to the clients and different technologies helps them to translate their IT strategies into clients’ business advantages.

Please contact info@offshoresoftwaredevelopmentindia.com for the inquiry and development using Zend framework or any other open source.

About Zend framework:

Extending the art & spirit of PHP, Zend Framework is based on simplicity, object-oriented best practices, corporate friendly licensing, and a rigorously tested agile codebase. Zend Framework is focused on building more secure, reliable, and modern Web 2.0 applications & web services, and consuming widely available APIs from leading vendors like Google, Amazon, Yahoo!, Flickr, as well as API providers and cataloguers like StrikeIron and ProgrammableWeb.

  • An extensible and well-tested code base – easy to augment
  • A flexible architecture – not locked-in to a rigid application structure
  • No configuration files necessary to get up and running – or when maintaining and deploying your apps

About Offshore Software Development India:

OSDI offering a wide range of skills in IT Services, Mainly focusing in Business Process Outsourcing (BPO), Software Development, IT Consultancy, Web Designing / Web Development, Offshore Outsourcing, Multimedia, Customized Software Applications and Search Engine Optimization (SEO).

For more information please refer http://www.offshoresoftwaredevelopmentindia.com