Blog

Zoop Framework for PHP 1.5 Released

We are extremely pleased to announce the release of the Zoop Framework 1.5. This is our first major release in over two years. Zoop 1.5 is the most significant update to the framework since its inception over six years ago. It comprises many months of work from many contributors. We are extremely pleased with the 1.5 release of the Zoop Framework, and consider it to be the framework best suited for modern web development.

Full release notes are available here.

Sequence component documentation 2

This is some documentation from an old wiki. We should put this in the new site somewhere.

Why Sequences

Sequencing was created because we had a document creation process that required a user to follow a certain order of pages within one or more zones. There were multiple places that needed to lead to this process. So we made sequences that would order the pages, and then at the end of the process, send the user back to whatever page he had started on. In addition, we sometimes had pages in different orders based on where they came from.

Sequence component documentation

This is the documentation for the XML used in the sequence component. I found it in an old wiki.

Introduction

Sequences consist of two things. First there are sequences of pages inside each zone. These are tags. Then there is a sequence of zones, to be strung together. These are tags.

Zoop Create

Introduction to the Zoop Create script

We are currently working on a new addition to Zoop, a script that will create a new project for you and certain elements of that project. It is meant to be run from a CLI.

Basic Usage

php zoop_create.php method params

Possible Methods

  • project (name)
  • zone (name)
  • config (name)

Examples

Paths assumed, please replace with your own locations.

Quick db_component example, plus misc magic

The db_component is a big part of zoop. For many applications, database calls are a large part the work being done. The db_component provides the interface to your data. You can either use the default connection and global functions, or make your own connections and use the methods from the database object. There are too many functions to document here(be sure to look at the documentation), but this is an example of how to set up multiple connections. It also shows a way to deal with miscellaneous functions that you may need throughout your application. Keep in mind that it's always a good idea to keep your sql calls inside objects that encapsulate your business objects/model. The next example may be dbobject, a helper for your database objects.

Quick chart_component example

Chart is an extension to the graphic component. By adding a parser as a plugin to the graphic module, you can add pie charts, bar charts, and line charts to your pdfs or images. The bar chart requires some fixes in the latest repository in svn.

Quick graphic_component example

the new graphic component allows you to use smarty templates to output to pdfs or images.

Quick AJAX example

There are many ways to make the ajax request. This probably isn't the best, but it's the one I am most comfortable using. This example requires that you have the json extension for php. It can be done without it, but json makes the data transfer from php to javascript much cleaner.