CONTRANCE6: GET ALL CONTENTS FROM MENU TYPE CONTENTS FOR LAYOUT

created: 16.01.2019 12:01

edited: 18.01.2019 14:20

back

CHANGE: Controller/AppController.php

php
$this->set(
   'tariffCalculatorReferencesForLayout',
      $contentModel->find(
         'all',
         [
            'conditions' => [
               'menu_id' => Hash::get($menusModel->findByMountPoint('tariff-calculator-references'), 'Menu.id'),
            ],
         ]
     )
);