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


The ZIP class is a wrapper around the PCLZip Library( )

        //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/';

          //If there is already a ZIP at that path, delete it

          //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:
                    ,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

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