# |
Sep 30th 2016, 08:19 |
dereuromark |
kingloui: for you I would recommend using the same plugin, takes all the overhead away from the controller code. |
# |
Sep 30th 2016, 08:18 |
Neon1024 |
sandeeep: No, youâ??d normalize that data out into a related table |
# |
Sep 30th 2016, 08:18 |
Neon1024 |
As your controller will extend it |
# |
Sep 30th 2016, 08:18 |
sandeeep |
In my system normal user have to fill lot of information which is not required in admin case, so do i have to use separate table to store these data |
# |
Sep 30th 2016, 08:18 |
Neon1024 |
Why are you not using the isAuthorized() method in the AppController, which would seem to me, the easiest way to achieve this |
# |
Sep 30th 2016, 08:16 |
kingloui |
I want to check if a url is authorized for the user |
# |
Sep 30th 2016, 08:16 |
kingloui |
can someone give me a hint why $this->_registry->getController()->Auth->isAuthorized(null, $request); gets authorized by the current controller and not by the one requested by passed argument $request? |
# |
Sep 30th 2016, 08:15 |
dereuromark |
If you use sth like https://github.com/dereuromark/cakephp-tinyauth it is a matter of 3 minutes :slightly_smiling_face: |
# |
Sep 30th 2016, 08:14 |
dereuromark |
sandeeep: yeah, always use a single entry point ( login) and a user table with role_id s |
# |
Sep 30th 2016, 08:14 |
sandeeep |
Ok than how i can limit normal user to access admin interface |
# |
Sep 30th 2016, 08:14 |
Neon1024 |
Creating two separate tables will make your development significantly harder, for no benefit |
# |
Sep 30th 2016, 08:14 |
dereuromark |
birdy247 dev of it seems to be pretty stale these days |
# |
Sep 30th 2016, 08:13 |
Neon1024 |
sandeeep: I would recommend using a single table for all your users and adding a role to each one to determine if theyâ??re an admin or not |
# |
Sep 30th 2016, 08:13 |
sandeeep |
Hi. I am new with cakePHP 3.x. Is it possible to use two different login table for admin routine and normal |
# |
Sep 30th 2016, 08:12 |
Neon1024 |
Morning all |
# |
Sep 30th 2016, 08:06 |
charolastra |
changing ->find('all') to 'list' in a baked project results in a "Unable to find table class for current entity" exception. it mentions an related n:m table at the bottom. any hints on what's going on? |
# |
Sep 30th 2016, 08:02 |
birdy247 |
@dereuromark I do :) |
# |
Sep 30th 2016, 07:27 |
kingloui |
I use ControllerAuthorize |
# |
Sep 30th 2016, 07:09 |
kingloui |
I debugged the authcomponents isAuthorized method, and double checked that the authorizer is not the controller where the request was made for |
# |
Sep 30th 2016, 06:55 |
kingloui |
I think $this->_registry->getController()->Auth->isAuthorized(null, $request); does something sketchy |
# |
Sep 30th 2016, 06:55 |
kingloui |
Hey guys I have a problem with the auth component: I want to check if the logged user can access a certain url, I borrowed this function from CakeDC/Users http://pastebin.com/i0yFMpGJ Problem is, it always returns true because it checks for the controller/actions where Iâ??m currently in and not for the one I passed as argument. I check that the request created has the correct params, nothing unordinary to find there. |
# |
Sep 30th 2016, 05:59 |
abhilashlohar |
but when i add first entry with no parent id , it is not saving |
# |
Sep 30th 2016, 05:59 |
abhilashlohar |
i want to use tree behavior |
# |
Sep 30th 2016, 05:57 |
abhilashlohar |
hello there |
# |
Sep 30th 2016, 05:44 |
michaelferrell |
I essentially can't use the ORM to query the database, just freezes completely. |
# |
Sep 30th 2016, 05:44 |
michaelferrell |
Hello! So this code works fine `$articles = TableRegistry::get('Articles');` If I print_r that variable I get an instance of the articles table just fine. However, the second I add in the code below, the page just loads forever and never does anything. Thoughts on why this might happen? ``` $data = $articles->find(); $data->select(['title'])->limit(10); ``` |
# |
Sep 30th 2016, 05:39 |
acosonic |
Hi, is there something like this for cakephp? http://mleibman.github.io/SlickGrid/examples/example3-editing.html |
# |
Sep 30th 2016, 04:13 |
prepender |
nevermind found it ->join |
# |
Sep 30th 2016, 03:49 |
prepender |
like 2 different users and I want to get the results from a table where all columns are the same except user_id |
# |
Sep 30th 2016, 03:48 |
prepender |
How do I build a query in cakephp 3 so that I can get all records from a table that have all the same column values except user_id, created and modified? |
# |
Sep 30th 2016, 01:06 |
moose517 |
any of you use the cake based CMS's at all? |
# |
Sep 29th 2016, 23:35 |
dereuromark |
would be cool if it was actively maintained, seems to be quite handy combining vagrant and cake this way |
# |
Sep 29th 2016, 23:27 |
dereuromark |
yeah not too many |
# |
Sep 29th 2016, 23:05 |
ceeram |
@dereuromark https://packagist.org/packages/alt3/cakebox-console/stats |
# |
Sep 29th 2016, 22:43 |
dereuromark |
do people actively use cakebox these days? |
# |
Sep 29th 2016, 22:17 |
ndm |
np |
# |
Sep 29th 2016, 22:17 |
Schalla |
Thanks! |
# |
Sep 29th 2016, 22:17 |
Schalla |
Yes, in that case I really need all. |
# |
Sep 29th 2016, 22:17 |
Schalla |
True. Glad I asked, you saved me a lot of time. :) |
# |
Sep 29th 2016, 22:17 |
ndm |
if you really need all of them |
# |
Sep 29th 2016, 22:17 |
ndm |
correct... but you can easily grab them via `$Table->schema()->columns()` |