# |
Mar 14th 2018, 09:45 |
Jimesh |
I am using Cakephp 3.0.12 |
# |
Mar 14th 2018, 09:44 |
Jimesh |
Could anyone help for the same? |
# |
Mar 14th 2018, 09:44 |
Jimesh |
But, didn't get a success |
# |
Mar 14th 2018, 09:43 |
Jimesh |
I need to add pagination using connection |
# |
Mar 14th 2018, 09:43 |
Jimesh |
I am using postgres using connection |
# |
Mar 14th 2018, 09:28 |
slackebot |
->find() ->where( [ 'Applicants.id' => '00000000-0000-0000-0000-100000000001', ] ) ->contain( [ 'DegreesOfTheApplicant' => ['FieldsOfStudies'], ]); ``` gets me the results like i need them! |
# |
Mar 14th 2018, 09:28 |
willem |
@neon1024 Just to let you know, thanks first of all for the support, i managed to get it working by adding a new assocciation to the ApplicantsTable ``` $this->hasMany('DegreesOfTheApplicant', [ 'bindingKey' => 'id', 'foreignKey' => 'applicant_id', 'className' => 'ApplicantsDegrees', ]); ``` No calling the find like this: ``` $test = $this->ApplicantsTable |
# |
Mar 14th 2018, 09:25 |
neon1024 |
Morning all |
# |
Mar 14th 2018, 09:19 |
turkles |
Can anyone point me in the direction of some reading for the built in cake css stuff? I just want to drop a paragraph to just above the footer.. but have no idea where to start |
# |
Mar 14th 2018, 09:18 |
turkles |
hello an hour later |
# |
Mar 14th 2018, 09:11 |
adrienlambertwac |
hi Andrew :slightly_smiling_face: |
# |
Mar 14th 2018, 08:57 |
dorxy |
hi! :) |
# |
Mar 14th 2018, 08:36 |
megan |
Hi Andrew_ :slightly_smiling_face: welcome! |
# |
Mar 14th 2018, 08:19 |
ono-t |
hello ^^/ |
# |
Mar 14th 2018, 08:13 |
Andrew_ |
anybody here? |
# |
Mar 14th 2018, 08:12 |
Andrew_ |
I'm new here |
# |
Mar 14th 2018, 08:12 |
Andrew_ |
hello |
# |
Mar 14th 2018, 08:09 |
birdy247 |
Morning |
# |
Mar 13th 2018, 22:35 |
xinobi |
setConfig come from a trait :) |
# |
Mar 13th 2018, 22:34 |
xinobi |
I think I got it BaseAuthenticate there's a default config but can't see any setMethod so this is perhaps a constructor param anyway ok I need to read this class thank you dereuromark |
# |
Mar 13th 2018, 22:32 |
xinobi |
I don't see where it goes the model name in FormAuthentication |
# |
Mar 13th 2018, 22:27 |
xinobi |
exactly so after that I need to override the authenticate method, I'm not just sure where goes the userModel key after all because now I need at least two of them |
# |
Mar 13th 2018, 22:25 |
dereuromark |
jep, that should work. |
# |
Mar 13th 2018, 22:24 |
xinobi |
This is my old config https://pastebin.com/1FmKBhfz I think I need to change the 'authenticate' => [ 'Form' ... to 'Custom' |
# |
Mar 13th 2018, 22:18 |
dereuromark |
and how do you load it? |
# |
Mar 13th 2018, 22:18 |
xinobi |
namespace App\Auth; |
# |
Mar 13th 2018, 22:18 |
dereuromark |
the last part is already the class name |
# |
Mar 13th 2018, 22:18 |
dereuromark |
thats not the namespace |
# |
Mar 13th 2018, 22:18 |
xinobi |
namespace App\Auth\CustomAuthenticate; |
# |
Mar 13th 2018, 22:17 |
dereuromark |
whats your namespace of it? |
# |
Mar 13th 2018, 22:17 |
xinobi |
it should be auto loaded... |
# |
Mar 13th 2018, 22:17 |
xinobi |
I've and it didn't worked Authentication adapter "Custom" was not found. |
# |
Mar 13th 2018, 22:16 |
dereuromark |
try it |
# |
Mar 13th 2018, 22:14 |
xinobi |
dereuromark so I need a folder named Auth and class NameAuthenticate with proper namespace adjustment ? |
# |
Mar 13th 2018, 22:09 |
dereuromark |
same structure etc, even if on app level |
# |
Mar 13th 2018, 22:08 |
dereuromark |
same as all the other plugins etc :slightly_smiling_face: see awesome list |
# |
Mar 13th 2018, 22:06 |
xinobi |
where should I place to place a custom authentication adapter? |
# |
Mar 13th 2018, 20:07 |
cnizzardini |
@madrid998 this isn't a cake thing, this is a general software engineering question you are asking. A simple static file with a 1 or 0, a database table with a is_first_time boolean column or an install page would all solve your problem a long with countless other ways. |
# |
Mar 13th 2018, 20:04 |
cnizzardini |
@jojomartius maybe leftJoinWith https://book.cakephp.org/3.0/en/orm/retrieving-data-and-resultsets.html |
# |
Mar 13th 2018, 20:03 |
cnizzardini |
@jojomartius CakePHP can do most everything you want. You can force contains to a LEFT JOIN if you'd like. You can even do custom joins. I need to know your schema and query before I could begin to help. See if you can get the ORM to do what you want. |
# |
Mar 13th 2018, 19:59 |
madrid988 |
I need to populate the database table the first time the app is used. |