Search
 
SCRIPT & CODE EXAMPLE
 

PHP

codeigniter 4 pagination descending

// in Controller, type this
$articleModel = new ArticleModel();
$data = [
            'articles' => $articleModel->orderBy('id', 'DESC')
            ->paginate(5),
            'pager' => $articleModel->pager
        ];

echo view('(fileLocation)(fileName)', $data); 
Comment

PREVIOUS NEXT
Code Example
Php :: laravel flutter save image in data 
Php :: convert string to date php 
Php :: transaction in laravel 
Php :: laravel database connection check 
Php :: php redirect if not logged in 
Php :: php regex validate username 
Php :: send variable to get_template_part 
Php :: Date time format for laravel validation 
Php :: laravel latest() 
Php :: twig symfony get route 
Php :: set font sytle phpspreadsheet 
Php :: yii2 advanced nginx 
Php :: Command "route:scan" is not defined. 
Php :: Hide all updates from WordPress 
Php :: php fpm status check 
Php :: array merge php 
Php :: php artisan serve a folder 
Php :: php array_sum 
Php :: php mysql datetime format string 
Php :: getoriginal laravel 
Php :: laravel carbon create date from string 
Php :: laravel migration add unique column 
Php :: if is checkout page woocommerce 
Php :: get post thumbnail url 
Php :: wordpress search code 
Php :: vc_map type number 
Php :: php remove double spaces to single space 
Php :: missing view cakephp 
Php :: check php version mac 
Php :: show date time with milliseconds php 
ADD CONTENT
Topic
Content
Source link
Name
3+1 =