# |
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 |
# |
Apr 18th 2017, 22:03 |
ceeram |
use something like bootstrap progress bar |
# |
Apr 18th 2017, 22:03 |
ceeram |
this is a shell helper, cant use it in your web app |
# |
Apr 18th 2017, 22:02 |
ceeram |
i dont know how you would upload using a shell though |
# |
Apr 18th 2017, 22:01 |
ceeram |
doesnt that show you how to use it? |
# |
Apr 18th 2017, 22:01 |
ceeram |
https://book.cakephp.org/3.0/en/console-and-shells/helpers.html#progress-helper |
# |
Apr 18th 2017, 22:00 |
jay12 |
I need a sample on how to use it, especially for uploads |
# |
Apr 18th 2017, 21:59 |
ceeram |
i havent used it, but what is the problem with it? |
# |
Apr 18th 2017, 21:52 |
jay12 |
i need help on that |
# |
Apr 18th 2017, 21:52 |
jay12 |
Anyone know how to use cakephp 3.x progressbar helper? |
# |
Apr 18th 2017, 21:52 |
jay12 |
hi |
# |
Apr 18th 2017, 21:10 |
sjundee |
Problem solved. This was the answer: http://stackoverflow.com/questions/36730909/cakephp-3-post-method-403-forbidden. I just can't get the reason. |
# |
Apr 18th 2017, 20:35 |
sjundee |
Okay. So, on my virtual box, when editing a record in a form works fine. But when submitting a edit-form on my production server, I get 403 Forbidden error when reading the network. Any ideas? |
# |
Apr 18th 2017, 20:19 |
philipgrey |
Would I use the conditions param in the rels definition? |
# |
Apr 18th 2017, 20:19 |
philipgrey |
I want to filter it by the company_id |
# |
Apr 18th 2017, 20:19 |
philipgrey |
Right now, both rels are going to return all data from Table2 |
# |
Apr 18th 2017, 20:18 |
philipgrey |
```$this->belongsToMany('Company1Table2',[ 'className' => 'Table2', 'foreignKey' => 'table_1_id', 'targetForeignKey'=>'table_2_id', ]); $this->belongsToMany('Company2Table2',[ 'className' => 'Company1Table2', 'foreignKey' => 'table_1_id', 'targetForeignKey'=>'table_2_id' ]);``` |
# |
Apr 18th 2017, 20:18 |
philipgrey |
sup guys, hope all is well. so let’s say i have table 1 that has a belongsToMany with table 2. table 2 has a field called company_id. i want to make a rel on table 1 to get a set of records associated with company_id 1 and company_id 2, so i’m defining multiple rels like so… |
# |
Apr 18th 2017, 20:13 |
sjundee |
I have granted all privileges to db user to see if that was the problem, which it wasnt |
# |
Apr 18th 2017, 20:11 |
sjundee |
I had a similar problem on the virtual box before I added `$this->Auth->allow([*])` in AppController. |