Recommended Links

Common For all pages

This section shows you how you can have editable content which is the same throughout the site ( NOTE: It is language specific ) .All the navs below are generated using snippets that are included with the framework, edit this content to see how it was generated

Sub Nav:

Main Nav:

Footer Nav:

Unique Per Page

ZIP

The ZIP class is a wrapper around the PCLZip Library( http://www.phpconcept.net/pclzip/index.en.php )

Example:
      
        //This is a controller function
        function ZIP()
        {
          //First we include the ZIP class file
          require_once '/libs/standalone/ZIP.php';

          //This is the directory to ZIP
          $dirZip = 'logs';

          //This is the path of where the ZIP will be created
          $zipPath = 'temp/logs.zip';

          //If there is already a ZIP at that path, delete it
          if(file_exists($zipPath))
            unlink($zipPath);

          //Create an instance of the ZIP class passing in the ZIP path
          $zipHandler =  new ZIP($zipPath);

          //We then add the directory to ZIP
          //View the API documentation at:
          //http://www.phpconcept.net/pclzip/man/en/index.php?methods-add
          $zipHandler->add($dirZip
                    ,PCLZIP_OPT_REMOVE_PATH, Config::$siteDir
                    ,PCLZIP_OPT_ADD_PATH, "Logs Backup");

          //This is a Utility function that is built into the framework
          //It forces the download of a file
          Utility::forceDownload($zipPath);
        }
      
      

Site Powered by Mac's PHP MVC Framework Framework of the future
Design downloaded from Zeroweb.org: Free website templates, layouts, and tools.