Groups
Groups
Sign in
Groups
Groups
CakePHP Tuga
Conversations
About
Send feedback
Help
->order não funciona
10 views
Skip to first unread message
Flavio Antonio
unread,
Oct 8, 2019, 4:34:10 AM
10/8/19
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to CakePHP Tuga
Olá, à todos(as).
Estou tentando ordernar os resultados utilizando ->order
Porém não consigo.
$menutopo = $this->Paginas->find('all')
->where(['pagina_id is null'])
->where(['mostrarnotopo =' => 1])
->where(['estado_id =' => '7'])
->order(['ordem =' => 'ASC']);
Alguém consegue me da uma ajuda de como devo fazer?
Obrigado!
Flavio Antonio
unread,
Oct 8, 2019, 4:37:34 AM
10/8/19
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to CakePHP Tuga
->order(['ordem =' => 'ASC']);
Desculpem, encontrei o erro
->order(['ordem' => 'ASC']);
Reply all
Reply to author
Forward
0 new messages