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

Pagination

The Pagination library provides functions to paginate over any array

Example:

  //Include the Pagination Library
  require_once 'libs/standalone/Pagination.php';

  //Create an instance of the Pagination class new Pagination('[PagenationKey]', [NumberOfResultsPerTab], [MaxNumberOfTabsPerPage]);
  $pagination = new Pagination('search', 5);

  $pagenationIndex = 0;

  //Get the current page index
  if( Get::isExists('pageIndex') )
    $pagenationIndex = Get::getByKey('pageIndex');

  $resultsArray = array();
  $resultsArray[] = array( 'RowName'=>'Name1');
  $resultsArray[] = array( 'RowName'=>'Name2');

  //Set the Result Array
  if(isset($resultsArray))
    $pagination->setResults($resultsArray);

  //Get results that correspond to the current page index
  $results = $pagination->getResultsByPageIndex($pagenationIndex);

  //Loop through each result
  foreach($results as $result)
  {
    //Render your results as you like
  }

  //Finally render the pagenation Nav
   if( count($results) > 0 )
    $pagination->renderNav($pagenationIndex);



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