# |
Jul 11th 2017, 05:16 |
pidlo |
hello all i would like create validation (for unique field) rules in cakephp3 but i dont understand if i set in validationDefault notEmpty to name and in buildRules method unique validation for persnum, if then validate i see first error for name and then if i fill it then cake give me error for persnum field.. |
# |
Jul 11th 2017, 04:59 |
tariquesani |
/home/k12dev/public_html/bin/cake then/path/of/your/shell 5 |
# |
Jul 11th 2017, 04:28 |
mallick |
complete path mean "public_html/v6" or /home/k12onlin/public_html/v6 |
# |
Jul 11th 2017, 04:16 |
tariquesani |
Ummm... instead of cd try giving the complete path for your txp_payment shell and see what happens |
# |
Jul 11th 2017, 04:09 |
mallick |
i have a methode with name txp_payment and argument is 5 |
# |
Jul 11th 2017, 04:08 |
mallick |
cd /home/k12dev/public_html/ andand bin/cake txp_payment 5 |
# |
Jul 11th 2017, 04:06 |
slackebot |
server [app] console, create_database, test, txp_payment To run an app or core command, type `cake shell_name [args]` To run a plugin command, type `cake Plugin.shell_name [args]` To get help on a specific command, type `cake shell_name --help` Content-type: text/html; charset=UTF-8 |
# |
Jul 11th 2017, 04:06 |
mallick |
Welcome to CakePHP v3.2.12 Console --------------------------------------------------------------- App : src Path: /home/k12dev/public_html/src/ PHP : 5.6.30 --------------------------------------------------------------- Current Paths: * app: src * root: /home/k12dev/public_html * core: /home/k12dev/public_html/vendor/cakephp/cakephp Available Shells: [DebugKit] benchmark, whitespace [Migrations] migrations [CORE] i18n, orm_cache, plug |
# |
Jul 11th 2017, 04:06 |
mallick |
@tariquesani thanks for reply i am sending you wait please |
# |
Jul 11th 2017, 04:05 |
tariquesani |
@mallick Typically you get an email from cpanel if the cron job fails with the error, What is the error? |
# |
Jul 11th 2017, 03:56 |
mallick |
anyone can tell me the path of cron job in cpanel |
# |
Jul 11th 2017, 03:56 |
mallick |
it's not working |
# |
Jul 11th 2017, 03:55 |
mallick |
but when i set it in cpanel cron job |
# |
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 |