# |
Jul 11th 2017, 03:55 |
mallick |
i have make a Shell script in cakephp and it's run very nicely in treminal |
# |
Jul 11th 2017, 03:54 |
mallick |
i need a help regarding cron job in cakephp |
# |
Jul 11th 2017, 03:54 |
mallick |
hello guys |
# |
Jul 10th 2017, 23:23 |
gene_ |
Never mind, I got it |
# |
Jul 10th 2017, 23:08 |
gene_ |
return Cache::remember( "Users.{$userId}.Crm.distributor", function () { return $this->get($userId, ['contain' => ['Distributors']]); } ); |
# |
Jul 10th 2017, 23:08 |
gene_ |
Hi guys, any idea why this won't work? |
# |
Jul 10th 2017, 21:15 |
durbster |
Will do. Thanks again. |
# |
Jul 10th 2017, 21:15 |
admad |
@durbster you are not the first to have this problem, so comment on that issue |
# |
Jul 10th 2017, 21:14 |
durbster |
Yeah I will. I've been using Cake for about 4 years so I wish I'd done this ages ago! |
# |
Jul 10th 2017, 21:14 |
savant |
so no need to feel anxious or worried :slightly_smiling_face: |
# |
Jul 10th 2017, 21:14 |
savant |
we’ll tell you if you have a dumb question :slightly_smiling_face: |
# |
Jul 10th 2017, 21:14 |
savant |
we prefer cakephp users not sit there frustrated |
# |
Jul 10th 2017, 21:14 |
savant |
feel free to jump in here and ask questions sooner rather than later |
# |
Jul 10th 2017, 21:14 |
savant |
no problem |
# |
Jul 10th 2017, 21:13 |
durbster |
Thank you very much G Man and @savant for your help. This has been bugging me for days. |
# |
Jul 10th 2017, 21:13 |
admad |
@durbster https://github.com/CakeDC/users/issues/563 |
# |
Jul 10th 2017, 21:12 |
durbster |
I will though, about time I contributed something really. |
# |
Jul 10th 2017, 21:11 |
durbster |
Whoa steady on, this is my first time stepping into the open source world. I can't go around causing trouble like that :) |
# |
Jul 10th 2017, 21:09 |
admad |
i would suggest opening an issue |
# |
Jul 10th 2017, 21:09 |
admad |
yes, if the plugin docs mention using "/users/register" then they should either add a route for it or update the docs. |
# |
Jul 10th 2017, 21:08 |
durbster |
So this is actually the correct behaviour and we should add the additional routes manually? |
# |
Jul 10th 2017, 21:07 |
admad |
https://github.com/CakeDC/users/blob/master/config/routes.php doesn't have any route setup for /users/register |
# |
Jul 10th 2017, 21:07 |
durbster |
@savant I got a bunch of errors from that debug |
# |
Jul 10th 2017, 21:06 |
durbster |
@admad Aha! That works. |
# |
Jul 10th 2017, 21:05 |
admad |
@durbster try accessing /users/users/register |
# |
Jul 10th 2017, 21:03 |
savant |
and load the page? |
# |
Jul 10th 2017, 21:03 |
savant |
debug(Plugin::loaded(‘CakeDC/Users’)) |
# |
Jul 10th 2017, 21:03 |
savant |
can you do |
# |
Jul 10th 2017, 21:03 |
savant |
after you load the plugin |
# |
Jul 10th 2017, 21:03 |
savant |
okay so its installed |
# |
Jul 10th 2017, 21:02 |
durbster |
just has two folders: >>>auth users |
# |
Jul 10th 2017, 21:02 |
savant |
ls -lah vendor/cakedc |
# |
Jul 10th 2017, 21:01 |
durbster |
@savant using composer e.g. composer require cakedc/users |
# |
Jul 10th 2017, 21:01 |
durbster |
@backstageel if it helps, I just tried that on php 7.0.15 and it returns 9.3 |
# |
Jul 10th 2017, 21:01 |
savant |
how did you install the plugin |
# |
Jul 10th 2017, 21:01 |
savant |
oh wait |
# |
Jul 10th 2017, 21:00 |
savant |
@durbster strange, that seems like it should work |
# |
Jul 10th 2017, 20:58 |
savant |
we cant modify a function exported by the standard library |
# |
Jul 10th 2017, 20:58 |
savant |
@backstageel well thats certainly not a cakephp issue |
# |
Jul 10th 2017, 20:57 |
backstageel |
@savant maybe... i will research |
# |
Jul 10th 2017, 20:56 |
durbster |
@savant https://gist.github.com/anonymous/18fdbe991178d3bfae5e8a57f2fe7d47 |