Log message #4020061

# At Username Text
# Apr 25th 2017, 19:56 jeremyharris perhaps you can generate them manually via generateUrl (which is what the numbers method uses)
# Apr 25th 2017, 19:54 doug__ I tried that but it appends all the urls together...
# Apr 25th 2017, 19:53 jeremyharris doug__ you could change the templates to return just {{url}}
# Apr 25th 2017, 19:53 doug__ I need the ->numbers() in json format in the end...
# Apr 25th 2017, 19:52 doug__ What is the best way to get an array of urls instead of a string using $this->Paginator->numbers()?
# Apr 25th 2017, 19:22 doug__ thaks admad
# Apr 25th 2017, 19:17 jeremyharris and they have separate domains?
# Apr 25th 2017, 19:17 jeremyharris I thought it was a completely separate app, perhaps you can tell me exactly how it is set up. e.g., 2 separate cakephp apps, 1 DB
# Apr 25th 2017, 19:14 spylinux Yes, user login with other table, but i have in AppController on initialize() method, a loadComponent Auth, that redirect me to 1st login screen
# Apr 25th 2017, 19:13 jeremyharris by auth you mean user login? that’s okay, just configure the auth component to use the members table instead (on the second app)
# Apr 25th 2017, 19:12 spylinux @jeremyharris but i can't use the same auth from the 1st application, the 2nd have your member table to use for login
# Apr 25th 2017, 19:08 jeremyharris if the 2nd app is read only, you can connect to the DB with a user that only has SELECT permissions
# Apr 25th 2017, 19:07 spylinux but the 2nd app have full data tables, with other login pattern, other layout, other users, needs authenticate again
# Apr 25th 2017, 19:06 spylinux the 1st app, input some data, and create on the fly, some tables of csv and txt import. The 2nd app, "read" and filter this data
# Apr 25th 2017, 19:05 jeremyharris if they are just sharing the same DB then there is probably no need to share any code at all (or globally install anything). just have both of them connect to the DB
# Apr 25th 2017, 19:05 spylinux sharing only the database, only a few tables btw
# Apr 25th 2017, 19:05 jeremyharris if the apps are sharing some logic, perhaps a plugin would be best?
# Apr 25th 2017, 19:04 jeremyharris no need to apologize!
# Apr 25th 2017, 19:04 spylinux sorry my bad english, i'm brazilian cakephp user.
# Apr 25th 2017, 19:04 spylinux thanks @jeremyharris. Its an app from the same client, but they need a parallel module that use the same database, but not same auth, classes, etc
# Apr 25th 2017, 19:02 jeremyharris spylinux you could globally install cakephp with composer and include the global autoloader. not sure there’s a benefit to that over installing it regularly, other than saving some disk space
# Apr 25th 2017, 19:01 spylinux Its possible to use one install of CakePHP 3, to multiple apps, like in Cake 2, when its just make a copy of "app" folder and use the same core?
# Apr 25th 2017, 18:59 phishy How does one do a query_string search with the Elasticsearch plugin? Not seeing it pop out at me in the code or tests.
# Apr 25th 2017, 18:41 chris-andre Thought I'd share my first cakephp plugin (CsvImport): https://github.com/chris-andre/cakephp-csvimport . I guess there are a lot of things to point out in my code, so any feedback is welcome.
# Apr 25th 2017, 18:39 admad doug__: because you are not using 3.4. Use ->templates ()
# Apr 25th 2017, 18:25 doug__ @ypnos, I get this error Method Cake\View\Helper\PaginatorHelper::setTemplates does not exist
# Apr 25th 2017, 18:15 doug__ ok
# Apr 25th 2017, 18:13 ypnos so, in fact, it is there
# Apr 25th 2017, 18:12 ypnos doug__: because it is part of StringTemplateTrait which is used by PaginatorHelper
# Apr 25th 2017, 18:07 doug__ Does anyone know why the documentation says to use '$this->Paginator->setTemplates' but that function does not exist?
# Apr 25th 2017, 17:45 ypnos for all dirty fields I think you need getDirty() which is available since 3.4.3
# Apr 25th 2017, 17:45 adityapansari Actually I want all dirty fields. I am using cakephp 3.3
# Apr 25th 2017, 17:44 ypnos in cake3 you call dirty with a single argument and it returns true or false
# Apr 25th 2017, 17:43 adityapansari ?
# Apr 25th 2017, 17:43 adityapansari Any alernative
# Apr 25th 2017, 17:43 adityapansari How can I call the getDirty() in cakephp 3.3 ?
# Apr 25th 2017, 17:36 ypnos in newest cakephp, isDirty() to check, setDirty() to set
# Apr 25th 2017, 17:34 adityapansari Hey, alternative for dirty() function ? I also want to access the dirty value after saving the entity.
# Apr 25th 2017, 17:32 chris-andre I forgot about saveMany(), so I will probably use that method.
# Apr 25th 2017, 17:31 chris-andre Quite simple change. I tested something similar, if `save()` failed, but it didn't give me the result I expected. I probably did something wrong.
# Apr 25th 2017, 17:29 chris-andre Okay. Thanks for looking at it ;) I'll read your comment on my gist ;)