1. Go to this page and download the library: Download mateusz/frontend library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
mateusz / frontend example snippets
$pages = new AjaxPaginatedList(Page::get(), $this->request);
public function init() {
parent::init();
// First, load jQuery - don't forget to update the paths!
Requirements::javascript('<your-script-path>/jquery-2.0.0.js');
Requirements::javascript('<your-script-path>//jquery-ui-1.10.3.custom.js');
// Second, load scripts for this module - order os important.
Requirements::javascript('framework/admin/javascript/lib.js');
Requirements::javascript('frontend/javascript/underscore.js');
Requirements::javascript('frontend/javascript/jquery.ss.pagination.js');
Requirements::javascript('frontend/javascript/jquery.ss.endless.js'); // choose one or both.
// Finally, pull in your custom code.
Requirements::javascript('<your-script-path>/your-script.js');
}
public function Pages() {
return new AjaxPaginatedList(Page::get(), $this->request);
}
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.