Log message #4115792

# At Username Text
# Feb 9th 2018, 04:50 slackebot authorized)
# Feb 9th 2018, 04:50 kevin I have an account section where people can add/view/edit their own Widgets. no one else should be able to view their Widgets. The controller is used by multiple (every) user, so for the isAuthorized, I put “if they have a valid session ID, let them view the page”, but for the Widget’s list, I am adding specific logic to say “SELECT owner FROM widget_db WHERE owner = $id”. If that fails, I redirec the user to the home page and Flash->e
# Feb 9th 2018, 04:47 ricksaccous lol
# Feb 9th 2018, 04:47 ricksaccous just ask
# Feb 9th 2018, 04:47 kevin can I get some architecture advice?
# Feb 9th 2018, 04:47 jkarlmen huh ... i've been working on this for two days and it just hit me. I haven't setup any authorization stuff ... maybe it defaults to not authorizing anything
# Feb 9th 2018, 04:46 jkarlmen for some reason it only works in the app root
# Feb 9th 2018, 04:46 jkarlmen it's supposed to check if a user is authorized to see a link and then show a link or not
# Feb 9th 2018, 04:45 jkarlmen and that uses another helper called AuthLink
# Feb 9th 2018, 04:45 jkarlmen yeah ... it has a helper called UserHelper
# Feb 9th 2018, 04:45 ricksaccous authlink?
# Feb 9th 2018, 04:45 jkarlmen having issues authlink
# Feb 9th 2018, 04:44 jkarlmen I am having a hard time finding information on it and I have pinged their github, reddit, searched their wikis and the internet in general ... out of ideas
# Feb 9th 2018, 04:43 jkarlmen that's alright
# Feb 9th 2018, 04:41 ricksaccous @kevin no problem
# Feb 9th 2018, 04:41 ricksaccous @jkarlmen sorry i'm not too familiar with that plugin
# Feb 9th 2018, 04:41 kevin thank you
# Feb 9th 2018, 04:41 ricksaccous alright dyud
# Feb 9th 2018, 04:40 kevin so im trying to get back into it
# Feb 9th 2018, 04:40 kevin I developed 10 apps, equaling 10million lines of code in cakephp, but that was about 7 years ago
# Feb 9th 2018, 04:40 ricksaccous ex ChickensController {function editChicken($id) { debug($id); exit;}}
# Feb 9th 2018, 04:40 kevin thanks
# Feb 9th 2018, 04:40 kevin yeah I found it cause im dumb
# Feb 9th 2018, 04:39 jkarlmen sorry about that
# Feb 9th 2018, 04:39 ricksaccous the controller method action takes the parameter
# Feb 9th 2018, 04:39 jkarlmen ah okay
# Feb 9th 2018, 04:39 kevin @jkarlmen I think he was talkingt o me
# Feb 9th 2018, 04:39 ricksaccous it's the same in cake2 and cake3
# Feb 9th 2018, 04:39 jkarlmen believe me i've searched
# Feb 9th 2018, 04:39 kevin im literally trying to get a get parameter. /Users/edit/1. Im trying to get the 1. every resource I found is for cake 2
# Feb 9th 2018, 04:38 ricksaccous there are plenty of examples in the docs my friend
# Feb 9th 2018, 04:38 kevin is it that they think its so easy that no one needs examples of it?
# Feb 9th 2018, 04:38 kevin ugh how am I having so much trouble finding information about basic cakephp usage
# Feb 9th 2018, 03:30 jkarlmen I have a question about CakeDC's user plugin I was hoping someone might be able to answer?
# Feb 9th 2018, 03:29 jkarlmen Hi
# Feb 9th 2018, 03:19 slackebot code that works.
# Feb 9th 2018, 03:19 loginews @voycey Thanks I managed to get the data. I have apps already running in MsAccess with mysql / php at the back. MsAccess provides the front-end interface. Now converting tons of code to cakephp. Still getting used to cakephp. But that is a choice I made. It looked the best when I googled for all webdev platforms. My biggest challenge is to be able to do things without coding. I use Bake all the time. I do not want to have to rewrite php
# Feb 9th 2018, 02:11 voycey @loginews Cakes ORM uses lazy loading so the queries are only executed once iterated through, if you want to see the data you can use ->toArray
# Feb 9th 2018, 02:04 loginews @ricksaccous Thanks I managed to get the data.
# Feb 9th 2018, 01:51 loginews I needed to execute a query, not just a find. But I used the select query to see if I got it right.
# Feb 9th 2018, 01:50 loginews just not yet used to it, but I will. One thing at a time.