Answers for "where condition with pagination in cakephp"

PHP
2

cakephp pagination

// admin_index

$all_settings = array(
  'contain' => array(
    'CreditType' => array(
      'CreditTypeLanguage' => array(
        'conditions' => array(
          'CreditTypeLanguage.alias' => $this->lang18, // 'zho', 'eng', 'chi'
        ),
      ),
    ),
  ),
  'recursive' => 0,
);

$this->Paginator->settings = $all_settings;
$companyCredits = $this->paginate();
$this->set(compact('companyCredits'));
Posted by: Guest on October-13-2020

Code answers related to "where condition with pagination in cakephp"

Browse Popular Code Answers by Language