# |
Apr 19th 2017, 06:46 |
metoyoko |
thanks a lot @sjundee |
# |
Apr 19th 2017, 06:45 |
metoyoko |
Cakephp 3.4 How to insert to db with associations like: insert to table#1 table#2 with table#1 id and table#3 with table#2 id on single submission |
# |
Apr 19th 2017, 06:45 |
sjundee |
Examples from @dereuromark sandbox: https://github.com/dereuromark/cakephp-sandbox/blob/3.0/plugins/Sandbox/src/Controller/AjaxExamplesController.php |
# |
Apr 19th 2017, 06:44 |
metoyoko |
ok thanks |
# |
Apr 19th 2017, 06:43 |
sjundee |
If so, ajax. Check out cakephp-ajax |
# |
Apr 19th 2017, 06:43 |
metoyoko |
yes |
# |
Apr 19th 2017, 06:42 |
sjundee |
Depends what want. But I guess you want to query db based on a selection, then populate another selected with the result? |
# |
Apr 19th 2017, 06:41 |
metoyoko |
easiest way? |
# |
Apr 19th 2017, 06:41 |
sjundee |
Ajax? |
# |
Apr 19th 2017, 06:39 |
metoyoko |
Cakephp 3.4 How to populate selection #2 based on selection #1 dynamically inside form |
# |
Apr 19th 2017, 06:37 |
metoyoko |
Hi Good day |
# |
Apr 19th 2017, 04:16 |
voycey |
nvm got it |
# |
Apr 19th 2017, 04:15 |
voycey |
https://gist.github.com/voycey/dd8859febea0c5dc47cacdc9cce761cb |
# |
Apr 19th 2017, 04:15 |
voycey |
Anyone got any idea what this error represents? |
# |
Apr 19th 2017, 03:36 |
rrueco |
----> resolved |
# |
Apr 19th 2017, 03:32 |
rrueco |
how to remove the time from datetime? not general. just for one field |
# |
Apr 19th 2017, 03:04 |
davinci |
ok, thanks - will look into |
# |
Apr 19th 2017, 03:04 |
voycey |
I would probably say an admin prefix and then granular roles would be a good mix |
# |
Apr 19th 2017, 03:04 |
voycey |
the other way becomes painful for managing permissions |
# |
Apr 19th 2017, 03:04 |
voycey |
I like the separation of code with prefixes but you need to define the roles in hard code |
# |
Apr 19th 2017, 03:03 |
voycey |
Ive done both, both have positives and negatives |
# |
Apr 19th 2017, 03:03 |
voycey |
The only other way is an ACL type function that has granular permissions per controller action |
# |
Apr 19th 2017, 03:03 |
davinci |
or cleanly |
# |
Apr 19th 2017, 03:03 |
davinci |
But not well. |
# |
Apr 19th 2017, 03:02 |
voycey |
This way will do that |
# |
Apr 19th 2017, 03:02 |
davinci |
@voycey I don't think that's a good solution. Have to imagine there is a better way. It needs to be database manageable. For example add a new role, and give it's users access to a specific set of modules |
# |
Apr 19th 2017, 03:02 |
voycey |
then extend that controller under admin/controllers and under marketing/controllers etc |
# |
Apr 19th 2017, 03:02 |
voycey |
have a parent controller under controllers |
# |
Apr 19th 2017, 03:01 |
voycey |
I think its pretty messy but its the cake way |
# |
Apr 19th 2017, 03:01 |
voycey |
You use prefixes |
# |
Apr 19th 2017, 03:01 |
davinci |
Trying to wrap my head around best practice for building a cakephp web application in a modular format so that different tiers of users can have access to different functionality. Is there a standard practice for this kind of thing? A good tutorial around? Or any initial thoughts on a good way to handle? |
# |
Apr 19th 2017, 03:00 |
voycey |
I am doing it with the psyshell |
# |
Apr 19th 2017, 02:59 |
davinci |
@voycey what do you mean "external tool"? |
# |
Apr 19th 2017, 02:20 |
voycey |
Is there a way to generate a password with bcrypt using an external tool and the security salt? |
# |
Apr 19th 2017, 00:01 |
slackebot5 |
direction? |
# |
Apr 19th 2017, 00:01 |
thomasnucleus |
I've got the soap plugin set up, and when a person clicks on a button, this triggers a soap response in another method in the same controller. I'm wondering though, how would I add the response data to the current view and not have a redirect or render occur? I've tried setting autoRender to false, but this just gives me a blank page. I've tried other things but I will spare everyone a list of my attempts. Could someone lead me in the |
# |
Apr 18th 2017, 23:59 |
chatter29 |
to accept Islam say that i bear witness that there is no deity worthy of worship except Allah and Muhammad peace be upon him is his slave and messenger |
# |
Apr 18th 2017, 23:59 |
chatter29 |
sun is not doing allah is doing |
# |
Apr 18th 2017, 23:58 |
chatter29 |
allah is doing |
# |
Apr 18th 2017, 23:58 |
chatter29 |
hey guys |
# |
Apr 18th 2017, 22:06 |
jay12 |
Thanks, i will try that one out |