This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| /** | |
| * Check for form submission with a csrf check | |
| */ | |
| private function __form_submission() | |
| { | |
| if ($post = Input::post()) | |
| { | |
| $token = Arr::get($post, 'csrf'); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| // Establish search query | |
| $search = ORM::factory('blog'); | |
| // Get search total | |
| $total = $search->reset(FALSE)->count_all(); | |
| // Create pagination | |
| $pagination = Pagination::factory(array( |
NewerOlder