Closed ribafs closed 5 years ago
Sorry, I don't see this error. https://github.com/davidyell/CakePHP-NiceAdminBakeScripts/blob/master/src/Template/Bake/Element/Controller/index.ctp#L14-L16
Can you show the generated markup?
Ok then. Sorry.
Em qua, 29 de mai de 2019 às 06:16, David Yell notifications@github.com escreveu:
Sorry, I don't see this error.
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/davidyell/CakePHP-NiceAdminBakeScripts/issues/14?email_source=notifications&email_token=AAGQZIBVZPRG73MOFWZVHGLPXZCWLA5CNFSM4HPQFQ52YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODWOWSRA#issuecomment-496855364, or mute the thread https://github.com/notifications/unsubscribe-auth/AAGQZIAUQ3UTCYHTYQWBASDPXZCWLANCNFSM4HPQFQ5Q .
Ribamar FS - http://ribafs.org
Okay, thanks
In src/Template/Bake/Element/Controller/index.ctp
Correct is: $this->set('<%= $pluralName %>', $this->paginate($query, [ 'order' => [$this-><%= $currentModelName %>->aliasField('modified') => 'desc'] ])); Your code are withiut ]. Thank you.