Notice (8) : Undefined index: ordem [APP/Controller/CardapiosController.php , line 78 ]Code Context $itens [ $dia ][] = [
'id' => $alimento [ 'periodo_id' ],
'ordem' => $alimento [ 'Periodo' ][ 'ordem' ],
$tipo = '1'
$ano = '2020'
$mes = '04'
$cardapios = array(
(int) 0 => array(
'Cardapio' => array(
'mes_id' => '4',
'dia' => '1',
'cardapio_tipo_id' => '1',
'id' => '1460'
),
'CardapioAlimento' => array()
),
(int) 1 => array(
'Cardapio' => array(
'mes_id' => '4',
'dia' => '2',
'cardapio_tipo_id' => '1',
'id' => '1461'
),
'CardapioAlimento' => array()
),
(int) 2 => array(
'Cardapio' => array(
'mes_id' => '4',
'dia' => '3',
'cardapio_tipo_id' => '1',
'id' => '1462'
),
'CardapioAlimento' => array()
),
(int) 3 => array(
'Cardapio' => array(
'mes_id' => '4',
'dia' => '6',
'cardapio_tipo_id' => '1',
'id' => '1463'
),
'CardapioAlimento' => array()
),
(int) 4 => array(
'Cardapio' => array(
'mes_id' => '4',
'dia' => '7',
'cardapio_tipo_id' => '1',
'id' => '1464'
),
'CardapioAlimento' => array()
),
(int) 5 => array(
'Cardapio' => array(
'mes_id' => '4',
'dia' => '8',
'cardapio_tipo_id' => '1',
'id' => '1465'
),
'CardapioAlimento' => array()
),
(int) 6 => array(
'Cardapio' => array(
'mes_id' => '4',
'dia' => '9',
'cardapio_tipo_id' => '1',
'id' => '1466'
),
'CardapioAlimento' => array()
),
(int) 7 => array(
'Cardapio' => array(
'mes_id' => '4',
'dia' => '10',
'cardapio_tipo_id' => '1',
'id' => '1467'
),
'CardapioAlimento' => array()
),
(int) 8 => array(
'Cardapio' => array(
'mes_id' => '4',
'dia' => '13',
'cardapio_tipo_id' => '1',
'id' => '1468'
),
'CardapioAlimento' => array()
),
(int) 9 => array(
'Cardapio' => array(
'mes_id' => '4',
'dia' => '14',
'cardapio_tipo_id' => '1',
'id' => '1469'
),
'CardapioAlimento' => array()
),
(int) 10 => array(
'Cardapio' => array(
'mes_id' => '4',
'dia' => '15',
'cardapio_tipo_id' => '1',
'id' => '1470'
),
'CardapioAlimento' => array(
(int) 0 => array(
[maximum depth reached]
),
(int) 1 => array(
[maximum depth reached]
),
(int) 2 => array(
[maximum depth reached]
),
(int) 3 => array(
[maximum depth reached]
)
)
),
(int) 11 => array(
'Cardapio' => array(
'mes_id' => '4',
'dia' => '16',
'cardapio_tipo_id' => '1',
'id' => '1471'
),
'CardapioAlimento' => array()
),
(int) 12 => array(
'Cardapio' => array(
'mes_id' => '4',
'dia' => '17',
'cardapio_tipo_id' => '1',
'id' => '1472'
),
'CardapioAlimento' => array()
),
(int) 13 => array(
'Cardapio' => array(
'mes_id' => '4',
'dia' => '20',
'cardapio_tipo_id' => '1',
'id' => '1473'
),
'CardapioAlimento' => array()
),
(int) 14 => array(
'Cardapio' => array(
'mes_id' => '4',
'dia' => '21',
'cardapio_tipo_id' => '1',
'id' => '1474'
),
'CardapioAlimento' => array()
),
(int) 15 => array(
'Cardapio' => array(
'mes_id' => '4',
'dia' => '22',
'cardapio_tipo_id' => '1',
'id' => '1475'
),
'CardapioAlimento' => array()
),
(int) 16 => array(
'Cardapio' => array(
'mes_id' => '4',
'dia' => '23',
'cardapio_tipo_id' => '1',
'id' => '1476'
),
'CardapioAlimento' => array()
),
(int) 17 => array(
'Cardapio' => array(
'mes_id' => '4',
'dia' => '24',
'cardapio_tipo_id' => '1',
'id' => '1477'
),
'CardapioAlimento' => array(
(int) 0 => array(
[maximum depth reached]
),
(int) 1 => array(
[maximum depth reached]
),
(int) 2 => array(
[maximum depth reached]
),
(int) 3 => array(
[maximum depth reached]
)
)
),
(int) 18 => array(
'Cardapio' => array(
'mes_id' => '4',
'dia' => '27',
'cardapio_tipo_id' => '1',
'id' => '1478'
),
'CardapioAlimento' => array()
),
(int) 19 => array(
'Cardapio' => array(
'mes_id' => '4',
'dia' => '28',
'cardapio_tipo_id' => '1',
'id' => '1479'
),
'CardapioAlimento' => array()
),
(int) 20 => array(
'Cardapio' => array(
'mes_id' => '4',
'dia' => '29',
'cardapio_tipo_id' => '1',
'id' => '1480'
),
'CardapioAlimento' => array()
),
(int) 21 => array(
'Cardapio' => array(
'mes_id' => '4',
'dia' => '30',
'cardapio_tipo_id' => '1',
'id' => '1481'
),
'CardapioAlimento' => array()
)
)
$itens = array(
(int) 15 => array(
(int) 0 => array(
'id' => '1',
'ordem' => '1',
'alimentos' => 'PERA E SUCO DE MELÃO'
),
(int) 1 => array(
'id' => '2',
'ordem' => '2',
'alimentos' => 'SOPA DE CENOURA, BATATA, COUVE E FRANGO'
)
)
)
$periodos = array(
(int) 1 => 'Lanche da Manhã',
(int) 2 => 'Almoço I'
)
$cardapio = array(
'Cardapio' => array(
'mes_id' => '4',
'dia' => '15',
'cardapio_tipo_id' => '1',
'id' => '1470'
),
'CardapioAlimento' => array(
(int) 0 => array(
'alimentos' => 'PERA E SUCO DE MELÃO',
'periodo_id' => '1',
'cardapio_id' => '1470',
'Periodo' => array(
[maximum depth reached]
)
),
(int) 1 => array(
'alimentos' => 'SOPA DE CENOURA, BATATA, COUVE E FRANGO',
'periodo_id' => '2',
'cardapio_id' => '1470',
'Periodo' => array(
[maximum depth reached]
)
),
(int) 2 => array(
'alimentos' => 'ARROZ, FEIJÃO, POLENTA CREMOSA A BOLONHESA, QUIABO ASSADO, SALADA DE CHUCHU E TOMATE',
'periodo_id' => '4',
'cardapio_id' => '1470',
'Periodo' => array([maximum depth reached])
),
(int) 3 => array(
'alimentos' => 'FRUTA DA ÉPOCA E SUCO DE ABACAXI COM COUVE OU CAJU',
'periodo_id' => '3',
'cardapio_id' => '1470',
'Periodo' => array(
[maximum depth reached]
)
)
)
)
$dia = '15'
$alimento = array(
'alimentos' => 'ARROZ, FEIJÃO, POLENTA CREMOSA A BOLONHESA, QUIABO ASSADO, SALADA DE CHUCHU E TOMATE',
'periodo_id' => '4',
'cardapio_id' => '1470',
'Periodo' => array()
)
$key = (int) 3
$value = 'Lanche da Tarde'
$this = object(CardapiosController) {
components => array(
'Session' => null,
'Auth' => null,
'Acl' => null,
'AclTools.AclTools' => null,
'Paginator' => null,
'PaginateFilter.PaginateFilter' => null
)
helpers => array(
(int) 0 => 'AclTools.AclTools',
(int) 1 => 'Uploads',
(int) 2 => 'Images'
)
name => 'Cardapios'
uses => array(
(int) 0 => 'Cardapio',
(int) 1 => 'Config',
(int) 2 => 'CardapioTipo'
)
request => object(CakeRequest) {}
response => object(CakeResponse) {}
viewPath => 'Cardapios'
layoutPath => null
viewVars => array(
'meses' => array(
[maximum depth reached]
),
'semanas' => array(
[maximum depth reached]
),
'cardapioTipos' => array(
[maximum depth reached]
),
'periodos' => array(
[maximum depth reached]
),
'defaultContent' => array(
[maximum depth reached]
),
'siteConfig' => array(
[maximum depth reached]
)
)
view => 'imprimir'
layout => 'default'
autoRender => false
autoLayout => true
Components => object(ComponentCollection) {}
viewClass => 'View'
View => null
ext => '.ctp'
plugin => null
cacheAction => false
passedArgs => array(
(int) 0 => '1',
(int) 1 => '2020',
(int) 2 => '04'
)
scaffold => false
methods => array(
(int) 1 => 'imprimir',
(int) 2 => 'alimentos',
(int) 3 => 'ajax_incluirAlimento',
(int) 4 => 'ajax_refeicoes',
(int) 5 => 'ajax_calendario',
(int) 6 => 'admin_index',
(int) 7 => 'admin_calendario',
(int) 8 => 'admin_view',
(int) 9 => 'admin_add',
(int) 10 => 'admin_edit',
(int) 11 => 'admin_delete'
)
modelClass => 'Cardapio'
modelKey => 'cardapio'
validationErrors => null
Session => object(SessionComponent) {}
Auth => object(AuthComponent) {}
Acl => object(AclComponent) {}
AclTools => object(AcltoolsComponent) {}
Paginator => object(PaginatorComponent) {}
PaginateFilter => object(PaginateFilterComponent) {}
Cardapio => object(Cardapio) {}
Config => object(Config) {}
CardapioTipo => object(CardapioTipo) {}
Semana => object(Semana) {}
[protected] _responseClass => 'CakeResponse'
[protected] _mergeParent => 'AppController'
[protected] _eventManager => object(CakeEventManager) {}
} CardapiosController::imprimir() - APP/Controller/CardapiosController.php, line 78
ReflectionMethod::invokeArgs() - [internal], line ??
Controller::invokeAction() - CORE/Cake/Controller/Controller.php, line 490
Dispatcher::_invoke() - CORE/Cake/Routing/Dispatcher.php, line 193
Dispatcher::dispatch() - CORE/Cake/Routing/Dispatcher.php, line 167
[main] - APP/webroot/index.php, line 99 Notice (8) : Undefined index: id [APP/Controller/CardapiosController.php , line 83 ]Code Context
foreach ( $this -> viewVars [ 'periodos' ] as $key => $value ) {
if ( $alimento [ 'Periodo' ][ 'id' ] == $key ) {
$tipo = '1'
$ano = '2020'
$mes = '04'
$cardapios = array(
(int) 0 => array(
'Cardapio' => array(
'mes_id' => '4',
'dia' => '1',
'cardapio_tipo_id' => '1',
'id' => '1460'
),
'CardapioAlimento' => array()
),
(int) 1 => array(
'Cardapio' => array(
'mes_id' => '4',
'dia' => '2',
'cardapio_tipo_id' => '1',
'id' => '1461'
),
'CardapioAlimento' => array()
),
(int) 2 => array(
'Cardapio' => array(
'mes_id' => '4',
'dia' => '3',
'cardapio_tipo_id' => '1',
'id' => '1462'
),
'CardapioAlimento' => array()
),
(int) 3 => array(
'Cardapio' => array(
'mes_id' => '4',
'dia' => '6',
'cardapio_tipo_id' => '1',
'id' => '1463'
),
'CardapioAlimento' => array()
),
(int) 4 => array(
'Cardapio' => array(
'mes_id' => '4',
'dia' => '7',
'cardapio_tipo_id' => '1',
'id' => '1464'
),
'CardapioAlimento' => array()
),
(int) 5 => array(
'Cardapio' => array(
'mes_id' => '4',
'dia' => '8',
'cardapio_tipo_id' => '1',
'id' => '1465'
),
'CardapioAlimento' => array()
),
(int) 6 => array(
'Cardapio' => array(
'mes_id' => '4',
'dia' => '9',
'cardapio_tipo_id' => '1',
'id' => '1466'
),
'CardapioAlimento' => array()
),
(int) 7 => array(
'Cardapio' => array(
'mes_id' => '4',
'dia' => '10',
'cardapio_tipo_id' => '1',
'id' => '1467'
),
'CardapioAlimento' => array()
),
(int) 8 => array(
'Cardapio' => array(
'mes_id' => '4',
'dia' => '13',
'cardapio_tipo_id' => '1',
'id' => '1468'
),
'CardapioAlimento' => array()
),
(int) 9 => array(
'Cardapio' => array(
'mes_id' => '4',
'dia' => '14',
'cardapio_tipo_id' => '1',
'id' => '1469'
),
'CardapioAlimento' => array()
),
(int) 10 => array(
'Cardapio' => array(
'mes_id' => '4',
'dia' => '15',
'cardapio_tipo_id' => '1',
'id' => '1470'
),
'CardapioAlimento' => array(
(int) 0 => array(
[maximum depth reached]
),
(int) 1 => array(
[maximum depth reached]
),
(int) 2 => array(
[maximum depth reached]
),
(int) 3 => array(
[maximum depth reached]
)
)
),
(int) 11 => array(
'Cardapio' => array(
'mes_id' => '4',
'dia' => '16',
'cardapio_tipo_id' => '1',
'id' => '1471'
),
'CardapioAlimento' => array()
),
(int) 12 => array(
'Cardapio' => array(
'mes_id' => '4',
'dia' => '17',
'cardapio_tipo_id' => '1',
'id' => '1472'
),
'CardapioAlimento' => array()
),
(int) 13 => array(
'Cardapio' => array(
'mes_id' => '4',
'dia' => '20',
'cardapio_tipo_id' => '1',
'id' => '1473'
),
'CardapioAlimento' => array()
),
(int) 14 => array(
'Cardapio' => array(
'mes_id' => '4',
'dia' => '21',
'cardapio_tipo_id' => '1',
'id' => '1474'
),
'CardapioAlimento' => array()
),
(int) 15 => array(
'Cardapio' => array(
'mes_id' => '4',
'dia' => '22',
'cardapio_tipo_id' => '1',
'id' => '1475'
),
'CardapioAlimento' => array()
),
(int) 16 => array(
'Cardapio' => array(
'mes_id' => '4',
'dia' => '23',
'cardapio_tipo_id' => '1',
'id' => '1476'
),
'CardapioAlimento' => array()
),
(int) 17 => array(
'Cardapio' => array(
'mes_id' => '4',
'dia' => '24',
'cardapio_tipo_id' => '1',
'id' => '1477'
),
'CardapioAlimento' => array(
(int) 0 => array(
[maximum depth reached]
),
(int) 1 => array(
[maximum depth reached]
),
(int) 2 => array(
[maximum depth reached]
),
(int) 3 => array(
[maximum depth reached]
)
)
),
(int) 18 => array(
'Cardapio' => array(
'mes_id' => '4',
'dia' => '27',
'cardapio_tipo_id' => '1',
'id' => '1478'
),
'CardapioAlimento' => array()
),
(int) 19 => array(
'Cardapio' => array(
'mes_id' => '4',
'dia' => '28',
'cardapio_tipo_id' => '1',
'id' => '1479'
),
'CardapioAlimento' => array()
),
(int) 20 => array(
'Cardapio' => array(
'mes_id' => '4',
'dia' => '29',
'cardapio_tipo_id' => '1',
'id' => '1480'
),
'CardapioAlimento' => array()
),
(int) 21 => array(
'Cardapio' => array(
'mes_id' => '4',
'dia' => '30',
'cardapio_tipo_id' => '1',
'id' => '1481'
),
'CardapioAlimento' => array()
)
)
$itens = array(
(int) 15 => array(
(int) 0 => array(
'id' => '1',
'ordem' => '1',
'alimentos' => 'PERA E SUCO DE MELÃO'
),
(int) 1 => array(
'id' => '2',
'ordem' => '2',
'alimentos' => 'SOPA DE CENOURA, BATATA, COUVE E FRANGO'
),
(int) 2 => array(
'id' => '4',
'ordem' => null,
'alimentos' => 'ARROZ, FEIJÃO, POLENTA CREMOSA A BOLONHESA, QUIABO ASSADO, SALADA DE CHUCHU E TOMATE'
)
)
)
$periodos = array(
(int) 1 => 'Lanche da Manhã',
(int) 2 => 'Almoço I'
)
$cardapio = array(
'Cardapio' => array(
'mes_id' => '4',
'dia' => '15',
'cardapio_tipo_id' => '1',
'id' => '1470'
),
'CardapioAlimento' => array(
(int) 0 => array(
'alimentos' => 'PERA E SUCO DE MELÃO',
'periodo_id' => '1',
'cardapio_id' => '1470',
'Periodo' => array(
[maximum depth reached]
)
),
(int) 1 => array(
'alimentos' => 'SOPA DE CENOURA, BATATA, COUVE E FRANGO',
'periodo_id' => '2',
'cardapio_id' => '1470',
'Periodo' => array(
[maximum depth reached]
)
),
(int) 2 => array(
'alimentos' => 'ARROZ, FEIJÃO, POLENTA CREMOSA A BOLONHESA, QUIABO ASSADO, SALADA DE CHUCHU E TOMATE',
'periodo_id' => '4',
'cardapio_id' => '1470',
'Periodo' => array([maximum depth reached])
),
(int) 3 => array(
'alimentos' => 'FRUTA DA ÉPOCA E SUCO DE ABACAXI COM COUVE OU CAJU',
'periodo_id' => '3',
'cardapio_id' => '1470',
'Periodo' => array(
[maximum depth reached]
)
)
)
)
$dia = '15'
$alimento = array(
'alimentos' => 'ARROZ, FEIJÃO, POLENTA CREMOSA A BOLONHESA, QUIABO ASSADO, SALADA DE CHUCHU E TOMATE',
'periodo_id' => '4',
'cardapio_id' => '1470',
'Periodo' => array()
)
$key = (int) 1
$value = 'Lanche da Manhã'
$this = object(CardapiosController) {
components => array(
'Session' => null,
'Auth' => null,
'Acl' => null,
'AclTools.AclTools' => null,
'Paginator' => null,
'PaginateFilter.PaginateFilter' => null
)
helpers => array(
(int) 0 => 'AclTools.AclTools',
(int) 1 => 'Uploads',
(int) 2 => 'Images'
)
name => 'Cardapios'
uses => array(
(int) 0 => 'Cardapio',
(int) 1 => 'Config',
(int) 2 => 'CardapioTipo'
)
request => object(CakeRequest) {}
response => object(CakeResponse) {}
viewPath => 'Cardapios'
layoutPath => null
viewVars => array(
'meses' => array(
[maximum depth reached]
),
'semanas' => array(
[maximum depth reached]
),
'cardapioTipos' => array(
[maximum depth reached]
),
'periodos' => array(
[maximum depth reached]
),
'defaultContent' => array(
[maximum depth reached]
),
'siteConfig' => array(
[maximum depth reached]
)
)
view => 'imprimir'
layout => 'default'
autoRender => false
autoLayout => true
Components => object(ComponentCollection) {}
viewClass => 'View'
View => null
ext => '.ctp'
plugin => null
cacheAction => false
passedArgs => array(
(int) 0 => '1',
(int) 1 => '2020',
(int) 2 => '04'
)
scaffold => false
methods => array(
(int) 1 => 'imprimir',
(int) 2 => 'alimentos',
(int) 3 => 'ajax_incluirAlimento',
(int) 4 => 'ajax_refeicoes',
(int) 5 => 'ajax_calendario',
(int) 6 => 'admin_index',
(int) 7 => 'admin_calendario',
(int) 8 => 'admin_view',
(int) 9 => 'admin_add',
(int) 10 => 'admin_edit',
(int) 11 => 'admin_delete'
)
modelClass => 'Cardapio'
modelKey => 'cardapio'
validationErrors => null
Session => object(SessionComponent) {}
Auth => object(AuthComponent) {}
Acl => object(AclComponent) {}
AclTools => object(AcltoolsComponent) {}
Paginator => object(PaginatorComponent) {}
PaginateFilter => object(PaginateFilterComponent) {}
Cardapio => object(Cardapio) {}
Config => object(Config) {}
CardapioTipo => object(CardapioTipo) {}
Semana => object(Semana) {}
[protected] _responseClass => 'CakeResponse'
[protected] _mergeParent => 'AppController'
[protected] _eventManager => object(CakeEventManager) {}
} CardapiosController::imprimir() - APP/Controller/CardapiosController.php, line 83
ReflectionMethod::invokeArgs() - [internal], line ??
Controller::invokeAction() - CORE/Cake/Controller/Controller.php, line 490
Dispatcher::_invoke() - CORE/Cake/Routing/Dispatcher.php, line 193
Dispatcher::dispatch() - CORE/Cake/Routing/Dispatcher.php, line 167
[main] - APP/webroot/index.php, line 99 Notice (8) : Undefined index: id [APP/Controller/CardapiosController.php , line 83 ]Code Context
foreach ( $this -> viewVars [ 'periodos' ] as $key => $value ) {
if ( $alimento [ 'Periodo' ][ 'id' ] == $key ) {
$tipo = '1'
$ano = '2020'
$mes = '04'
$cardapios = array(
(int) 0 => array(
'Cardapio' => array(
'mes_id' => '4',
'dia' => '1',
'cardapio_tipo_id' => '1',
'id' => '1460'
),
'CardapioAlimento' => array()
),
(int) 1 => array(
'Cardapio' => array(
'mes_id' => '4',
'dia' => '2',
'cardapio_tipo_id' => '1',
'id' => '1461'
),
'CardapioAlimento' => array()
),
(int) 2 => array(
'Cardapio' => array(
'mes_id' => '4',
'dia' => '3',
'cardapio_tipo_id' => '1',
'id' => '1462'
),
'CardapioAlimento' => array()
),
(int) 3 => array(
'Cardapio' => array(
'mes_id' => '4',
'dia' => '6',
'cardapio_tipo_id' => '1',
'id' => '1463'
),
'CardapioAlimento' => array()
),
(int) 4 => array(
'Cardapio' => array(
'mes_id' => '4',
'dia' => '7',
'cardapio_tipo_id' => '1',
'id' => '1464'
),
'CardapioAlimento' => array()
),
(int) 5 => array(
'Cardapio' => array(
'mes_id' => '4',
'dia' => '8',
'cardapio_tipo_id' => '1',
'id' => '1465'
),
'CardapioAlimento' => array()
),
(int) 6 => array(
'Cardapio' => array(
'mes_id' => '4',
'dia' => '9',
'cardapio_tipo_id' => '1',
'id' => '1466'
),
'CardapioAlimento' => array()
),
(int) 7 => array(
'Cardapio' => array(
'mes_id' => '4',
'dia' => '10',
'cardapio_tipo_id' => '1',
'id' => '1467'
),
'CardapioAlimento' => array()
),
(int) 8 => array(
'Cardapio' => array(
'mes_id' => '4',
'dia' => '13',
'cardapio_tipo_id' => '1',
'id' => '1468'
),
'CardapioAlimento' => array()
),
(int) 9 => array(
'Cardapio' => array(
'mes_id' => '4',
'dia' => '14',
'cardapio_tipo_id' => '1',
'id' => '1469'
),
'CardapioAlimento' => array()
),
(int) 10 => array(
'Cardapio' => array(
'mes_id' => '4',
'dia' => '15',
'cardapio_tipo_id' => '1',
'id' => '1470'
),
'CardapioAlimento' => array(
(int) 0 => array(
[maximum depth reached]
),
(int) 1 => array(
[maximum depth reached]
),
(int) 2 => array(
[maximum depth reached]
),
(int) 3 => array(
[maximum depth reached]
)
)
),
(int) 11 => array(
'Cardapio' => array(
'mes_id' => '4',
'dia' => '16',
'cardapio_tipo_id' => '1',
'id' => '1471'
),
'CardapioAlimento' => array()
),
(int) 12 => array(
'Cardapio' => array(
'mes_id' => '4',
'dia' => '17',
'cardapio_tipo_id' => '1',
'id' => '1472'
),
'CardapioAlimento' => array()
),
(int) 13 => array(
'Cardapio' => array(
'mes_id' => '4',
'dia' => '20',
'cardapio_tipo_id' => '1',
'id' => '1473'
),
'CardapioAlimento' => array()
),
(int) 14 => array(
'Cardapio' => array(
'mes_id' => '4',
'dia' => '21',
'cardapio_tipo_id' => '1',
'id' => '1474'
),
'CardapioAlimento' => array()
),
(int) 15 => array(
'Cardapio' => array(
'mes_id' => '4',
'dia' => '22',
'cardapio_tipo_id' => '1',
'id' => '1475'
),
'CardapioAlimento' => array()
),
(int) 16 => array(
'Cardapio' => array(
'mes_id' => '4',
'dia' => '23',
'cardapio_tipo_id' => '1',
'id' => '1476'
),
'CardapioAlimento' => array()
),
(int) 17 => array(
'Cardapio' => array(
'mes_id' => '4',
'dia' => '24',
'cardapio_tipo_id' => '1',
'id' => '1477'
),
'CardapioAlimento' => array(
(int) 0 => array(
[maximum depth reached]
),
(int) 1 => array(
[maximum depth reached]
),
(int) 2 => array(
[maximum depth reached]
),
(int) 3 => array(
[maximum depth reached]
)
)
),
(int) 18 => array(
'Cardapio' => array(
'mes_id' => '4',
'dia' => '27',
'cardapio_tipo_id' => '1',
'id' => '1478'
),
'CardapioAlimento' => array()
),
(int) 19 => array(
'Cardapio' => array(
'mes_id' => '4',
'dia' => '28',
'cardapio_tipo_id' => '1',
'id' => '1479'
),
'CardapioAlimento' => array()
),
(int) 20 => array(
'Cardapio' => array(
'mes_id' => '4',
'dia' => '29',
'cardapio_tipo_id' => '1',
'id' => '1480'
),
'CardapioAlimento' => array()
),
(int) 21 => array(
'Cardapio' => array(
'mes_id' => '4',
'dia' => '30',
'cardapio_tipo_id' => '1',
'id' => '1481'
),
'CardapioAlimento' => array()
)
)
$itens = array(
(int) 15 => array(
(int) 0 => array(
'id' => '1',
'ordem' => '1',
'alimentos' => 'PERA E SUCO DE MELÃO'
),
(int) 1 => array(
'id' => '2',
'ordem' => '2',
'alimentos' => 'SOPA DE CENOURA, BATATA, COUVE E FRANGO'
),
(int) 2 => array(
'id' => '4',
'ordem' => null,
'alimentos' => 'ARROZ, FEIJÃO, POLENTA CREMOSA A BOLONHESA, QUIABO ASSADO, SALADA DE CHUCHU E TOMATE'
)
)
)
$periodos = array(
(int) 1 => 'Lanche da Manhã',
(int) 2 => 'Almoço I'
)
$cardapio = array(
'Cardapio' => array(
'mes_id' => '4',
'dia' => '15',
'cardapio_tipo_id' => '1',
'id' => '1470'
),
'CardapioAlimento' => array(
(int) 0 => array(
'alimentos' => 'PERA E SUCO DE MELÃO',
'periodo_id' => '1',
'cardapio_id' => '1470',
'Periodo' => array(
[maximum depth reached]
)
),
(int) 1 => array(
'alimentos' => 'SOPA DE CENOURA, BATATA, COUVE E FRANGO',
'periodo_id' => '2',
'cardapio_id' => '1470',
'Periodo' => array(
[maximum depth reached]
)
),
(int) 2 => array(
'alimentos' => 'ARROZ, FEIJÃO, POLENTA CREMOSA A BOLONHESA, QUIABO ASSADO, SALADA DE CHUCHU E TOMATE',
'periodo_id' => '4',
'cardapio_id' => '1470',
'Periodo' => array([maximum depth reached])
),
(int) 3 => array(
'alimentos' => 'FRUTA DA ÉPOCA E SUCO DE ABACAXI COM COUVE OU CAJU',
'periodo_id' => '3',
'cardapio_id' => '1470',
'Periodo' => array(
[maximum depth reached]
)
)
)
)
$dia = '15'
$alimento = array(
'alimentos' => 'ARROZ, FEIJÃO, POLENTA CREMOSA A BOLONHESA, QUIABO ASSADO, SALADA DE CHUCHU E TOMATE',
'periodo_id' => '4',
'cardapio_id' => '1470',
'Periodo' => array()
)
$key = (int) 2
$value = 'Almoço I'
$this = object(CardapiosController) {
components => array(
'Session' => null,
'Auth' => null,
'Acl' => null,
'AclTools.AclTools' => null,
'Paginator' => null,
'PaginateFilter.PaginateFilter' => null
)
helpers => array(
(int) 0 => 'AclTools.AclTools',
(int) 1 => 'Uploads',
(int) 2 => 'Images'
)
name => 'Cardapios'
uses => array(
(int) 0 => 'Cardapio',
(int) 1 => 'Config',
(int) 2 => 'CardapioTipo'
)
request => object(CakeRequest) {}
response => object(CakeResponse) {}
viewPath => 'Cardapios'
layoutPath => null
viewVars => array(
'meses' => array(
[maximum depth reached]
),
'semanas' => array(
[maximum depth reached]
),
'cardapioTipos' => array(
[maximum depth reached]
),
'periodos' => array(
[maximum depth reached]
),
'defaultContent' => array(
[maximum depth reached]
),
'siteConfig' => array(
[maximum depth reached]
)
)
view => 'imprimir'
layout => 'default'
autoRender => false
autoLayout => true
Components => object(ComponentCollection) {}
viewClass => 'View'
View => null
ext => '.ctp'
plugin => null
cacheAction => false
passedArgs => array(
(int) 0 => '1',
(int) 1 => '2020',
(int) 2 => '04'
)
scaffold => false
methods => array(
(int) 1 => 'imprimir',
(int) 2 => 'alimentos',
(int) 3 => 'ajax_incluirAlimento',
(int) 4 => 'ajax_refeicoes',
(int) 5 => 'ajax_calendario',
(int) 6 => 'admin_index',
(int) 7 => 'admin_calendario',
(int) 8 => 'admin_view',
(int) 9 => 'admin_add',
(int) 10 => 'admin_edit',
(int) 11 => 'admin_delete'
)
modelClass => 'Cardapio'
modelKey => 'cardapio'
validationErrors => null
Session => object(SessionComponent) {}
Auth => object(AuthComponent) {}
Acl => object(AclComponent) {}
AclTools => object(AcltoolsComponent) {}
Paginator => object(PaginatorComponent) {}
PaginateFilter => object(PaginateFilterComponent) {}
Cardapio => object(Cardapio) {}
Config => object(Config) {}
CardapioTipo => object(CardapioTipo) {}
Semana => object(Semana) {}
[protected] _responseClass => 'CakeResponse'
[protected] _mergeParent => 'AppController'
[protected] _eventManager => object(CakeEventManager) {}
} CardapiosController::imprimir() - APP/Controller/CardapiosController.php, line 83
ReflectionMethod::invokeArgs() - [internal], line ??
Controller::invokeAction() - CORE/Cake/Controller/Controller.php, line 490
Dispatcher::_invoke() - CORE/Cake/Routing/Dispatcher.php, line 193
Dispatcher::dispatch() - CORE/Cake/Routing/Dispatcher.php, line 167
[main] - APP/webroot/index.php, line 99 Notice (8) : Undefined index: id [APP/Controller/CardapiosController.php , line 83 ]Code Context
foreach ( $this -> viewVars [ 'periodos' ] as $key => $value ) {
if ( $alimento [ 'Periodo' ][ 'id' ] == $key ) {
$tipo = '1'
$ano = '2020'
$mes = '04'
$cardapios = array(
(int) 0 => array(
'Cardapio' => array(
'mes_id' => '4',
'dia' => '1',
'cardapio_tipo_id' => '1',
'id' => '1460'
),
'CardapioAlimento' => array()
),
(int) 1 => array(
'Cardapio' => array(
'mes_id' => '4',
'dia' => '2',
'cardapio_tipo_id' => '1',
'id' => '1461'
),
'CardapioAlimento' => array()
),
(int) 2 => array(
'Cardapio' => array(
'mes_id' => '4',
'dia' => '3',
'cardapio_tipo_id' => '1',
'id' => '1462'
),
'CardapioAlimento' => array()
),
(int) 3 => array(
'Cardapio' => array(
'mes_id' => '4',
'dia' => '6',
'cardapio_tipo_id' => '1',
'id' => '1463'
),
'CardapioAlimento' => array()
),
(int) 4 => array(
'Cardapio' => array(
'mes_id' => '4',
'dia' => '7',
'cardapio_tipo_id' => '1',
'id' => '1464'
),
'CardapioAlimento' => array()
),
(int) 5 => array(
'Cardapio' => array(
'mes_id' => '4',
'dia' => '8',
'cardapio_tipo_id' => '1',
'id' => '1465'
),
'CardapioAlimento' => array()
),
(int) 6 => array(
'Cardapio' => array(
'mes_id' => '4',
'dia' => '9',
'cardapio_tipo_id' => '1',
'id' => '1466'
),
'CardapioAlimento' => array()
),
(int) 7 => array(
'Cardapio' => array(
'mes_id' => '4',
'dia' => '10',
'cardapio_tipo_id' => '1',
'id' => '1467'
),
'CardapioAlimento' => array()
),
(int) 8 => array(
'Cardapio' => array(
'mes_id' => '4',
'dia' => '13',
'cardapio_tipo_id' => '1',
'id' => '1468'
),
'CardapioAlimento' => array()
),
(int) 9 => array(
'Cardapio' => array(
'mes_id' => '4',
'dia' => '14',
'cardapio_tipo_id' => '1',
'id' => '1469'
),
'CardapioAlimento' => array()
),
(int) 10 => array(
'Cardapio' => array(
'mes_id' => '4',
'dia' => '15',
'cardapio_tipo_id' => '1',
'id' => '1470'
),
'CardapioAlimento' => array(
(int) 0 => array(
[maximum depth reached]
),
(int) 1 => array(
[maximum depth reached]
),
(int) 2 => array(
[maximum depth reached]
),
(int) 3 => array(
[maximum depth reached]
)
)
),
(int) 11 => array(
'Cardapio' => array(
'mes_id' => '4',
'dia' => '16',
'cardapio_tipo_id' => '1',
'id' => '1471'
),
'CardapioAlimento' => array()
),
(int) 12 => array(
'Cardapio' => array(
'mes_id' => '4',
'dia' => '17',
'cardapio_tipo_id' => '1',
'id' => '1472'
),
'CardapioAlimento' => array()
),
(int) 13 => array(
'Cardapio' => array(
'mes_id' => '4',
'dia' => '20',
'cardapio_tipo_id' => '1',
'id' => '1473'
),
'CardapioAlimento' => array()
),
(int) 14 => array(
'Cardapio' => array(
'mes_id' => '4',
'dia' => '21',
'cardapio_tipo_id' => '1',
'id' => '1474'
),
'CardapioAlimento' => array()
),
(int) 15 => array(
'Cardapio' => array(
'mes_id' => '4',
'dia' => '22',
'cardapio_tipo_id' => '1',
'id' => '1475'
),
'CardapioAlimento' => array()
),
(int) 16 => array(
'Cardapio' => array(
'mes_id' => '4',
'dia' => '23',
'cardapio_tipo_id' => '1',
'id' => '1476'
),
'CardapioAlimento' => array()
),
(int) 17 => array(
'Cardapio' => array(
'mes_id' => '4',
'dia' => '24',
'cardapio_tipo_id' => '1',
'id' => '1477'
),
'CardapioAlimento' => array(
(int) 0 => array(
[maximum depth reached]
),
(int) 1 => array(
[maximum depth reached]
),
(int) 2 => array(
[maximum depth reached]
),
(int) 3 => array(
[maximum depth reached]
)
)
),
(int) 18 => array(
'Cardapio' => array(
'mes_id' => '4',
'dia' => '27',
'cardapio_tipo_id' => '1',
'id' => '1478'
),
'CardapioAlimento' => array()
),
(int) 19 => array(
'Cardapio' => array(
'mes_id' => '4',
'dia' => '28',
'cardapio_tipo_id' => '1',
'id' => '1479'
),
'CardapioAlimento' => array()
),
(int) 20 => array(
'Cardapio' => array(
'mes_id' => '4',
'dia' => '29',
'cardapio_tipo_id' => '1',
'id' => '1480'
),
'CardapioAlimento' => array()
),
(int) 21 => array(
'Cardapio' => array(
'mes_id' => '4',
'dia' => '30',
'cardapio_tipo_id' => '1',
'id' => '1481'
),
'CardapioAlimento' => array()
)
)
$itens = array(
(int) 15 => array(
(int) 0 => array(
'id' => '1',
'ordem' => '1',
'alimentos' => 'PERA E SUCO DE MELÃO'
),
(int) 1 => array(
'id' => '2',
'ordem' => '2',
'alimentos' => 'SOPA DE CENOURA, BATATA, COUVE E FRANGO'
),
(int) 2 => array(
'id' => '4',
'ordem' => null,
'alimentos' => 'ARROZ, FEIJÃO, POLENTA CREMOSA A BOLONHESA, QUIABO ASSADO, SALADA DE CHUCHU E TOMATE'
)
)
)
$periodos = array(
(int) 1 => 'Lanche da Manhã',
(int) 2 => 'Almoço I'
)
$cardapio = array(
'Cardapio' => array(
'mes_id' => '4',
'dia' => '15',
'cardapio_tipo_id' => '1',
'id' => '1470'
),
'CardapioAlimento' => array(
(int) 0 => array(
'alimentos' => 'PERA E SUCO DE MELÃO',
'periodo_id' => '1',
'cardapio_id' => '1470',
'Periodo' => array(
[maximum depth reached]
)
),
(int) 1 => array(
'alimentos' => 'SOPA DE CENOURA, BATATA, COUVE E FRANGO',
'periodo_id' => '2',
'cardapio_id' => '1470',
'Periodo' => array(
[maximum depth reached]
)
),
(int) 2 => array(
'alimentos' => 'ARROZ, FEIJÃO, POLENTA CREMOSA A BOLONHESA, QUIABO ASSADO, SALADA DE CHUCHU E TOMATE',
'periodo_id' => '4',
'cardapio_id' => '1470',
'Periodo' => array([maximum depth reached])
),
(int) 3 => array(
'alimentos' => 'FRUTA DA ÉPOCA E SUCO DE ABACAXI COM COUVE OU CAJU',
'periodo_id' => '3',
'cardapio_id' => '1470',
'Periodo' => array(
[maximum depth reached]
)
)
)
)
$dia = '15'
$alimento = array(
'alimentos' => 'ARROZ, FEIJÃO, POLENTA CREMOSA A BOLONHESA, QUIABO ASSADO, SALADA DE CHUCHU E TOMATE',
'periodo_id' => '4',
'cardapio_id' => '1470',
'Periodo' => array()
)
$key = (int) 3
$value = 'Lanche da Tarde'
$this = object(CardapiosController) {
components => array(
'Session' => null,
'Auth' => null,
'Acl' => null,
'AclTools.AclTools' => null,
'Paginator' => null,
'PaginateFilter.PaginateFilter' => null
)
helpers => array(
(int) 0 => 'AclTools.AclTools',
(int) 1 => 'Uploads',
(int) 2 => 'Images'
)
name => 'Cardapios'
uses => array(
(int) 0 => 'Cardapio',
(int) 1 => 'Config',
(int) 2 => 'CardapioTipo'
)
request => object(CakeRequest) {}
response => object(CakeResponse) {}
viewPath => 'Cardapios'
layoutPath => null
viewVars => array(
'meses' => array(
[maximum depth reached]
),
'semanas' => array(
[maximum depth reached]
),
'cardapioTipos' => array(
[maximum depth reached]
),
'periodos' => array(
[maximum depth reached]
),
'defaultContent' => array(
[maximum depth reached]
),
'siteConfig' => array(
[maximum depth reached]
)
)
view => 'imprimir'
layout => 'default'
autoRender => false
autoLayout => true
Components => object(ComponentCollection) {}
viewClass => 'View'
View => null
ext => '.ctp'
plugin => null
cacheAction => false
passedArgs => array(
(int) 0 => '1',
(int) 1 => '2020',
(int) 2 => '04'
)
scaffold => false
methods => array(
(int) 1 => 'imprimir',
(int) 2 => 'alimentos',
(int) 3 => 'ajax_incluirAlimento',
(int) 4 => 'ajax_refeicoes',
(int) 5 => 'ajax_calendario',
(int) 6 => 'admin_index',
(int) 7 => 'admin_calendario',
(int) 8 => 'admin_view',
(int) 9 => 'admin_add',
(int) 10 => 'admin_edit',
(int) 11 => 'admin_delete'
)
modelClass => 'Cardapio'
modelKey => 'cardapio'
validationErrors => null
Session => object(SessionComponent) {}
Auth => object(AuthComponent) {}
Acl => object(AclComponent) {}
AclTools => object(AcltoolsComponent) {}
Paginator => object(PaginatorComponent) {}
PaginateFilter => object(PaginateFilterComponent) {}
Cardapio => object(Cardapio) {}
Config => object(Config) {}
CardapioTipo => object(CardapioTipo) {}
Semana => object(Semana) {}
[protected] _responseClass => 'CakeResponse'
[protected] _mergeParent => 'AppController'
[protected] _eventManager => object(CakeEventManager) {}
} CardapiosController::imprimir() - APP/Controller/CardapiosController.php, line 83
ReflectionMethod::invokeArgs() - [internal], line ??
Controller::invokeAction() - CORE/Cake/Controller/Controller.php, line 490
Dispatcher::_invoke() - CORE/Cake/Routing/Dispatcher.php, line 193
Dispatcher::dispatch() - CORE/Cake/Routing/Dispatcher.php, line 167
[main] - APP/webroot/index.php, line 99 Notice (8) : Undefined index: ordem [APP/Controller/CardapiosController.php , line 78 ]Code Context $itens [ $dia ][] = [
'id' => $alimento [ 'periodo_id' ],
'ordem' => $alimento [ 'Periodo' ][ 'ordem' ],
$tipo = '1'
$ano = '2020'
$mes = '04'
$cardapios = array(
(int) 0 => array(
'Cardapio' => array(
'mes_id' => '4',
'dia' => '1',
'cardapio_tipo_id' => '1',
'id' => '1460'
),
'CardapioAlimento' => array()
),
(int) 1 => array(
'Cardapio' => array(
'mes_id' => '4',
'dia' => '2',
'cardapio_tipo_id' => '1',
'id' => '1461'
),
'CardapioAlimento' => array()
),
(int) 2 => array(
'Cardapio' => array(
'mes_id' => '4',
'dia' => '3',
'cardapio_tipo_id' => '1',
'id' => '1462'
),
'CardapioAlimento' => array()
),
(int) 3 => array(
'Cardapio' => array(
'mes_id' => '4',
'dia' => '6',
'cardapio_tipo_id' => '1',
'id' => '1463'
),
'CardapioAlimento' => array()
),
(int) 4 => array(
'Cardapio' => array(
'mes_id' => '4',
'dia' => '7',
'cardapio_tipo_id' => '1',
'id' => '1464'
),
'CardapioAlimento' => array()
),
(int) 5 => array(
'Cardapio' => array(
'mes_id' => '4',
'dia' => '8',
'cardapio_tipo_id' => '1',
'id' => '1465'
),
'CardapioAlimento' => array()
),
(int) 6 => array(
'Cardapio' => array(
'mes_id' => '4',
'dia' => '9',
'cardapio_tipo_id' => '1',
'id' => '1466'
),
'CardapioAlimento' => array()
),
(int) 7 => array(
'Cardapio' => array(
'mes_id' => '4',
'dia' => '10',
'cardapio_tipo_id' => '1',
'id' => '1467'
),
'CardapioAlimento' => array()
),
(int) 8 => array(
'Cardapio' => array(
'mes_id' => '4',
'dia' => '13',
'cardapio_tipo_id' => '1',
'id' => '1468'
),
'CardapioAlimento' => array()
),
(int) 9 => array(
'Cardapio' => array(
'mes_id' => '4',
'dia' => '14',
'cardapio_tipo_id' => '1',
'id' => '1469'
),
'CardapioAlimento' => array()
),
(int) 10 => array(
'Cardapio' => array(
'mes_id' => '4',
'dia' => '15',
'cardapio_tipo_id' => '1',
'id' => '1470'
),
'CardapioAlimento' => array(
(int) 0 => array(
[maximum depth reached]
),
(int) 1 => array(
[maximum depth reached]
),
(int) 2 => array(
[maximum depth reached]
),
(int) 3 => array(
[maximum depth reached]
)
)
),
(int) 11 => array(
'Cardapio' => array(
'mes_id' => '4',
'dia' => '16',
'cardapio_tipo_id' => '1',
'id' => '1471'
),
'CardapioAlimento' => array()
),
(int) 12 => array(
'Cardapio' => array(
'mes_id' => '4',
'dia' => '17',
'cardapio_tipo_id' => '1',
'id' => '1472'
),
'CardapioAlimento' => array()
),
(int) 13 => array(
'Cardapio' => array(
'mes_id' => '4',
'dia' => '20',
'cardapio_tipo_id' => '1',
'id' => '1473'
),
'CardapioAlimento' => array()
),
(int) 14 => array(
'Cardapio' => array(
'mes_id' => '4',
'dia' => '21',
'cardapio_tipo_id' => '1',
'id' => '1474'
),
'CardapioAlimento' => array()
),
(int) 15 => array(
'Cardapio' => array(
'mes_id' => '4',
'dia' => '22',
'cardapio_tipo_id' => '1',
'id' => '1475'
),
'CardapioAlimento' => array()
),
(int) 16 => array(
'Cardapio' => array(
'mes_id' => '4',
'dia' => '23',
'cardapio_tipo_id' => '1',
'id' => '1476'
),
'CardapioAlimento' => array()
),
(int) 17 => array(
'Cardapio' => array(
'mes_id' => '4',
'dia' => '24',
'cardapio_tipo_id' => '1',
'id' => '1477'
),
'CardapioAlimento' => array(
(int) 0 => array(
[maximum depth reached]
),
(int) 1 => array(
[maximum depth reached]
),
(int) 2 => array(
[maximum depth reached]
),
(int) 3 => array(
[maximum depth reached]
)
)
),
(int) 18 => array(
'Cardapio' => array(
'mes_id' => '4',
'dia' => '27',
'cardapio_tipo_id' => '1',
'id' => '1478'
),
'CardapioAlimento' => array()
),
(int) 19 => array(
'Cardapio' => array(
'mes_id' => '4',
'dia' => '28',
'cardapio_tipo_id' => '1',
'id' => '1479'
),
'CardapioAlimento' => array()
),
(int) 20 => array(
'Cardapio' => array(
'mes_id' => '4',
'dia' => '29',
'cardapio_tipo_id' => '1',
'id' => '1480'
),
'CardapioAlimento' => array()
),
(int) 21 => array(
'Cardapio' => array(
'mes_id' => '4',
'dia' => '30',
'cardapio_tipo_id' => '1',
'id' => '1481'
),
'CardapioAlimento' => array()
)
)
$itens = array(
(int) 15 => array(
(int) 0 => array(
'id' => '4',
'ordem' => null,
'alimentos' => 'ARROZ, FEIJÃO, POLENTA CREMOSA A BOLONHESA, QUIABO ASSADO, SALADA DE CHUCHU E TOMATE'
),
(int) 1 => array(
'id' => '1',
'ordem' => '1',
'alimentos' => 'PERA E SUCO DE MELÃO'
),
(int) 2 => array(
'id' => '2',
'ordem' => '2',
'alimentos' => 'SOPA DE CENOURA, BATATA, COUVE E FRANGO'
),
(int) 3 => array(
'id' => '3',
'ordem' => '4',
'alimentos' => 'FRUTA DA ÉPOCA E SUCO DE ABACAXI COM COUVE OU CAJU'
)
),
(int) 24 => array(
(int) 0 => array(
'id' => '1',
'ordem' => '1',
'alimentos' => 'FRUTA DA ÉPOCA E SUCO DE LARANJA COM BETERRABA'
),
(int) 1 => array(
'id' => '2',
'ordem' => '2',
'alimentos' => 'SOPA DE BATATA DOCE, ESPINAFRE, MANDIOQUINHA, TOMATE E CARNE'
)
)
)
$periodos = array(
(int) 1 => 'Lanche da Manhã',
(int) 2 => 'Almoço I',
(int) 3 => 'Lanche da Tarde'
)
$cardapio = array(
'Cardapio' => array(
'mes_id' => '4',
'dia' => '24',
'cardapio_tipo_id' => '1',
'id' => '1477'
),
'CardapioAlimento' => array(
(int) 0 => array(
'alimentos' => 'FRUTA DA ÉPOCA E SUCO DE LARANJA COM BETERRABA',
'periodo_id' => '1',
'cardapio_id' => '1477',
'Periodo' => array(
[maximum depth reached]
)
),
(int) 1 => array(
'alimentos' => 'SOPA DE BATATA DOCE, ESPINAFRE, MANDIOQUINHA, TOMATE E CARNE',
'periodo_id' => '2',
'cardapio_id' => '1477',
'Periodo' => array(
[maximum depth reached]
)
),
(int) 2 => array(
'alimentos' => 'MACARRÃO AVE MARIA A BOLONHESA E SALADA DE LEGUMES',
'periodo_id' => '4',
'cardapio_id' => '1477',
'Periodo' => array([maximum depth reached])
),
(int) 3 => array(
'alimentos' => 'PERA E SUCO DE MANGA',
'periodo_id' => '3',
'cardapio_id' => '1477',
'Periodo' => array(
[maximum depth reached]
)
)
)
)
$dia = '24'
$alimento = array(
'alimentos' => 'MACARRÃO AVE MARIA A BOLONHESA E SALADA DE LEGUMES',
'periodo_id' => '4',
'cardapio_id' => '1477',
'Periodo' => array()
)
$key = (int) 3
$value = 'Lanche da Tarde'
$this = object(CardapiosController) {
components => array(
'Session' => null,
'Auth' => null,
'Acl' => null,
'AclTools.AclTools' => null,
'Paginator' => null,
'PaginateFilter.PaginateFilter' => null
)
helpers => array(
(int) 0 => 'AclTools.AclTools',
(int) 1 => 'Uploads',
(int) 2 => 'Images'
)
name => 'Cardapios'
uses => array(
(int) 0 => 'Cardapio',
(int) 1 => 'Config',
(int) 2 => 'CardapioTipo'
)
request => object(CakeRequest) {}
response => object(CakeResponse) {}
viewPath => 'Cardapios'
layoutPath => null
viewVars => array(
'meses' => array(
[maximum depth reached]
),
'semanas' => array(
[maximum depth reached]
),
'cardapioTipos' => array(
[maximum depth reached]
),
'periodos' => array(
[maximum depth reached]
),
'defaultContent' => array(
[maximum depth reached]
),
'siteConfig' => array(
[maximum depth reached]
)
)
view => 'imprimir'
layout => 'default'
autoRender => false
autoLayout => true
Components => object(ComponentCollection) {}
viewClass => 'View'
View => null
ext => '.ctp'
plugin => null
cacheAction => false
passedArgs => array(
(int) 0 => '1',
(int) 1 => '2020',
(int) 2 => '04'
)
scaffold => false
methods => array(
(int) 1 => 'imprimir',
(int) 2 => 'alimentos',
(int) 3 => 'ajax_incluirAlimento',
(int) 4 => 'ajax_refeicoes',
(int) 5 => 'ajax_calendario',
(int) 6 => 'admin_index',
(int) 7 => 'admin_calendario',
(int) 8 => 'admin_view',
(int) 9 => 'admin_add',
(int) 10 => 'admin_edit',
(int) 11 => 'admin_delete'
)
modelClass => 'Cardapio'
modelKey => 'cardapio'
validationErrors => null
Session => object(SessionComponent) {}
Auth => object(AuthComponent) {}
Acl => object(AclComponent) {}
AclTools => object(AcltoolsComponent) {}
Paginator => object(PaginatorComponent) {}
PaginateFilter => object(PaginateFilterComponent) {}
Cardapio => object(Cardapio) {}
Config => object(Config) {}
CardapioTipo => object(CardapioTipo) {}
Semana => object(Semana) {}
[protected] _responseClass => 'CakeResponse'
[protected] _mergeParent => 'AppController'
[protected] _eventManager => object(CakeEventManager) {}
} CardapiosController::imprimir() - APP/Controller/CardapiosController.php, line 78
ReflectionMethod::invokeArgs() - [internal], line ??
Controller::invokeAction() - CORE/Cake/Controller/Controller.php, line 490
Dispatcher::_invoke() - CORE/Cake/Routing/Dispatcher.php, line 193
Dispatcher::dispatch() - CORE/Cake/Routing/Dispatcher.php, line 167
[main] - APP/webroot/index.php, line 99 Notice (8) : Undefined index: id [APP/Controller/CardapiosController.php , line 83 ]Code Context
foreach ( $this -> viewVars [ 'periodos' ] as $key => $value ) {
if ( $alimento [ 'Periodo' ][ 'id' ] == $key ) {
$tipo = '1'
$ano = '2020'
$mes = '04'
$cardapios = array(
(int) 0 => array(
'Cardapio' => array(
'mes_id' => '4',
'dia' => '1',
'cardapio_tipo_id' => '1',
'id' => '1460'
),
'CardapioAlimento' => array()
),
(int) 1 => array(
'Cardapio' => array(
'mes_id' => '4',
'dia' => '2',
'cardapio_tipo_id' => '1',
'id' => '1461'
),
'CardapioAlimento' => array()
),
(int) 2 => array(
'Cardapio' => array(
'mes_id' => '4',
'dia' => '3',
'cardapio_tipo_id' => '1',
'id' => '1462'
),
'CardapioAlimento' => array()
),
(int) 3 => array(
'Cardapio' => array(
'mes_id' => '4',
'dia' => '6',
'cardapio_tipo_id' => '1',
'id' => '1463'
),
'CardapioAlimento' => array()
),
(int) 4 => array(
'Cardapio' => array(
'mes_id' => '4',
'dia' => '7',
'cardapio_tipo_id' => '1',
'id' => '1464'
),
'CardapioAlimento' => array()
),
(int) 5 => array(
'Cardapio' => array(
'mes_id' => '4',
'dia' => '8',
'cardapio_tipo_id' => '1',
'id' => '1465'
),
'CardapioAlimento' => array()
),
(int) 6 => array(
'Cardapio' => array(
'mes_id' => '4',
'dia' => '9',
'cardapio_tipo_id' => '1',
'id' => '1466'
),
'CardapioAlimento' => array()
),
(int) 7 => array(
'Cardapio' => array(
'mes_id' => '4',
'dia' => '10',
'cardapio_tipo_id' => '1',
'id' => '1467'
),
'CardapioAlimento' => array()
),
(int) 8 => array(
'Cardapio' => array(
'mes_id' => '4',
'dia' => '13',
'cardapio_tipo_id' => '1',
'id' => '1468'
),
'CardapioAlimento' => array()
),
(int) 9 => array(
'Cardapio' => array(
'mes_id' => '4',
'dia' => '14',
'cardapio_tipo_id' => '1',
'id' => '1469'
),
'CardapioAlimento' => array()
),
(int) 10 => array(
'Cardapio' => array(
'mes_id' => '4',
'dia' => '15',
'cardapio_tipo_id' => '1',
'id' => '1470'
),
'CardapioAlimento' => array(
(int) 0 => array(
[maximum depth reached]
),
(int) 1 => array(
[maximum depth reached]
),
(int) 2 => array(
[maximum depth reached]
),
(int) 3 => array(
[maximum depth reached]
)
)
),
(int) 11 => array(
'Cardapio' => array(
'mes_id' => '4',
'dia' => '16',
'cardapio_tipo_id' => '1',
'id' => '1471'
),
'CardapioAlimento' => array()
),
(int) 12 => array(
'Cardapio' => array(
'mes_id' => '4',
'dia' => '17',
'cardapio_tipo_id' => '1',
'id' => '1472'
),
'CardapioAlimento' => array()
),
(int) 13 => array(
'Cardapio' => array(
'mes_id' => '4',
'dia' => '20',
'cardapio_tipo_id' => '1',
'id' => '1473'
),
'CardapioAlimento' => array()
),
(int) 14 => array(
'Cardapio' => array(
'mes_id' => '4',
'dia' => '21',
'cardapio_tipo_id' => '1',
'id' => '1474'
),
'CardapioAlimento' => array()
),
(int) 15 => array(
'Cardapio' => array(
'mes_id' => '4',
'dia' => '22',
'cardapio_tipo_id' => '1',
'id' => '1475'
),
'CardapioAlimento' => array()
),
(int) 16 => array(
'Cardapio' => array(
'mes_id' => '4',
'dia' => '23',
'cardapio_tipo_id' => '1',
'id' => '1476'
),
'CardapioAlimento' => array()
),
(int) 17 => array(
'Cardapio' => array(
'mes_id' => '4',
'dia' => '24',
'cardapio_tipo_id' => '1',
'id' => '1477'
),
'CardapioAlimento' => array(
(int) 0 => array(
[maximum depth reached]
),
(int) 1 => array(
[maximum depth reached]
),
(int) 2 => array(
[maximum depth reached]
),
(int) 3 => array(
[maximum depth reached]
)
)
),
(int) 18 => array(
'Cardapio' => array(
'mes_id' => '4',
'dia' => '27',
'cardapio_tipo_id' => '1',
'id' => '1478'
),
'CardapioAlimento' => array()
),
(int) 19 => array(
'Cardapio' => array(
'mes_id' => '4',
'dia' => '28',
'cardapio_tipo_id' => '1',
'id' => '1479'
),
'CardapioAlimento' => array()
),
(int) 20 => array(
'Cardapio' => array(
'mes_id' => '4',
'dia' => '29',
'cardapio_tipo_id' => '1',
'id' => '1480'
),
'CardapioAlimento' => array()
),
(int) 21 => array(
'Cardapio' => array(
'mes_id' => '4',
'dia' => '30',
'cardapio_tipo_id' => '1',
'id' => '1481'
),
'CardapioAlimento' => array()
)
)
$itens = array(
(int) 15 => array(
(int) 0 => array(
'id' => '4',
'ordem' => null,
'alimentos' => 'ARROZ, FEIJÃO, POLENTA CREMOSA A BOLONHESA, QUIABO ASSADO, SALADA DE CHUCHU E TOMATE'
),
(int) 1 => array(
'id' => '1',
'ordem' => '1',
'alimentos' => 'PERA E SUCO DE MELÃO'
),
(int) 2 => array(
'id' => '2',
'ordem' => '2',
'alimentos' => 'SOPA DE CENOURA, BATATA, COUVE E FRANGO'
),
(int) 3 => array(
'id' => '3',
'ordem' => '4',
'alimentos' => 'FRUTA DA ÉPOCA E SUCO DE ABACAXI COM COUVE OU CAJU'
)
),
(int) 24 => array(
(int) 0 => array(
'id' => '1',
'ordem' => '1',
'alimentos' => 'FRUTA DA ÉPOCA E SUCO DE LARANJA COM BETERRABA'
),
(int) 1 => array(
'id' => '2',
'ordem' => '2',
'alimentos' => 'SOPA DE BATATA DOCE, ESPINAFRE, MANDIOQUINHA, TOMATE E CARNE'
),
(int) 2 => array(
'id' => '4',
'ordem' => null,
'alimentos' => 'MACARRÃO AVE MARIA A BOLONHESA E SALADA DE LEGUMES'
)
)
)
$periodos = array(
(int) 1 => 'Lanche da Manhã',
(int) 2 => 'Almoço I',
(int) 3 => 'Lanche da Tarde'
)
$cardapio = array(
'Cardapio' => array(
'mes_id' => '4',
'dia' => '24',
'cardapio_tipo_id' => '1',
'id' => '1477'
),
'CardapioAlimento' => array(
(int) 0 => array(
'alimentos' => 'FRUTA DA ÉPOCA E SUCO DE LARANJA COM BETERRABA',
'periodo_id' => '1',
'cardapio_id' => '1477',
'Periodo' => array(
[maximum depth reached]
)
),
(int) 1 => array(
'alimentos' => 'SOPA DE BATATA DOCE, ESPINAFRE, MANDIOQUINHA, TOMATE E CARNE',
'periodo_id' => '2',
'cardapio_id' => '1477',
'Periodo' => array(
[maximum depth reached]
)
),
(int) 2 => array(
'alimentos' => 'MACARRÃO AVE MARIA A BOLONHESA E SALADA DE LEGUMES',
'periodo_id' => '4',
'cardapio_id' => '1477',
'Periodo' => array([maximum depth reached])
),
(int) 3 => array(
'alimentos' => 'PERA E SUCO DE MANGA',
'periodo_id' => '3',
'cardapio_id' => '1477',
'Periodo' => array(
[maximum depth reached]
)
)
)
)
$dia = '24'
$alimento = array(
'alimentos' => 'MACARRÃO AVE MARIA A BOLONHESA E SALADA DE LEGUMES',
'periodo_id' => '4',
'cardapio_id' => '1477',
'Periodo' => array()
)
$key = (int) 1
$value = 'Lanche da Manhã'
$this = object(CardapiosController) {
components => array(
'Session' => null,
'Auth' => null,
'Acl' => null,
'AclTools.AclTools' => null,
'Paginator' => null,
'PaginateFilter.PaginateFilter' => null
)
helpers => array(
(int) 0 => 'AclTools.AclTools',
(int) 1 => 'Uploads',
(int) 2 => 'Images'
)
name => 'Cardapios'
uses => array(
(int) 0 => 'Cardapio',
(int) 1 => 'Config',
(int) 2 => 'CardapioTipo'
)
request => object(CakeRequest) {}
response => object(CakeResponse) {}
viewPath => 'Cardapios'
layoutPath => null
viewVars => array(
'meses' => array(
[maximum depth reached]
),
'semanas' => array(
[maximum depth reached]
),
'cardapioTipos' => array(
[maximum depth reached]
),
'periodos' => array(
[maximum depth reached]
),
'defaultContent' => array(
[maximum depth reached]
),
'siteConfig' => array(
[maximum depth reached]
)
)
view => 'imprimir'
layout => 'default'
autoRender => false
autoLayout => true
Components => object(ComponentCollection) {}
viewClass => 'View'
View => null
ext => '.ctp'
plugin => null
cacheAction => false
passedArgs => array(
(int) 0 => '1',
(int) 1 => '2020',
(int) 2 => '04'
)
scaffold => false
methods => array(
(int) 1 => 'imprimir',
(int) 2 => 'alimentos',
(int) 3 => 'ajax_incluirAlimento',
(int) 4 => 'ajax_refeicoes',
(int) 5 => 'ajax_calendario',
(int) 6 => 'admin_index',
(int) 7 => 'admin_calendario',
(int) 8 => 'admin_view',
(int) 9 => 'admin_add',
(int) 10 => 'admin_edit',
(int) 11 => 'admin_delete'
)
modelClass => 'Cardapio'
modelKey => 'cardapio'
validationErrors => null
Session => object(SessionComponent) {}
Auth => object(AuthComponent) {}
Acl => object(AclComponent) {}
AclTools => object(AcltoolsComponent) {}
Paginator => object(PaginatorComponent) {}
PaginateFilter => object(PaginateFilterComponent) {}
Cardapio => object(Cardapio) {}
Config => object(Config) {}
CardapioTipo => object(CardapioTipo) {}
Semana => object(Semana) {}
[protected] _responseClass => 'CakeResponse'
[protected] _mergeParent => 'AppController'
[protected] _eventManager => object(CakeEventManager) {}
} CardapiosController::imprimir() - APP/Controller/CardapiosController.php, line 83
ReflectionMethod::invokeArgs() - [internal], line ??
Controller::invokeAction() - CORE/Cake/Controller/Controller.php, line 490
Dispatcher::_invoke() - CORE/Cake/Routing/Dispatcher.php, line 193
Dispatcher::dispatch() - CORE/Cake/Routing/Dispatcher.php, line 167
[main] - APP/webroot/index.php, line 99 Notice (8) : Undefined index: id [APP/Controller/CardapiosController.php , line 83 ]Code Context
foreach ( $this -> viewVars [ 'periodos' ] as $key => $value ) {
if ( $alimento [ 'Periodo' ][ 'id' ] == $key ) {
$tipo = '1'
$ano = '2020'
$mes = '04'
$cardapios = array(
(int) 0 => array(
'Cardapio' => array(
'mes_id' => '4',
'dia' => '1',
'cardapio_tipo_id' => '1',
'id' => '1460'
),
'CardapioAlimento' => array()
),
(int) 1 => array(
'Cardapio' => array(
'mes_id' => '4',
'dia' => '2',
'cardapio_tipo_id' => '1',
'id' => '1461'
),
'CardapioAlimento' => array()
),
(int) 2 => array(
'Cardapio' => array(
'mes_id' => '4',
'dia' => '3',
'cardapio_tipo_id' => '1',
'id' => '1462'
),
'CardapioAlimento' => array()
),
(int) 3 => array(
'Cardapio' => array(
'mes_id' => '4',
'dia' => '6',
'cardapio_tipo_id' => '1',
'id' => '1463'
),
'CardapioAlimento' => array()
),
(int) 4 => array(
'Cardapio' => array(
'mes_id' => '4',
'dia' => '7',
'cardapio_tipo_id' => '1',
'id' => '1464'
),
'CardapioAlimento' => array()
),
(int) 5 => array(
'Cardapio' => array(
'mes_id' => '4',
'dia' => '8',
'cardapio_tipo_id' => '1',
'id' => '1465'
),
'CardapioAlimento' => array()
),
(int) 6 => array(
'Cardapio' => array(
'mes_id' => '4',
'dia' => '9',
'cardapio_tipo_id' => '1',
'id' => '1466'
),
'CardapioAlimento' => array()
),
(int) 7 => array(
'Cardapio' => array(
'mes_id' => '4',
'dia' => '10',
'cardapio_tipo_id' => '1',
'id' => '1467'
),
'CardapioAlimento' => array()
),
(int) 8 => array(
'Cardapio' => array(
'mes_id' => '4',
'dia' => '13',
'cardapio_tipo_id' => '1',
'id' => '1468'
),
'CardapioAlimento' => array()
),
(int) 9 => array(
'Cardapio' => array(
'mes_id' => '4',
'dia' => '14',
'cardapio_tipo_id' => '1',
'id' => '1469'
),
'CardapioAlimento' => array()
),
(int) 10 => array(
'Cardapio' => array(
'mes_id' => '4',
'dia' => '15',
'cardapio_tipo_id' => '1',
'id' => '1470'
),
'CardapioAlimento' => array(
(int) 0 => array(
[maximum depth reached]
),
(int) 1 => array(
[maximum depth reached]
),
(int) 2 => array(
[maximum depth reached]
),
(int) 3 => array(
[maximum depth reached]
)
)
),
(int) 11 => array(
'Cardapio' => array(
'mes_id' => '4',
'dia' => '16',
'cardapio_tipo_id' => '1',
'id' => '1471'
),
'CardapioAlimento' => array()
),
(int) 12 => array(
'Cardapio' => array(
'mes_id' => '4',
'dia' => '17',
'cardapio_tipo_id' => '1',
'id' => '1472'
),
'CardapioAlimento' => array()
),
(int) 13 => array(
'Cardapio' => array(
'mes_id' => '4',
'dia' => '20',
'cardapio_tipo_id' => '1',
'id' => '1473'
),
'CardapioAlimento' => array()
),
(int) 14 => array(
'Cardapio' => array(
'mes_id' => '4',
'dia' => '21',
'cardapio_tipo_id' => '1',
'id' => '1474'
),
'CardapioAlimento' => array()
),
(int) 15 => array(
'Cardapio' => array(
'mes_id' => '4',
'dia' => '22',
'cardapio_tipo_id' => '1',
'id' => '1475'
),
'CardapioAlimento' => array()
),
(int) 16 => array(
'Cardapio' => array(
'mes_id' => '4',
'dia' => '23',
'cardapio_tipo_id' => '1',
'id' => '1476'
),
'CardapioAlimento' => array()
),
(int) 17 => array(
'Cardapio' => array(
'mes_id' => '4',
'dia' => '24',
'cardapio_tipo_id' => '1',
'id' => '1477'
),
'CardapioAlimento' => array(
(int) 0 => array(
[maximum depth reached]
),
(int) 1 => array(
[maximum depth reached]
),
(int) 2 => array(
[maximum depth reached]
),
(int) 3 => array(
[maximum depth reached]
)
)
),
(int) 18 => array(
'Cardapio' => array(
'mes_id' => '4',
'dia' => '27',
'cardapio_tipo_id' => '1',
'id' => '1478'
),
'CardapioAlimento' => array()
),
(int) 19 => array(
'Cardapio' => array(
'mes_id' => '4',
'dia' => '28',
'cardapio_tipo_id' => '1',
'id' => '1479'
),
'CardapioAlimento' => array()
),
(int) 20 => array(
'Cardapio' => array(
'mes_id' => '4',
'dia' => '29',
'cardapio_tipo_id' => '1',
'id' => '1480'
),
'CardapioAlimento' => array()
),
(int) 21 => array(
'Cardapio' => array(
'mes_id' => '4',
'dia' => '30',
'cardapio_tipo_id' => '1',
'id' => '1481'
),
'CardapioAlimento' => array()
)
)
$itens = array(
(int) 15 => array(
(int) 0 => array(
'id' => '4',
'ordem' => null,
'alimentos' => 'ARROZ, FEIJÃO, POLENTA CREMOSA A BOLONHESA, QUIABO ASSADO, SALADA DE CHUCHU E TOMATE'
),
(int) 1 => array(
'id' => '1',
'ordem' => '1',
'alimentos' => 'PERA E SUCO DE MELÃO'
),
(int) 2 => array(
'id' => '2',
'ordem' => '2',
'alimentos' => 'SOPA DE CENOURA, BATATA, COUVE E FRANGO'
),
(int) 3 => array(
'id' => '3',
'ordem' => '4',
'alimentos' => 'FRUTA DA ÉPOCA E SUCO DE ABACAXI COM COUVE OU CAJU'
)
),
(int) 24 => array(
(int) 0 => array(
'id' => '1',
'ordem' => '1',
'alimentos' => 'FRUTA DA ÉPOCA E SUCO DE LARANJA COM BETERRABA'
),
(int) 1 => array(
'id' => '2',
'ordem' => '2',
'alimentos' => 'SOPA DE BATATA DOCE, ESPINAFRE, MANDIOQUINHA, TOMATE E CARNE'
),
(int) 2 => array(
'id' => '4',
'ordem' => null,
'alimentos' => 'MACARRÃO AVE MARIA A BOLONHESA E SALADA DE LEGUMES'
)
)
)
$periodos = array(
(int) 1 => 'Lanche da Manhã',
(int) 2 => 'Almoço I',
(int) 3 => 'Lanche da Tarde'
)
$cardapio = array(
'Cardapio' => array(
'mes_id' => '4',
'dia' => '24',
'cardapio_tipo_id' => '1',
'id' => '1477'
),
'CardapioAlimento' => array(
(int) 0 => array(
'alimentos' => 'FRUTA DA ÉPOCA E SUCO DE LARANJA COM BETERRABA',
'periodo_id' => '1',
'cardapio_id' => '1477',
'Periodo' => array(
[maximum depth reached]
)
),
(int) 1 => array(
'alimentos' => 'SOPA DE BATATA DOCE, ESPINAFRE, MANDIOQUINHA, TOMATE E CARNE',
'periodo_id' => '2',
'cardapio_id' => '1477',
'Periodo' => array(
[maximum depth reached]
)
),
(int) 2 => array(
'alimentos' => 'MACARRÃO AVE MARIA A BOLONHESA E SALADA DE LEGUMES',
'periodo_id' => '4',
'cardapio_id' => '1477',
'Periodo' => array([maximum depth reached])
),
(int) 3 => array(
'alimentos' => 'PERA E SUCO DE MANGA',
'periodo_id' => '3',
'cardapio_id' => '1477',
'Periodo' => array(
[maximum depth reached]
)
)
)
)
$dia = '24'
$alimento = array(
'alimentos' => 'MACARRÃO AVE MARIA A BOLONHESA E SALADA DE LEGUMES',
'periodo_id' => '4',
'cardapio_id' => '1477',
'Periodo' => array()
)
$key = (int) 2
$value = 'Almoço I'
$this = object(CardapiosController) {
components => array(
'Session' => null,
'Auth' => null,
'Acl' => null,
'AclTools.AclTools' => null,
'Paginator' => null,
'PaginateFilter.PaginateFilter' => null
)
helpers => array(
(int) 0 => 'AclTools.AclTools',
(int) 1 => 'Uploads',
(int) 2 => 'Images'
)
name => 'Cardapios'
uses => array(
(int) 0 => 'Cardapio',
(int) 1 => 'Config',
(int) 2 => 'CardapioTipo'
)
request => object(CakeRequest) {}
response => object(CakeResponse) {}
viewPath => 'Cardapios'
layoutPath => null
viewVars => array(
'meses' => array(
[maximum depth reached]
),
'semanas' => array(
[maximum depth reached]
),
'cardapioTipos' => array(
[maximum depth reached]
),
'periodos' => array(
[maximum depth reached]
),
'defaultContent' => array(
[maximum depth reached]
),
'siteConfig' => array(
[maximum depth reached]
)
)
view => 'imprimir'
layout => 'default'
autoRender => false
autoLayout => true
Components => object(ComponentCollection) {}
viewClass => 'View'
View => null
ext => '.ctp'
plugin => null
cacheAction => false
passedArgs => array(
(int) 0 => '1',
(int) 1 => '2020',
(int) 2 => '04'
)
scaffold => false
methods => array(
(int) 1 => 'imprimir',
(int) 2 => 'alimentos',
(int) 3 => 'ajax_incluirAlimento',
(int) 4 => 'ajax_refeicoes',
(int) 5 => 'ajax_calendario',
(int) 6 => 'admin_index',
(int) 7 => 'admin_calendario',
(int) 8 => 'admin_view',
(int) 9 => 'admin_add',
(int) 10 => 'admin_edit',
(int) 11 => 'admin_delete'
)
modelClass => 'Cardapio'
modelKey => 'cardapio'
validationErrors => null
Session => object(SessionComponent) {}
Auth => object(AuthComponent) {}
Acl => object(AclComponent) {}
AclTools => object(AcltoolsComponent) {}
Paginator => object(PaginatorComponent) {}
PaginateFilter => object(PaginateFilterComponent) {}
Cardapio => object(Cardapio) {}
Config => object(Config) {}
CardapioTipo => object(CardapioTipo) {}
Semana => object(Semana) {}
[protected] _responseClass => 'CakeResponse'
[protected] _mergeParent => 'AppController'
[protected] _eventManager => object(CakeEventManager) {}
} CardapiosController::imprimir() - APP/Controller/CardapiosController.php, line 83
ReflectionMethod::invokeArgs() - [internal], line ??
Controller::invokeAction() - CORE/Cake/Controller/Controller.php, line 490
Dispatcher::_invoke() - CORE/Cake/Routing/Dispatcher.php, line 193
Dispatcher::dispatch() - CORE/Cake/Routing/Dispatcher.php, line 167
[main] - APP/webroot/index.php, line 99 Notice (8) : Undefined index: id [APP/Controller/CardapiosController.php , line 83 ]Code Context
foreach ( $this -> viewVars [ 'periodos' ] as $key => $value ) {
if ( $alimento [ 'Periodo' ][ 'id' ] == $key ) {
$tipo = '1'
$ano = '2020'
$mes = '04'
$cardapios = array(
(int) 0 => array(
'Cardapio' => array(
'mes_id' => '4',
'dia' => '1',
'cardapio_tipo_id' => '1',
'id' => '1460'
),
'CardapioAlimento' => array()
),
(int) 1 => array(
'Cardapio' => array(
'mes_id' => '4',
'dia' => '2',
'cardapio_tipo_id' => '1',
'id' => '1461'
),
'CardapioAlimento' => array()
),
(int) 2 => array(
'Cardapio' => array(
'mes_id' => '4',
'dia' => '3',
'cardapio_tipo_id' => '1',
'id' => '1462'
),
'CardapioAlimento' => array()
),
(int) 3 => array(
'Cardapio' => array(
'mes_id' => '4',
'dia' => '6',
'cardapio_tipo_id' => '1',
'id' => '1463'
),
'CardapioAlimento' => array()
),
(int) 4 => array(
'Cardapio' => array(
'mes_id' => '4',
'dia' => '7',
'cardapio_tipo_id' => '1',
'id' => '1464'
),
'CardapioAlimento' => array()
),
(int) 5 => array(
'Cardapio' => array(
'mes_id' => '4',
'dia' => '8',
'cardapio_tipo_id' => '1',
'id' => '1465'
),
'CardapioAlimento' => array()
),
(int) 6 => array(
'Cardapio' => array(
'mes_id' => '4',
'dia' => '9',
'cardapio_tipo_id' => '1',
'id' => '1466'
),
'CardapioAlimento' => array()
),
(int) 7 => array(
'Cardapio' => array(
'mes_id' => '4',
'dia' => '10',
'cardapio_tipo_id' => '1',
'id' => '1467'
),
'CardapioAlimento' => array()
),
(int) 8 => array(
'Cardapio' => array(
'mes_id' => '4',
'dia' => '13',
'cardapio_tipo_id' => '1',
'id' => '1468'
),
'CardapioAlimento' => array()
),
(int) 9 => array(
'Cardapio' => array(
'mes_id' => '4',
'dia' => '14',
'cardapio_tipo_id' => '1',
'id' => '1469'
),
'CardapioAlimento' => array()
),
(int) 10 => array(
'Cardapio' => array(
'mes_id' => '4',
'dia' => '15',
'cardapio_tipo_id' => '1',
'id' => '1470'
),
'CardapioAlimento' => array(
(int) 0 => array(
[maximum depth reached]
),
(int) 1 => array(
[maximum depth reached]
),
(int) 2 => array(
[maximum depth reached]
),
(int) 3 => array(
[maximum depth reached]
)
)
),
(int) 11 => array(
'Cardapio' => array(
'mes_id' => '4',
'dia' => '16',
'cardapio_tipo_id' => '1',
'id' => '1471'
),
'CardapioAlimento' => array()
),
(int) 12 => array(
'Cardapio' => array(
'mes_id' => '4',
'dia' => '17',
'cardapio_tipo_id' => '1',
'id' => '1472'
),
'CardapioAlimento' => array()
),
(int) 13 => array(
'Cardapio' => array(
'mes_id' => '4',
'dia' => '20',
'cardapio_tipo_id' => '1',
'id' => '1473'
),
'CardapioAlimento' => array()
),
(int) 14 => array(
'Cardapio' => array(
'mes_id' => '4',
'dia' => '21',
'cardapio_tipo_id' => '1',
'id' => '1474'
),
'CardapioAlimento' => array()
),
(int) 15 => array(
'Cardapio' => array(
'mes_id' => '4',
'dia' => '22',
'cardapio_tipo_id' => '1',
'id' => '1475'
),
'CardapioAlimento' => array()
),
(int) 16 => array(
'Cardapio' => array(
'mes_id' => '4',
'dia' => '23',
'cardapio_tipo_id' => '1',
'id' => '1476'
),
'CardapioAlimento' => array()
),
(int) 17 => array(
'Cardapio' => array(
'mes_id' => '4',
'dia' => '24',
'cardapio_tipo_id' => '1',
'id' => '1477'
),
'CardapioAlimento' => array(
(int) 0 => array(
[maximum depth reached]
),
(int) 1 => array(
[maximum depth reached]
),
(int) 2 => array(
[maximum depth reached]
),
(int) 3 => array(
[maximum depth reached]
)
)
),
(int) 18 => array(
'Cardapio' => array(
'mes_id' => '4',
'dia' => '27',
'cardapio_tipo_id' => '1',
'id' => '1478'
),
'CardapioAlimento' => array()
),
(int) 19 => array(
'Cardapio' => array(
'mes_id' => '4',
'dia' => '28',
'cardapio_tipo_id' => '1',
'id' => '1479'
),
'CardapioAlimento' => array()
),
(int) 20 => array(
'Cardapio' => array(
'mes_id' => '4',
'dia' => '29',
'cardapio_tipo_id' => '1',
'id' => '1480'
),
'CardapioAlimento' => array()
),
(int) 21 => array(
'Cardapio' => array(
'mes_id' => '4',
'dia' => '30',
'cardapio_tipo_id' => '1',
'id' => '1481'
),
'CardapioAlimento' => array()
)
)
$itens = array(
(int) 15 => array(
(int) 0 => array(
'id' => '4',
'ordem' => null,
'alimentos' => 'ARROZ, FEIJÃO, POLENTA CREMOSA A BOLONHESA, QUIABO ASSADO, SALADA DE CHUCHU E TOMATE'
),
(int) 1 => array(
'id' => '1',
'ordem' => '1',
'alimentos' => 'PERA E SUCO DE MELÃO'
),
(int) 2 => array(
'id' => '2',
'ordem' => '2',
'alimentos' => 'SOPA DE CENOURA, BATATA, COUVE E FRANGO'
),
(int) 3 => array(
'id' => '3',
'ordem' => '4',
'alimentos' => 'FRUTA DA ÉPOCA E SUCO DE ABACAXI COM COUVE OU CAJU'
)
),
(int) 24 => array(
(int) 0 => array(
'id' => '1',
'ordem' => '1',
'alimentos' => 'FRUTA DA ÉPOCA E SUCO DE LARANJA COM BETERRABA'
),
(int) 1 => array(
'id' => '2',
'ordem' => '2',
'alimentos' => 'SOPA DE BATATA DOCE, ESPINAFRE, MANDIOQUINHA, TOMATE E CARNE'
),
(int) 2 => array(
'id' => '4',
'ordem' => null,
'alimentos' => 'MACARRÃO AVE MARIA A BOLONHESA E SALADA DE LEGUMES'
)
)
)
$periodos = array(
(int) 1 => 'Lanche da Manhã',
(int) 2 => 'Almoço I',
(int) 3 => 'Lanche da Tarde'
)
$cardapio = array(
'Cardapio' => array(
'mes_id' => '4',
'dia' => '24',
'cardapio_tipo_id' => '1',
'id' => '1477'
),
'CardapioAlimento' => array(
(int) 0 => array(
'alimentos' => 'FRUTA DA ÉPOCA E SUCO DE LARANJA COM BETERRABA',
'periodo_id' => '1',
'cardapio_id' => '1477',
'Periodo' => array(
[maximum depth reached]
)
),
(int) 1 => array(
'alimentos' => 'SOPA DE BATATA DOCE, ESPINAFRE, MANDIOQUINHA, TOMATE E CARNE',
'periodo_id' => '2',
'cardapio_id' => '1477',
'Periodo' => array(
[maximum depth reached]
)
),
(int) 2 => array(
'alimentos' => 'MACARRÃO AVE MARIA A BOLONHESA E SALADA DE LEGUMES',
'periodo_id' => '4',
'cardapio_id' => '1477',
'Periodo' => array([maximum depth reached])
),
(int) 3 => array(
'alimentos' => 'PERA E SUCO DE MANGA',
'periodo_id' => '3',
'cardapio_id' => '1477',
'Periodo' => array(
[maximum depth reached]
)
)
)
)
$dia = '24'
$alimento = array(
'alimentos' => 'MACARRÃO AVE MARIA A BOLONHESA E SALADA DE LEGUMES',
'periodo_id' => '4',
'cardapio_id' => '1477',
'Periodo' => array()
)
$key = (int) 3
$value = 'Lanche da Tarde'
$this = object(CardapiosController) {
components => array(
'Session' => null,
'Auth' => null,
'Acl' => null,
'AclTools.AclTools' => null,
'Paginator' => null,
'PaginateFilter.PaginateFilter' => null
)
helpers => array(
(int) 0 => 'AclTools.AclTools',
(int) 1 => 'Uploads',
(int) 2 => 'Images'
)
name => 'Cardapios'
uses => array(
(int) 0 => 'Cardapio',
(int) 1 => 'Config',
(int) 2 => 'CardapioTipo'
)
request => object(CakeRequest) {}
response => object(CakeResponse) {}
viewPath => 'Cardapios'
layoutPath => null
viewVars => array(
'meses' => array(
[maximum depth reached]
),
'semanas' => array(
[maximum depth reached]
),
'cardapioTipos' => array(
[maximum depth reached]
),
'periodos' => array(
[maximum depth reached]
),
'defaultContent' => array(
[maximum depth reached]
),
'siteConfig' => array(
[maximum depth reached]
)
)
view => 'imprimir'
layout => 'default'
autoRender => false
autoLayout => true
Components => object(ComponentCollection) {}
viewClass => 'View'
View => null
ext => '.ctp'
plugin => null
cacheAction => false
passedArgs => array(
(int) 0 => '1',
(int) 1 => '2020',
(int) 2 => '04'
)
scaffold => false
methods => array(
(int) 1 => 'imprimir',
(int) 2 => 'alimentos',
(int) 3 => 'ajax_incluirAlimento',
(int) 4 => 'ajax_refeicoes',
(int) 5 => 'ajax_calendario',
(int) 6 => 'admin_index',
(int) 7 => 'admin_calendario',
(int) 8 => 'admin_view',
(int) 9 => 'admin_add',
(int) 10 => 'admin_edit',
(int) 11 => 'admin_delete'
)
modelClass => 'Cardapio'
modelKey => 'cardapio'
validationErrors => null
Session => object(SessionComponent) {}
Auth => object(AuthComponent) {}
Acl => object(AclComponent) {}
AclTools => object(AcltoolsComponent) {}
Paginator => object(PaginatorComponent) {}
PaginateFilter => object(PaginateFilterComponent) {}
Cardapio => object(Cardapio) {}
Config => object(Config) {}
CardapioTipo => object(CardapioTipo) {}
Semana => object(Semana) {}
[protected] _responseClass => 'CakeResponse'
[protected] _mergeParent => 'AppController'
[protected] _eventManager => object(CakeEventManager) {}
} CardapiosController::imprimir() - APP/Controller/CardapiosController.php, line 83
ReflectionMethod::invokeArgs() - [internal], line ??
Controller::invokeAction() - CORE/Cake/Controller/Controller.php, line 490
Dispatcher::_invoke() - CORE/Cake/Routing/Dispatcher.php, line 193
Dispatcher::dispatch() - CORE/Cake/Routing/Dispatcher.php, line 167
[main] - APP/webroot/index.php, line 99 Notice (8) : Undefined index: CardapioTipo [APP/Model/CardapioTipo.php , line 43 ]Code Context 'CardapioTipo.id' => $id
]
])[ 'CardapioTipo' ][ 'nome' ];
$id = '1' CardapioTipo::getNome() - APP/Model/CardapioTipo.php, line 43
CardapiosController::imprimir() - APP/Controller/CardapiosController.php, line 94
ReflectionMethod::invokeArgs() - [internal], line ??
Controller::invokeAction() - CORE/Cake/Controller/Controller.php, line 490
Dispatcher::_invoke() - CORE/Cake/Routing/Dispatcher.php, line 193
Dispatcher::dispatch() - CORE/Cake/Routing/Dispatcher.php, line 167
[main] - APP/webroot/index.php, line 99 CakePHP: the rapid development php framework: Errors Data has already been sent to output, unable to output PDF file Error: An Internal Error Has Occurred.
Stack Trace
APP/Controller/CardapiosController.php line 116 → Mpdf\Mpdf->Output(string, string) $pdf = new \ Mpdf \ Mpdf ();
$pdf -> WriteHTML ( $view -> render ( 'pdf' ));
$pdf -> setAutoTopMargin = 0 ;
$pdf -> Output ( $nomeArquivo . '.pdf' , 'D' );
[internal function] → CardapiosController->imprimir(string, string, string)
CORE/Cake/Controller/Controller.php line 490 → ReflectionMethod->invokeArgs(CardapiosController, array) 'action' => $request -> params [ 'action' ]
));
}
return $method -> invokeArgs ( $this , $request -> params [ 'pass' ]);
object(CardapiosController) {
components => array(
'Session' => null,
'Auth' => null,
'Acl' => null,
'AclTools.AclTools' => null,
'Paginator' => null,
'PaginateFilter.PaginateFilter' => null
)
helpers => array(
(int) 0 => 'AclTools.AclTools',
(int) 1 => 'Uploads',
(int) 2 => 'Images'
)
name => 'Cardapios'
uses => array(
(int) 0 => 'Cardapio',
(int) 1 => 'Config',
(int) 2 => 'CardapioTipo'
)
request => object(CakeRequest) {
params => array(
[maximum depth reached]
)
data => array([maximum depth reached])
query => array([maximum depth reached])
url => 'cardapios/imprimir/1/2020/04'
base => ''
webroot => '/'
here => '/cardapios/imprimir/1/2020/04'
[protected] _detectors => array(
[maximum depth reached]
)
[protected] _input => ''
}
response => object(CakeResponse) {
[protected] _statusCodes => array(
[maximum depth reached]
)
[protected] _mimeTypes => array(
[maximum depth reached]
)
[protected] _protocol => 'HTTP/1.1'
[protected] _status => (int) 200
[protected] _contentType => 'text/html'
[protected] _headers => array([maximum depth reached])
[protected] _body => null
[protected] _file => null
[protected] _fileRange => null
[protected] _charset => 'UTF-8'
[protected] _cacheDirectives => array([maximum depth reached])
[protected] _cookies => array([maximum depth reached])
}
viewPath => 'Cardapios'
layoutPath => null
viewVars => array(
'meses' => array(
(int) 1 => 'Janeiro',
(int) 2 => 'Fevereiro',
(int) 3 => 'Março',
(int) 4 => 'Abril',
(int) 5 => 'Maio',
(int) 6 => 'Junho',
(int) 7 => 'Julho',
(int) 8 => 'Agosto',
(int) 9 => 'Setembro',
(int) 10 => 'Outubro',
(int) 11 => 'Novembro',
(int) 12 => 'Dezembro'
),
'semanas' => array(
(int) 1 => 'Segunda Feira',
(int) 2 => 'Terça Feira',
(int) 3 => 'Quarta Feira',
(int) 4 => 'Quinta Feira',
(int) 5 => 'Sexta Feira'
),
'cardapioTipos' => array(
(int) 2 => 'Cardápio'
),
'periodos' => array(
(int) 1 => 'Lanche da Manhã',
(int) 2 => 'Almoço I',
(int) 3 => 'Lanche da Tarde'
),
'defaultContent' => array(
'CardapioTipo' => array(
[maximum depth reached]
)
),
'siteConfig' => array(
'Config' => array(
[maximum depth reached]
)
)
)
view => 'imprimir'
layout => 'default'
autoRender => false
autoLayout => true
Components => object(ComponentCollection) {
defaultPriority => (int) 10
[protected] _Controller => object(CardapiosController) {}
[protected] _enabled => array(
[maximum depth reached]
)
[protected] _loaded => array(
[maximum depth reached]
)
}
viewClass => 'View'
View => null
ext => '.ctp'
plugin => null
cacheAction => false
passedArgs => array(
(int) 0 => '1',
(int) 1 => '2020',
(int) 2 => '04'
)
scaffold => false
methods => array(
(int) 1 => 'imprimir',
(int) 2 => 'alimentos',
(int) 3 => 'ajax_incluirAlimento',
(int) 4 => 'ajax_refeicoes',
(int) 5 => 'ajax_calendario',
(int) 6 => 'admin_index',
(int) 7 => 'admin_calendario',
(int) 8 => 'admin_view',
(int) 9 => 'admin_add',
(int) 10 => 'admin_edit',
(int) 11 => 'admin_delete'
)
modelClass => 'Cardapio'
modelKey => 'cardapio'
validationErrors => null
Session => object(SessionComponent) {
settings => array([maximum depth reached])
components => array([maximum depth reached])
[protected] _Collection => object(ComponentCollection) {}
[protected] _componentMap => array([maximum depth reached])
}
Auth => object(AuthComponent) {
components => array(
[maximum depth reached]
)
authenticate => array(
[maximum depth reached]
)
authorize => array(
[maximum depth reached]
)
ajaxLogin => null
flash => array(
[maximum depth reached]
)
loginAction => array(
[maximum depth reached]
)
loginRedirect => null
logoutRedirect => array(
[maximum depth reached]
)
authError => 'You are not authorized to access that location.'
unauthorizedRedirect => true
allowedActions => array(
[maximum depth reached]
)
request => object(CakeRequest) {}
response => object(CakeResponse) {}
settings => array([maximum depth reached])
[protected] _authenticateObjects => array([maximum depth reached])
[protected] _authorizeObjects => array([maximum depth reached])
[protected] _user => array([maximum depth reached])
[protected] _methods => array(
[maximum depth reached]
)
[protected] _Collection => object(ComponentCollection) {}
[protected] _componentMap => array(
[maximum depth reached]
)
}
Acl => object(AclComponent) {
Aro => object(Aro) {}
Aco => object(Aco) {}
settings => array([maximum depth reached])
components => array([maximum depth reached])
[protected] _Instance => object(DbAcl) {}
[protected] _Collection => object(ComponentCollection) {}
[protected] _componentMap => array([maximum depth reached])
}
AclTools => object(AcltoolsComponent) {
settings => array([maximum depth reached])
components => array([maximum depth reached])
[protected] _Collection => object(ComponentCollection) {}
[protected] _componentMap => array([maximum depth reached])
}
Paginator => object(PaginatorComponent) {
settings => array(
[maximum depth reached]
)
whitelist => array(
[maximum depth reached]
)
components => array([maximum depth reached])
Controller => object(CardapiosController) {}
[protected] _Collection => object(ComponentCollection) {}
[protected] _componentMap => array([maximum depth reached])
}
PaginateFilter => object(PaginateFilterComponent) {
settings => array([maximum depth reached])
components => array([maximum depth reached])
[protected] _Collection => object(ComponentCollection) {}
[protected] _componentMap => array([maximum depth reached])
[private] modelAlias => 'Cardapio'
[private] actionToFilter => 'index'
[private] actionToFilterPrefix => 'admin'
[private] actionsToStoreRequestData => array([maximum depth reached])
[private] clearNamedParam => 'clearPaginateFilter'
[private] textFields => array(
[maximum depth reached]
)
[private] joins => array([maximum depth reached])
[private] parseFields => array([maximum depth reached])
[private] group => null
[private] modelsToTranslate => array([maximum depth reached])
[private] translatedModels => array([maximum depth reached])
[private] betweenFields => array([maximum depth reached])
[private] betweenFieldsTranslate => array([maximum depth reached])
}
Cardapio => object(Cardapio) {
validate => array(
[maximum depth reached]
)
belongsTo => array(
[maximum depth reached]
)
hasMany => array(
[maximum depth reached]
)
useDbConfig => 'default'
useTable => 'cardapios'
id => false
data => array([maximum depth reached])
schemaName => 'pequeno_novo'
table => 'cardapios'
primaryKey => 'id'
validationErrors => array([maximum depth reached])
validationDomain => null
tablePrefix => ''
plugin => null
name => 'Cardapio'
alias => 'Cardapio'
tableToModel => array(
[maximum depth reached]
)
cacheQueries => false
hasOne => array([maximum depth reached])
hasAndBelongsToMany => array([maximum depth reached])
actsAs => null
Behaviors => object(BehaviorCollection) {}
whitelist => array([maximum depth reached])
cacheSources => true
findQueryType => null
recursive => (int) 1
order => null
virtualFields => array([maximum depth reached])
__backAssociation => array([maximum depth reached])
__backInnerAssociation => array([maximum depth reached])
__backOriginalAssociation => array([maximum depth reached])
__backContainableAssociation => array([maximum depth reached])
__safeUpdateMode => false
useConsistentAfterFind => true
findMethods => array(
[maximum depth reached]
)
Mes => object(Mes) {}
CardapioTipo => object(CardapioTipo) {}
CardapioAlimento => object(CardapioAlimento) {}
[protected] _schema => array(
[maximum depth reached]
)
[protected] _associationKeys => array(
[maximum depth reached]
)
[protected] _associations => array(
[maximum depth reached]
)
[protected] _insertID => null
[protected] _sourceConfigured => true
[protected] _eventManager => object(CakeEventManager) {}
[protected] _validator => null
}
Config => object(Config) {
validate => array(
[maximum depth reached]
)
useDbConfig => 'default'
useTable => 'configs'
id => false
data => array([maximum depth reached])
schemaName => 'pequeno_novo'
table => 'configs'
primaryKey => 'id'
validationErrors => array([maximum depth reached])
validationDomain => null
tablePrefix => ''
plugin => null
name => 'Config'
alias => 'Config'
tableToModel => array(
[maximum depth reached]
)
cacheQueries => false
belongsTo => array([maximum depth reached])
hasOne => array([maximum depth reached])
hasMany => array([maximum depth reached])
hasAndBelongsToMany => array([maximum depth reached])
actsAs => null
Behaviors => object(BehaviorCollection) {}
whitelist => array([maximum depth reached])
cacheSources => true
findQueryType => null
recursive => (int) 1
order => null
virtualFields => array([maximum depth reached])
__backAssociation => array([maximum depth reached])
__backInnerAssociation => array([maximum depth reached])
__backOriginalAssociation => array([maximum depth reached])
__backContainableAssociation => array([maximum depth reached])
__safeUpdateMode => false
useConsistentAfterFind => true
findMethods => array(
[maximum depth reached]
)
[protected] _schema => null
[protected] _associationKeys => array(
[maximum depth reached]
)
[protected] _associations => array(
[maximum depth reached]
)
[protected] _insertID => null
[protected] _sourceConfigured => true
[protected] _eventManager => object(CakeEventManager) {}
[protected] _validator => null
}
CardapioTipo => object(CardapioTipo) {
displayField => 'nome'
validate => array(
[maximum depth reached]
)
hasMany => array(
[maximum depth reached]
)
useDbConfig => 'default'
useTable => 'cardapio_tipos'
id => false
data => array([maximum depth reached])
schemaName => 'pequeno_novo'
table => 'cardapio_tipos'
primaryKey => 'id'
validationErrors => array([maximum depth reached])
validationDomain => null
tablePrefix => ''
plugin => null
name => 'CardapioTipo'
alias => 'CardapioTipo'
tableToModel => array(
[maximum depth reached]
)
cacheQueries => false
belongsTo => array([maximum depth reached])
hasOne => array([maximum depth reached])
hasAndBelongsToMany => array([maximum depth reached])
actsAs => null
Behaviors => object(BehaviorCollection) {}
whitelist => array([maximum depth reached])
cacheSources => true
findQueryType => null
recursive => (int) 1
order => null
virtualFields => array([maximum depth reached])
__backAssociation => array([maximum depth reached])
__backInnerAssociation => array([maximum depth reached])
__backOriginalAssociation => array([maximum depth reached])
__backContainableAssociation => array([maximum depth reached])
__safeUpdateMode => false
useConsistentAfterFind => true
findMethods => array(
[maximum depth reached]
)
Cardapio => object(Cardapio) {}
[protected] _schema => array(
[maximum depth reached]
)
[protected] _associationKeys => array(
[maximum depth reached]
)
[protected] _associations => array(
[maximum depth reached]
)
[protected] _insertID => null
[protected] _sourceConfigured => true
[protected] _eventManager => object(CakeEventManager) {}
[protected] _validator => null
}
Semana => object(Semana) {
displayField => 'ordem'
validate => array(
[maximum depth reached]
)
hasMany => array(
[maximum depth reached]
)
useDbConfig => 'default'
useTable => 'semanas'
id => false
data => array([maximum depth reached])
schemaName => 'pequeno_novo'
table => 'semanas'
primaryKey => 'id'
validationErrors => array([maximum depth reached])
validationDomain => null
tablePrefix => ''
plugin => null
name => 'Semana'
alias => 'Semana'
tableToModel => array(
[maximum depth reached]
)
cacheQueries => false
belongsTo => array([maximum depth reached])
hasOne => array([maximum depth reached])
hasAndBelongsToMany => array([maximum depth reached])
actsAs => null
Behaviors => object(BehaviorCollection) {}
whitelist => array([maximum depth reached])
cacheSources => true
findQueryType => null
recursive => (int) 1
order => null
virtualFields => array([maximum depth reached])
__backAssociation => array([maximum depth reached])
__backInnerAssociation => array([maximum depth reached])
__backOriginalAssociation => array([maximum depth reached])
__backContainableAssociation => array([maximum depth reached])
__safeUpdateMode => false
useConsistentAfterFind => true
findMethods => array(
[maximum depth reached]
)
[protected] _schema => null
[protected] _associationKeys => array(
[maximum depth reached]
)
[protected] _associations => array(
[maximum depth reached]
)
[protected] _insertID => null
[protected] _sourceConfigured => true
[protected] _eventManager => object(CakeEventManager) {}
[protected] _validator => null
}
[protected] _responseClass => 'CakeResponse'
[protected] _mergeParent => 'AppController'
[protected] _eventManager => object(CakeEventManager) {
[protected] _generalManager => object(CakeEventManager) {}
[protected] _listeners => array(
[maximum depth reached]
)
[protected] _isGlobal => false
}
}
array(
(int) 0 => '1',
(int) 1 => '2020',
(int) 2 => '04'
)
CORE/Cake/Routing/Dispatcher.php line 193 → Controller->invokeAction(CakeRequest)
$response = $controller -> response ;
$render = true ;
$result = $controller -> invokeAction ( $request );
if ( $result instanceof CakeResponse ) {
object(CakeRequest) {
params => array(
'plugin' => null,
'controller' => 'cardapios',
'action' => 'imprimir',
'named' => array(),
'pass' => array(
(int) 0 => '1',
(int) 1 => '2020',
(int) 2 => '04'
),
'isAjax' => false,
'models' => array(
'Config' => array(
[maximum depth reached]
),
'CardapioTipo' => array(
[maximum depth reached]
),
'Permission' => array(
[maximum depth reached]
),
'Aro' => array(
[maximum depth reached]
),
'Aco' => array(
[maximum depth reached]
),
'Cardapio' => array(
[maximum depth reached]
),
'Semana' => array(
[maximum depth reached]
),
'Mes' => array(
[maximum depth reached]
),
'CardapioAlimento' => array(
[maximum depth reached]
),
'Periodo' => array(
[maximum depth reached]
)
)
)
data => array()
query => array()
url => 'cardapios/imprimir/1/2020/04'
base => ''
webroot => '/'
here => '/cardapios/imprimir/1/2020/04'
[protected] _detectors => array(
'get' => array(
'env' => 'REQUEST_METHOD',
'value' => 'GET'
),
'post' => array(
'env' => 'REQUEST_METHOD',
'value' => 'POST'
),
'put' => array(
'env' => 'REQUEST_METHOD',
'value' => 'PUT'
),
'delete' => array(
'env' => 'REQUEST_METHOD',
'value' => 'DELETE'
),
'head' => array(
'env' => 'REQUEST_METHOD',
'value' => 'HEAD'
),
'options' => array(
'env' => 'REQUEST_METHOD',
'value' => 'OPTIONS'
),
'ssl' => array(
'env' => 'HTTPS',
'value' => (int) 1
),
'ajax' => array(
'env' => 'HTTP_X_REQUESTED_WITH',
'value' => 'XMLHttpRequest'
),
'flash' => array(
'env' => 'HTTP_USER_AGENT',
'pattern' => '/^(Shockwave|Adobe) Flash/'
),
'mobile' => array(
'env' => 'HTTP_USER_AGENT',
'options' => array(
[maximum depth reached]
)
),
'requested' => array(
'param' => 'requested',
'value' => (int) 1
)
)
[protected] _input => ''
}
CORE/Cake/Routing/Dispatcher.php line 167 → Dispatcher->_invoke(CardapiosController, CakeRequest) ));
}
$response = $this -> _invoke ( $controller , $request );
if (isset( $request -> params [ 'return' ])) {
object(CardapiosController) {
components => array(
'Session' => null,
'Auth' => null,
'Acl' => null,
'AclTools.AclTools' => null,
'Paginator' => null,
'PaginateFilter.PaginateFilter' => null
)
helpers => array(
(int) 0 => 'AclTools.AclTools',
(int) 1 => 'Uploads',
(int) 2 => 'Images'
)
name => 'Cardapios'
uses => array(
(int) 0 => 'Cardapio',
(int) 1 => 'Config',
(int) 2 => 'CardapioTipo'
)
request => object(CakeRequest) {
params => array(
[maximum depth reached]
)
data => array([maximum depth reached])
query => array([maximum depth reached])
url => 'cardapios/imprimir/1/2020/04'
base => ''
webroot => '/'
here => '/cardapios/imprimir/1/2020/04'
[protected] _detectors => array(
[maximum depth reached]
)
[protected] _input => ''
}
response => object(CakeResponse) {
[protected] _statusCodes => array(
[maximum depth reached]
)
[protected] _mimeTypes => array(
[maximum depth reached]
)
[protected] _protocol => 'HTTP/1.1'
[protected] _status => (int) 200
[protected] _contentType => 'text/html'
[protected] _headers => array([maximum depth reached])
[protected] _body => null
[protected] _file => null
[protected] _fileRange => null
[protected] _charset => 'UTF-8'
[protected] _cacheDirectives => array([maximum depth reached])
[protected] _cookies => array([maximum depth reached])
}
viewPath => 'Cardapios'
layoutPath => null
viewVars => array(
'meses' => array(
(int) 1 => 'Janeiro',
(int) 2 => 'Fevereiro',
(int) 3 => 'Março',
(int) 4 => 'Abril',
(int) 5 => 'Maio',
(int) 6 => 'Junho',
(int) 7 => 'Julho',
(int) 8 => 'Agosto',
(int) 9 => 'Setembro',
(int) 10 => 'Outubro',
(int) 11 => 'Novembro',
(int) 12 => 'Dezembro'
),
'semanas' => array(
(int) 1 => 'Segunda Feira',
(int) 2 => 'Terça Feira',
(int) 3 => 'Quarta Feira',
(int) 4 => 'Quinta Feira',
(int) 5 => 'Sexta Feira'
),
'cardapioTipos' => array(
(int) 2 => 'Cardápio'
),
'periodos' => array(
(int) 1 => 'Lanche da Manhã',
(int) 2 => 'Almoço I',
(int) 3 => 'Lanche da Tarde'
),
'defaultContent' => array(
'CardapioTipo' => array(
[maximum depth reached]
)
),
'siteConfig' => array(
'Config' => array(
[maximum depth reached]
)
)
)
view => 'imprimir'
layout => 'default'
autoRender => false
autoLayout => true
Components => object(ComponentCollection) {
defaultPriority => (int) 10
[protected] _Controller => object(CardapiosController) {}
[protected] _enabled => array(
[maximum depth reached]
)
[protected] _loaded => array(
[maximum depth reached]
)
}
viewClass => 'View'
View => null
ext => '.ctp'
plugin => null
cacheAction => false
passedArgs => array(
(int) 0 => '1',
(int) 1 => '2020',
(int) 2 => '04'
)
scaffold => false
methods => array(
(int) 1 => 'imprimir',
(int) 2 => 'alimentos',
(int) 3 => 'ajax_incluirAlimento',
(int) 4 => 'ajax_refeicoes',
(int) 5 => 'ajax_calendario',
(int) 6 => 'admin_index',
(int) 7 => 'admin_calendario',
(int) 8 => 'admin_view',
(int) 9 => 'admin_add',
(int) 10 => 'admin_edit',
(int) 11 => 'admin_delete'
)
modelClass => 'Cardapio'
modelKey => 'cardapio'
validationErrors => null
Session => object(SessionComponent) {
settings => array([maximum depth reached])
components => array([maximum depth reached])
[protected] _Collection => object(ComponentCollection) {}
[protected] _componentMap => array([maximum depth reached])
}
Auth => object(AuthComponent) {
components => array(
[maximum depth reached]
)
authenticate => array(
[maximum depth reached]
)
authorize => array(
[maximum depth reached]
)
ajaxLogin => null
flash => array(
[maximum depth reached]
)
loginAction => array(
[maximum depth reached]
)
loginRedirect => null
logoutRedirect => array(
[maximum depth reached]
)
authError => 'You are not authorized to access that location.'
unauthorizedRedirect => true
allowedActions => array(
[maximum depth reached]
)
request => object(CakeRequest) {}
response => object(CakeResponse) {}
settings => array([maximum depth reached])
[protected] _authenticateObjects => array([maximum depth reached])
[protected] _authorizeObjects => array([maximum depth reached])
[protected] _user => array([maximum depth reached])
[protected] _methods => array(
[maximum depth reached]
)
[protected] _Collection => object(ComponentCollection) {}
[protected] _componentMap => array(
[maximum depth reached]
)
}
Acl => object(AclComponent) {
Aro => object(Aro) {}
Aco => object(Aco) {}
settings => array([maximum depth reached])
components => array([maximum depth reached])
[protected] _Instance => object(DbAcl) {}
[protected] _Collection => object(ComponentCollection) {}
[protected] _componentMap => array([maximum depth reached])
}
AclTools => object(AcltoolsComponent) {
settings => array([maximum depth reached])
components => array([maximum depth reached])
[protected] _Collection => object(ComponentCollection) {}
[protected] _componentMap => array([maximum depth reached])
}
Paginator => object(PaginatorComponent) {
settings => array(
[maximum depth reached]
)
whitelist => array(
[maximum depth reached]
)
components => array([maximum depth reached])
Controller => object(CardapiosController) {}
[protected] _Collection => object(ComponentCollection) {}
[protected] _componentMap => array([maximum depth reached])
}
PaginateFilter => object(PaginateFilterComponent) {
settings => array([maximum depth reached])
components => array([maximum depth reached])
[protected] _Collection => object(ComponentCollection) {}
[protected] _componentMap => array([maximum depth reached])
[private] modelAlias => 'Cardapio'
[private] actionToFilter => 'index'
[private] actionToFilterPrefix => 'admin'
[private] actionsToStoreRequestData => array([maximum depth reached])
[private] clearNamedParam => 'clearPaginateFilter'
[private] textFields => array(
[maximum depth reached]
)
[private] joins => array([maximum depth reached])
[private] parseFields => array([maximum depth reached])
[private] group => null
[private] modelsToTranslate => array([maximum depth reached])
[private] translatedModels => array([maximum depth reached])
[private] betweenFields => array([maximum depth reached])
[private] betweenFieldsTranslate => array([maximum depth reached])
}
Cardapio => object(Cardapio) {
validate => array(
[maximum depth reached]
)
belongsTo => array(
[maximum depth reached]
)
hasMany => array(
[maximum depth reached]
)
useDbConfig => 'default'
useTable => 'cardapios'
id => false
data => array([maximum depth reached])
schemaName => 'pequeno_novo'
table => 'cardapios'
primaryKey => 'id'
validationErrors => array([maximum depth reached])
validationDomain => null
tablePrefix => ''
plugin => null
name => 'Cardapio'
alias => 'Cardapio'
tableToModel => array(
[maximum depth reached]
)
cacheQueries => false
hasOne => array([maximum depth reached])
hasAndBelongsToMany => array([maximum depth reached])
actsAs => null
Behaviors => object(BehaviorCollection) {}
whitelist => array([maximum depth reached])
cacheSources => true
findQueryType => null
recursive => (int) 1
order => null
virtualFields => array([maximum depth reached])
__backAssociation => array([maximum depth reached])
__backInnerAssociation => array([maximum depth reached])
__backOriginalAssociation => array([maximum depth reached])
__backContainableAssociation => array([maximum depth reached])
__safeUpdateMode => false
useConsistentAfterFind => true
findMethods => array(
[maximum depth reached]
)
Mes => object(Mes) {}
CardapioTipo => object(CardapioTipo) {}
CardapioAlimento => object(CardapioAlimento) {}
[protected] _schema => array(
[maximum depth reached]
)
[protected] _associationKeys => array(
[maximum depth reached]
)
[protected] _associations => array(
[maximum depth reached]
)
[protected] _insertID => null
[protected] _sourceConfigured => true
[protected] _eventManager => object(CakeEventManager) {}
[protected] _validator => null
}
Config => object(Config) {
validate => array(
[maximum depth reached]
)
useDbConfig => 'default'
useTable => 'configs'
id => false
data => array([maximum depth reached])
schemaName => 'pequeno_novo'
table => 'configs'
primaryKey => 'id'
validationErrors => array([maximum depth reached])
validationDomain => null
tablePrefix => ''
plugin => null
name => 'Config'
alias => 'Config'
tableToModel => array(
[maximum depth reached]
)
cacheQueries => false
belongsTo => array([maximum depth reached])
hasOne => array([maximum depth reached])
hasMany => array([maximum depth reached])
hasAndBelongsToMany => array([maximum depth reached])
actsAs => null
Behaviors => object(BehaviorCollection) {}
whitelist => array([maximum depth reached])
cacheSources => true
findQueryType => null
recursive => (int) 1
order => null
virtualFields => array([maximum depth reached])
__backAssociation => array([maximum depth reached])
__backInnerAssociation => array([maximum depth reached])
__backOriginalAssociation => array([maximum depth reached])
__backContainableAssociation => array([maximum depth reached])
__safeUpdateMode => false
useConsistentAfterFind => true
findMethods => array(
[maximum depth reached]
)
[protected] _schema => null
[protected] _associationKeys => array(
[maximum depth reached]
)
[protected] _associations => array(
[maximum depth reached]
)
[protected] _insertID => null
[protected] _sourceConfigured => true
[protected] _eventManager => object(CakeEventManager) {}
[protected] _validator => null
}
CardapioTipo => object(CardapioTipo) {
displayField => 'nome'
validate => array(
[maximum depth reached]
)
hasMany => array(
[maximum depth reached]
)
useDbConfig => 'default'
useTable => 'cardapio_tipos'
id => false
data => array([maximum depth reached])
schemaName => 'pequeno_novo'
table => 'cardapio_tipos'
primaryKey => 'id'
validationErrors => array([maximum depth reached])
validationDomain => null
tablePrefix => ''
plugin => null
name => 'CardapioTipo'
alias => 'CardapioTipo'
tableToModel => array(
[maximum depth reached]
)
cacheQueries => false
belongsTo => array([maximum depth reached])
hasOne => array([maximum depth reached])
hasAndBelongsToMany => array([maximum depth reached])
actsAs => null
Behaviors => object(BehaviorCollection) {}
whitelist => array([maximum depth reached])
cacheSources => true
findQueryType => null
recursive => (int) 1
order => null
virtualFields => array([maximum depth reached])
__backAssociation => array([maximum depth reached])
__backInnerAssociation => array([maximum depth reached])
__backOriginalAssociation => array([maximum depth reached])
__backContainableAssociation => array([maximum depth reached])
__safeUpdateMode => false
useConsistentAfterFind => true
findMethods => array(
[maximum depth reached]
)
Cardapio => object(Cardapio) {}
[protected] _schema => array(
[maximum depth reached]
)
[protected] _associationKeys => array(
[maximum depth reached]
)
[protected] _associations => array(
[maximum depth reached]
)
[protected] _insertID => null
[protected] _sourceConfigured => true
[protected] _eventManager => object(CakeEventManager) {}
[protected] _validator => null
}
Semana => object(Semana) {
displayField => 'ordem'
validate => array(
[maximum depth reached]
)
hasMany => array(
[maximum depth reached]
)
useDbConfig => 'default'
useTable => 'semanas'
id => false
data => array([maximum depth reached])
schemaName => 'pequeno_novo'
table => 'semanas'
primaryKey => 'id'
validationErrors => array([maximum depth reached])
validationDomain => null
tablePrefix => ''
plugin => null
name => 'Semana'
alias => 'Semana'
tableToModel => array(
[maximum depth reached]
)
cacheQueries => false
belongsTo => array([maximum depth reached])
hasOne => array([maximum depth reached])
hasAndBelongsToMany => array([maximum depth reached])
actsAs => null
Behaviors => object(BehaviorCollection) {}
whitelist => array([maximum depth reached])
cacheSources => true
findQueryType => null
recursive => (int) 1
order => null
virtualFields => array([maximum depth reached])
__backAssociation => array([maximum depth reached])
__backInnerAssociation => array([maximum depth reached])
__backOriginalAssociation => array([maximum depth reached])
__backContainableAssociation => array([maximum depth reached])
__safeUpdateMode => false
useConsistentAfterFind => true
findMethods => array(
[maximum depth reached]
)
[protected] _schema => null
[protected] _associationKeys => array(
[maximum depth reached]
)
[protected] _associations => array(
[maximum depth reached]
)
[protected] _insertID => null
[protected] _sourceConfigured => true
[protected] _eventManager => object(CakeEventManager) {}
[protected] _validator => null
}
[protected] _responseClass => 'CakeResponse'
[protected] _mergeParent => 'AppController'
[protected] _eventManager => object(CakeEventManager) {
[protected] _generalManager => object(CakeEventManager) {}
[protected] _listeners => array(
[maximum depth reached]
)
[protected] _isGlobal => false
}
}
object(CakeRequest) {
params => array(
'plugin' => null,
'controller' => 'cardapios',
'action' => 'imprimir',
'named' => array(),
'pass' => array(
(int) 0 => '1',
(int) 1 => '2020',
(int) 2 => '04'
),
'isAjax' => false,
'models' => array(
'Config' => array(
[maximum depth reached]
),
'CardapioTipo' => array(
[maximum depth reached]
),
'Permission' => array(
[maximum depth reached]
),
'Aro' => array(
[maximum depth reached]
),
'Aco' => array(
[maximum depth reached]
),
'Cardapio' => array(
[maximum depth reached]
),
'Semana' => array(
[maximum depth reached]
),
'Mes' => array(
[maximum depth reached]
),
'CardapioAlimento' => array(
[maximum depth reached]
),
'Periodo' => array(
[maximum depth reached]
)
)
)
data => array()
query => array()
url => 'cardapios/imprimir/1/2020/04'
base => ''
webroot => '/'
here => '/cardapios/imprimir/1/2020/04'
[protected] _detectors => array(
'get' => array(
'env' => 'REQUEST_METHOD',
'value' => 'GET'
),
'post' => array(
'env' => 'REQUEST_METHOD',
'value' => 'POST'
),
'put' => array(
'env' => 'REQUEST_METHOD',
'value' => 'PUT'
),
'delete' => array(
'env' => 'REQUEST_METHOD',
'value' => 'DELETE'
),
'head' => array(
'env' => 'REQUEST_METHOD',
'value' => 'HEAD'
),
'options' => array(
'env' => 'REQUEST_METHOD',
'value' => 'OPTIONS'
),
'ssl' => array(
'env' => 'HTTPS',
'value' => (int) 1
),
'ajax' => array(
'env' => 'HTTP_X_REQUESTED_WITH',
'value' => 'XMLHttpRequest'
),
'flash' => array(
'env' => 'HTTP_USER_AGENT',
'pattern' => '/^(Shockwave|Adobe) Flash/'
),
'mobile' => array(
'env' => 'HTTP_USER_AGENT',
'options' => array(
[maximum depth reached]
)
),
'requested' => array(
'param' => 'requested',
'value' => (int) 1
)
)
[protected] _input => ''
}
APP/webroot/index.php line 99 → Dispatcher->dispatch(CakeRequest, CakeResponse) $Dispatcher -> dispatch (
new CakeRequest (),
new CakeResponse ()
);
object(CakeRequest) {
params => array(
'plugin' => null,
'controller' => 'cardapios',
'action' => 'imprimir',
'named' => array(),
'pass' => array(
(int) 0 => '1',
(int) 1 => '2020',
(int) 2 => '04'
),
'isAjax' => false,
'models' => array(
'Config' => array(
[maximum depth reached]
),
'CardapioTipo' => array(
[maximum depth reached]
),
'Permission' => array(
[maximum depth reached]
),
'Aro' => array(
[maximum depth reached]
),
'Aco' => array(
[maximum depth reached]
),
'Cardapio' => array(
[maximum depth reached]
),
'Semana' => array(
[maximum depth reached]
),
'Mes' => array(
[maximum depth reached]
),
'CardapioAlimento' => array(
[maximum depth reached]
),
'Periodo' => array(
[maximum depth reached]
)
)
)
data => array()
query => array()
url => 'cardapios/imprimir/1/2020/04'
base => ''
webroot => '/'
here => '/cardapios/imprimir/1/2020/04'
[protected] _detectors => array(
'get' => array(
'env' => 'REQUEST_METHOD',
'value' => 'GET'
),
'post' => array(
'env' => 'REQUEST_METHOD',
'value' => 'POST'
),
'put' => array(
'env' => 'REQUEST_METHOD',
'value' => 'PUT'
),
'delete' => array(
'env' => 'REQUEST_METHOD',
'value' => 'DELETE'
),
'head' => array(
'env' => 'REQUEST_METHOD',
'value' => 'HEAD'
),
'options' => array(
'env' => 'REQUEST_METHOD',
'value' => 'OPTIONS'
),
'ssl' => array(
'env' => 'HTTPS',
'value' => (int) 1
),
'ajax' => array(
'env' => 'HTTP_X_REQUESTED_WITH',
'value' => 'XMLHttpRequest'
),
'flash' => array(
'env' => 'HTTP_USER_AGENT',
'pattern' => '/^(Shockwave|Adobe) Flash/'
),
'mobile' => array(
'env' => 'HTTP_USER_AGENT',
'options' => array(
[maximum depth reached]
)
),
'requested' => array(
'param' => 'requested',
'value' => (int) 1
)
)
[protected] _input => ''
}
object(CakeResponse) {
[protected] _statusCodes => array(
(int) 100 => 'Continue',
(int) 101 => 'Switching Protocols',
(int) 200 => 'OK',
(int) 201 => 'Created',
(int) 202 => 'Accepted',
(int) 203 => 'Non-Authoritative Information',
(int) 204 => 'No Content',
(int) 205 => 'Reset Content',
(int) 206 => 'Partial Content',
(int) 300 => 'Multiple Choices',
(int) 301 => 'Moved Permanently',
(int) 302 => 'Found',
(int) 303 => 'See Other',
(int) 304 => 'Not Modified',
(int) 305 => 'Use Proxy',
(int) 307 => 'Temporary Redirect',
(int) 400 => 'Bad Request',
(int) 401 => 'Unauthorized',
(int) 402 => 'Payment Required',
(int) 403 => 'Forbidden',
(int) 404 => 'Not Found',
(int) 405 => 'Method Not Allowed',
(int) 406 => 'Not Acceptable',
(int) 407 => 'Proxy Authentication Required',
(int) 408 => 'Request Time-out',
(int) 409 => 'Conflict',
(int) 410 => 'Gone',
(int) 411 => 'Length Required',
(int) 412 => 'Precondition Failed',
(int) 413 => 'Request Entity Too Large',
(int) 414 => 'Request-URI Too Large',
(int) 415 => 'Unsupported Media Type',
(int) 416 => 'Requested range not satisfiable',
(int) 417 => 'Expectation Failed',
(int) 429 => 'Too Many Requests',
(int) 500 => 'Internal Server Error',
(int) 501 => 'Not Implemented',
(int) 502 => 'Bad Gateway',
(int) 503 => 'Service Unavailable',
(int) 504 => 'Gateway Time-out',
(int) 505 => 'Unsupported Version'
)
[protected] _mimeTypes => array(
'html' => array(
(int) 0 => 'text/html',
(int) 1 => '*/*'
),
'json' => 'application/json',
'xml' => array(
(int) 0 => 'application/xml',
(int) 1 => 'text/xml'
),
'rss' => 'application/rss+xml',
'ai' => 'application/postscript',
'bcpio' => 'application/x-bcpio',
'bin' => 'application/octet-stream',
'ccad' => 'application/clariscad',
'cdf' => 'application/x-netcdf',
'class' => 'application/octet-stream',
'cpio' => 'application/x-cpio',
'cpt' => 'application/mac-compactpro',
'csh' => 'application/x-csh',
'csv' => array(
(int) 0 => 'text/csv',
(int) 1 => 'application/vnd.ms-excel',
(int) 2 => 'text/plain'
),
'dcr' => 'application/x-director',
'dir' => 'application/x-director',
'dms' => 'application/octet-stream',
'doc' => 'application/msword',
'docx' => 'application/vnd.openxmlformats-officedocument.wordprocessingml.document',
'drw' => 'application/drafting',
'dvi' => 'application/x-dvi',
'dwg' => 'application/acad',
'dxf' => 'application/dxf',
'dxr' => 'application/x-director',
'eot' => 'application/vnd.ms-fontobject',
'eps' => 'application/postscript',
'exe' => 'application/octet-stream',
'ez' => 'application/andrew-inset',
'flv' => 'video/x-flv',
'gtar' => 'application/x-gtar',
'gz' => 'application/x-gzip',
'bz2' => 'application/x-bzip',
'7z' => 'application/x-7z-compressed',
'hdf' => 'application/x-hdf',
'hqx' => 'application/mac-binhex40',
'ico' => 'image/x-icon',
'ips' => 'application/x-ipscript',
'ipx' => 'application/x-ipix',
'js' => 'application/javascript',
'latex' => 'application/x-latex',
'lha' => 'application/octet-stream',
'lsp' => 'application/x-lisp',
'lzh' => 'application/octet-stream',
'man' => 'application/x-troff-man',
'me' => 'application/x-troff-me',
'mif' => 'application/vnd.mif',
'ms' => 'application/x-troff-ms',
'nc' => 'application/x-netcdf',
'oda' => 'application/oda',
'otf' => 'font/otf',
'pdf' => 'application/pdf',
'pgn' => 'application/x-chess-pgn',
'pot' => 'application/vnd.ms-powerpoint',
'pps' => 'application/vnd.ms-powerpoint',
'ppt' => 'application/vnd.ms-powerpoint',
'pptx' => 'application/vnd.openxmlformats-officedocument.presentationml.presentation',
'ppz' => 'application/vnd.ms-powerpoint',
'pre' => 'application/x-freelance',
'prt' => 'application/pro_eng',
'ps' => 'application/postscript',
'roff' => 'application/x-troff',
'scm' => 'application/x-lotusscreencam',
'set' => 'application/set',
'sh' => 'application/x-sh',
'shar' => 'application/x-shar',
'sit' => 'application/x-stuffit',
'skd' => 'application/x-koan',
'skm' => 'application/x-koan',
'skp' => 'application/x-koan',
'skt' => 'application/x-koan',
'smi' => 'application/smil',
'smil' => 'application/smil',
'sol' => 'application/solids',
'spl' => 'application/x-futuresplash',
'src' => 'application/x-wais-source',
'step' => 'application/STEP',
'stl' => 'application/SLA',
'stp' => 'application/STEP',
'sv4cpio' => 'application/x-sv4cpio',
'sv4crc' => 'application/x-sv4crc',
'svg' => 'image/svg+xml',
'svgz' => 'image/svg+xml',
'swf' => 'application/x-shockwave-flash',
't' => 'application/x-troff',
'tar' => 'application/x-tar',
'tcl' => 'application/x-tcl',
'tex' => 'application/x-tex',
'texi' => 'application/x-texinfo',
'texinfo' => 'application/x-texinfo',
'tr' => 'application/x-troff',
'tsp' => 'application/dsptype',
'ttc' => 'font/ttf',
'ttf' => 'font/ttf',
'unv' => 'application/i-deas',
'ustar' => 'application/x-ustar',
'vcd' => 'application/x-cdlink',
'vda' => 'application/vda',
'xlc' => 'application/vnd.ms-excel',
'xll' => 'application/vnd.ms-excel',
'xlm' => 'application/vnd.ms-excel',
'xls' => 'application/vnd.ms-excel',
'xlsx' => 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet',
'xlw' => 'application/vnd.ms-excel',
'zip' => 'application/zip',
'aif' => 'audio/x-aiff',
'aifc' => 'audio/x-aiff',
'aiff' => 'audio/x-aiff',
'au' => 'audio/basic',
'kar' => 'audio/midi',
'mid' => 'audio/midi',
'midi' => 'audio/midi',
'mp2' => 'audio/mpeg',
'mp3' => 'audio/mpeg',
'mpga' => 'audio/mpeg',
'ogg' => 'audio/ogg',
'oga' => 'audio/ogg',
'spx' => 'audio/ogg',
'ra' => 'audio/x-realaudio',
'ram' => 'audio/x-pn-realaudio',
'rm' => 'audio/x-pn-realaudio',
'rpm' => 'audio/x-pn-realaudio-plugin',
'snd' => 'audio/basic',
'tsi' => 'audio/TSP-audio',
'wav' => 'audio/x-wav',
'aac' => 'audio/aac',
'asc' => 'text/plain',
'c' => 'text/plain',
'cc' => 'text/plain',
'css' => 'text/css',
'etx' => 'text/x-setext',
'f' => 'text/plain',
'f90' => 'text/plain',
'h' => 'text/plain',
'hh' => 'text/plain',
'htm' => array(
(int) 0 => 'text/html',
(int) 1 => '*/*'
),
'ics' => 'text/calendar',
'm' => 'text/plain',
'rtf' => 'text/rtf',
'rtx' => 'text/richtext',
'sgm' => 'text/sgml',
'sgml' => 'text/sgml',
'tsv' => 'text/tab-separated-values',
'tpl' => 'text/template',
'txt' => 'text/plain',
'text' => 'text/plain',
'avi' => 'video/x-msvideo',
'fli' => 'video/x-fli',
'mov' => 'video/quicktime',
'movie' => 'video/x-sgi-movie',
'mpe' => 'video/mpeg',
'mpeg' => 'video/mpeg',
'mpg' => 'video/mpeg',
'qt' => 'video/quicktime',
'viv' => 'video/vnd.vivo',
'vivo' => 'video/vnd.vivo',
'ogv' => 'video/ogg',
'webm' => 'video/webm',
'mp4' => 'video/mp4',
'm4v' => 'video/mp4',
'f4v' => 'video/mp4',
'f4p' => 'video/mp4',
'm4a' => 'audio/mp4',
'f4a' => 'audio/mp4',
'f4b' => 'audio/mp4',
'gif' => 'image/gif',
'ief' => 'image/ief',
'jpg' => 'image/jpeg',
'jpeg' => 'image/jpeg',
'jpe' => 'image/jpeg',
'pbm' => 'image/x-portable-bitmap',
'pgm' => 'image/x-portable-graymap',
'png' => 'image/png',
'pnm' => 'image/x-portable-anymap',
'ppm' => 'image/x-portable-pixmap',
'ras' => 'image/cmu-raster',
'rgb' => 'image/x-rgb',
'tif' => 'image/tiff',
'tiff' => 'image/tiff',
'xbm' => 'image/x-xbitmap',
'xpm' => 'image/x-xpixmap',
'xwd' => 'image/x-xwindowdump',
'ice' => 'x-conference/x-cooltalk',
'iges' => 'model/iges',
'igs' => 'model/iges',
'mesh' => 'model/mesh',
'msh' => 'model/mesh',
'silo' => 'model/mesh',
'vrml' => 'model/vrml',
'wrl' => 'model/vrml',
'mime' => 'www/mime',
'pdb' => 'chemical/x-pdb',
'xyz' => 'chemical/x-pdb',
'javascript' => 'application/javascript',
'form' => 'application/x-www-form-urlencoded',
'file' => 'multipart/form-data',
'xhtml' => array(
(int) 0 => 'application/xhtml+xml',
(int) 1 => 'application/xhtml',
(int) 2 => 'text/xhtml'
),
'xhtml-mobile' => 'application/vnd.wap.xhtml+xml',
'atom' => 'application/atom+xml',
'amf' => 'application/x-amf',
'wap' => array(
(int) 0 => 'text/vnd.wap.wml',
(int) 1 => 'text/vnd.wap.wmlscript',
(int) 2 => 'image/vnd.wap.wbmp'
),
'wml' => 'text/vnd.wap.wml',
'wmlscript' => 'text/vnd.wap.wmlscript',
'wbmp' => 'image/vnd.wap.wbmp',
'woff' => 'application/x-font-woff',
'webp' => 'image/webp',
'appcache' => 'text/cache-manifest',
'manifest' => 'text/cache-manifest',
'htc' => 'text/x-component',
'rdf' => 'application/xml',
'crx' => 'application/x-chrome-extension',
'oex' => 'application/x-opera-extension',
'xpi' => 'application/x-xpinstall',
'safariextz' => 'application/octet-stream',
'webapp' => 'application/x-web-app-manifest+json',
'vcf' => 'text/x-vcard',
'vtt' => 'text/vtt',
'mkv' => 'video/x-matroska',
'pkpass' => 'application/vnd.apple.pkpass'
)
[protected] _protocol => 'HTTP/1.1'
[protected] _status => (int) 200
[protected] _contentType => 'text/html'
[protected] _headers => array()
[protected] _body => null
[protected] _file => null
[protected] _fileRange => null
[protected] _charset => 'UTF-8'
[protected] _cacheDirectives => array()
[protected] _cookies => array()
}
(default) 21 queries took 17 ms
Nr Query Error Affected Num. rows Took (ms)
1 SELECT `Config`.`id`, `Config`.`ua`, `Config`.`meta_description`, `Config`.`modified` FROM `pequeno_novo`.`configs` AS `Config` WHERE 1 = 1 LIMIT 1 1 1 0
2 SELECT `CardapioTipo`.`id`, `CardapioTipo`.`nome`, `CardapioTipo`.`created`, `CardapioTipo`.`modified` FROM `pequeno_novo`.`cardapio_tipos` AS `CardapioTipo` WHERE 1 = 1 ORDER BY `CardapioTipo`.`nome` ASC 1 1 0
3 SELECT `Cardapio`.`id`, `Cardapio`.`ano`, `Cardapio`.`mes_id`, `Cardapio`.`semana_id`, `Cardapio`.`cardapio_tipo_id`, `Cardapio`.`habilitado`, `Cardapio`.`dia`, `Cardapio`.`created`, `Cardapio`.`modified` FROM `pequeno_novo`.`cardapios` AS `Cardapio` WHERE `Cardapio`.`cardapio_tipo_id` = (2) 1648 1648 3
4 SELECT `Mes`.`id`, `Mes`.`nome` FROM `pequeno_novo`.`meses` AS `Mes` WHERE 1 = 1 12 12 1
5 SELECT `Semana`.`id`, `Semana`.`nome` FROM `pequeno_novo`.`semanas` AS `Semana` WHERE 1 = 1 5 5 1
6 SELECT `CardapioTipo`.`id`, `CardapioTipo`.`nome` FROM `pequeno_novo`.`cardapio_tipos` AS `CardapioTipo` WHERE 1 = 1 1 1 0
7 SELECT `Periodo`.`id`, `Periodo`.`nome` FROM `pequeno_novo`.`periodos` AS `Periodo` WHERE 1 = 1 ORDER BY `Periodo`.`ordem` ASC 3 3 1
8 SELECT `Cardapio`.`mes_id`, `Cardapio`.`dia`, `Cardapio`.`cardapio_tipo_id`, `Cardapio`.`id` FROM `pequeno_novo`.`cardapios` AS `Cardapio` WHERE `Cardapio`.`cardapio_tipo_id` = 1 AND `Cardapio`.`ano` = 2020 AND `Cardapio`.`mes_id` = '04' ORDER BY `Cardapio`.`dia` ASC 22 22 1
9 SELECT `CardapioAlimento`.`alimentos`, `CardapioAlimento`.`periodo_id`, `CardapioAlimento`.`cardapio_id` FROM `pequeno_novo`.`cardapio_alimentos` AS `CardapioAlimento` WHERE `CardapioAlimento`.`cardapio_id` IN (1460, 1461, 1462, 1463, 1464, 1465, 1466, 1467, 1468, 1469, 1470, 1471, 1472, 1473, 1474, 1475, 1476, 1477, 1478, 1479, 1480, 1481) 8 8 5
10 SELECT `Periodo`.`id`, `Periodo`.`ordem` FROM `pequeno_novo`.`periodos` AS `Periodo` WHERE `Periodo`.`id` = 1 1 1 0
11 SELECT `Periodo`.`id`, `Periodo`.`ordem` FROM `pequeno_novo`.`periodos` AS `Periodo` WHERE `Periodo`.`id` = 2 1 1 0
12 SELECT `Periodo`.`id`, `Periodo`.`ordem` FROM `pequeno_novo`.`periodos` AS `Periodo` WHERE `Periodo`.`id` = 4 0 0 0
13 SELECT `Periodo`.`id`, `Periodo`.`ordem` FROM `pequeno_novo`.`periodos` AS `Periodo` WHERE `Periodo`.`id` = 3 1 1 0
14 SELECT `Periodo`.`id`, `Periodo`.`ordem` FROM `pequeno_novo`.`periodos` AS `Periodo` WHERE `Periodo`.`id` = 1 1 1 0
15 SELECT `Periodo`.`id`, `Periodo`.`ordem` FROM `pequeno_novo`.`periodos` AS `Periodo` WHERE `Periodo`.`id` = 2 1 1 0
16 SELECT `Periodo`.`id`, `Periodo`.`ordem` FROM `pequeno_novo`.`periodos` AS `Periodo` WHERE `Periodo`.`id` = 4 0 0 0
17 SELECT `Periodo`.`id`, `Periodo`.`ordem` FROM `pequeno_novo`.`periodos` AS `Periodo` WHERE `Periodo`.`id` = 3 1 1 0
18 SELECT `CardapioTipo`.`id`, `CardapioTipo`.`nome`, `CardapioTipo`.`created`, `CardapioTipo`.`modified` FROM `pequeno_novo`.`cardapio_tipos` AS `CardapioTipo` WHERE `CardapioTipo`.`id` = 1 LIMIT 1 0 0 2
19 SELECT `Config`.`id`, `Config`.`ua`, `Config`.`meta_description`, `Config`.`modified` FROM `pequeno_novo`.`configs` AS `Config` WHERE 1 = 1 LIMIT 1 1 1 0
20 SELECT `CardapioTipo`.`id`, `CardapioTipo`.`nome`, `CardapioTipo`.`created`, `CardapioTipo`.`modified` FROM `pequeno_novo`.`cardapio_tipos` AS `CardapioTipo` WHERE 1 = 1 ORDER BY `CardapioTipo`.`nome` ASC 1 1 0
21 SELECT `Cardapio`.`id`, `Cardapio`.`ano`, `Cardapio`.`mes_id`, `Cardapio`.`semana_id`, `Cardapio`.`cardapio_tipo_id`, `Cardapio`.`habilitado`, `Cardapio`.`dia`, `Cardapio`.`created`, `Cardapio`.`modified` FROM `pequeno_novo`.`cardapios` AS `Cardapio` WHERE `Cardapio`.`cardapio_tipo_id` = (2) 1648 1648 3