# |
Mar 12th 2018, 14:50 |
learningcake |
thank you guys for the help |
# |
Mar 12th 2018, 14:42 |
Neon1024 |
Here, https://irc.cakephp.org/logs/link/4124154#message4124164 |
# |
Mar 12th 2018, 14:42 |
raul338 |
you should use a client that keeps history :P |
# |
Mar 12th 2018, 14:42 |
learningcake |
ok. thank you. let me read up on the link and follow your example |
# |
Mar 12th 2018, 14:42 |
raul338 |
I said "you can also set contain into $paginate options (maybe it was $pagination)" |
# |
Mar 12th 2018, 14:41 |
learningcake |
@neon1023, no |
# |
Mar 12th 2018, 14:41 |
Neon1024 |
`$query = $this->Examples->find()->contain(['Foo', 'Bar'])->matching('Foo', function () { //Stuff }); $this->Paginator->paginate($query)` |
# |
Mar 12th 2018, 14:41 |
Neon1024 |
@learningcake, You can just pass a query into the Paginator. So just apply the matching() to your query and pass it in |
# |
Mar 12th 2018, 14:40 |
neon1024 |
I did! Did the bot relay the message? |
# |
Mar 12th 2018, 14:40 |
learningcake |
hello @raul338, sorry my internet connection broke. trying to get your comment from history. I don't know if any other person responded. |
# |
Mar 12th 2018, 14:40 |
neon1024 |
https://book.cakephp.org/3.0/en/controllers/components/pagination.html#using-the-paginator-directly |
# |
Mar 12th 2018, 14:38 |
raul338 |
(maybe it was $pagination) |
# |
Mar 12th 2018, 14:38 |
raul338 |
you can also set contain into $paginate options |
# |
Mar 12th 2018, 14:38 |
neon1024 |
`$query = $this->Examples->find()->contain(['Foo', 'Bar'])->matching('Foo', function () { //Stuff }); $this->Paginator->paginate($query)` |
# |
Mar 12th 2018, 14:38 |
neon1024 |
learningcake, You can just pass a query into the Paginator. So just apply the matching() to your query and pass it in |
# |
Mar 12th 2018, 14:30 |
joddit |
Hrm... Whatcha mean? |
# |
Mar 12th 2018, 14:30 |
learningcake |
been searching internet but nothing yet |
# |
Mar 12th 2018, 14:29 |
learningcake |
I need direction on how to create a pagination that will contain the Matching record from an Association |
# |
Mar 12th 2018, 14:28 |
learningcake |
hello, guys! been a while |
# |
Mar 12th 2018, 14:28 |
raul338 |
Thanks |
# |
Mar 12th 2018, 14:27 |
raul338 |
then i should split into plugins |
# |
Mar 12th 2018, 14:27 |
raul338 |
Good |
# |
Mar 12th 2018, 14:26 |
neon1024 |
You can access other plugins as well should you need to, as long as they’re loaded |
# |
Mar 12th 2018, 14:26 |
neon1024 |
Yes, you can access the core inside plugins |
# |
Mar 12th 2018, 14:26 |
raul338 |
I will try it |
# |
Mar 12th 2018, 14:26 |
raul338 |
That migth work |
# |
Mar 12th 2018, 14:26 |
neon1024 |
`'className' => \Raul\Examples\ExamplesTable::class` |
# |
Mar 12th 2018, 14:26 |
raul338 |
I thought about using plugins, but I do not konw yet if I can use App model / helpers inside Plugin Models / templates |
# |
Mar 12th 2018, 14:25 |
neon1024 |
I would use a class constant in the ‘className’ option of the association |
# |
Mar 12th 2018, 14:25 |
raul338 |
Sure, Any clue how should I defined belongsTo / hasMany ? |
# |
Mar 12th 2018, 14:23 |
neon1024 |
I’ve never tried loading objects from outside convention |
# |
Mar 12th 2018, 14:22 |
neon1024 |
You might also run into some issue with the TableRegistry, and need to build your own TableLocator class |
# |
Mar 12th 2018, 14:22 |
neon1024 |
Sure there is, you can do whatever you want. However, be sure to use the correct namespaces, and declare all the correct class settings in your Tables and Entities |
# |
Mar 12th 2018, 14:21 |
raul338 |
All links I found on google refer to cake 2 |
# |
Mar 12th 2018, 14:21 |
raul338 |
Is there any way to organize table/entities in subfolders like controllers in prefixes? |
# |
Mar 12th 2018, 14:20 |
raul338 |
Hello |
# |
Mar 12th 2018, 14:18 |
dorxy |
ok, will do! |
# |
Mar 12th 2018, 14:11 |
lorenzo |
@dorxy open a ticket about it, please |
# |
Mar 12th 2018, 13:30 |
dorxy |
the provided documentation ```loadEntities Defaults to false. Set to true to enable loading of <!ENTITY definitions. This is disabled by default for security reasons.``` is also not completely correct |
# |
Mar 12th 2018, 13:17 |
slackebot |
checking for DOCTYPE statements myself before handing it off to the parent. Perhaps there should be an extra (default) option not allowing DOCTYPE statements in XML parsed in the body of a request? If wanted I can provide a test case to reproduce the behavior. |
# |
Mar 12th 2018, 13:17 |
dorxy |
hi contributors! our application was PEN-tested and they made use of an XXE attack, but it was not with external entities but internal entities. I have looked at the XML::_loadXML function and while libxml_disable_entity_loader is properly set, the internal references are still expanded, making any request run out of memory real fast for large nested internal references. I'm resolving it now by extending the RequestHandler::convertXML and |