# |
Aug 26th 2016, 09:17 |
fquffio |
Neon1024 :) |
# |
Aug 26th 2016, 09:17 |
matze_ |
hmic, do you know what could interfere with the redirect so the auth component decides not to use my specified unauthorizedRedirect setting? |
# |
Aug 26th 2016, 09:17 |
Neon1024 |
fquffio, Thanks! Thatâ??s the tiniest p Iâ??ve ever seen in a UI! |
# |
Aug 26th 2016, 09:04 |
fquffio |
Neon1024: Preferences -> Directories -> (Right-most bar) Source folders -> click on the small "p" -> Package prefix If you haven't set source folders, right click on your "src" and mark it as such. This should do the work. |
# |
Aug 26th 2016, 09:02 |
matze_ |
this is my app controller http://pastebin.com/sGi8xmWn |
# |
Aug 26th 2016, 09:02 |
ds |
thx lorenzo.. oh ya how to use ACL plugin and how to setting? |
# |
Aug 26th 2016, 09:01 |
matze_ |
i think you're correct but my setup is very basic: I set 'unauthorizedRedirect' in the authComponent to a specific controller but it always redirects to users/login, even if i set 'unauthorizedRedirect' to false it does the redirect to users/login |
# |
Aug 26th 2016, 09:00 |
Neon1024 |
Mine seem to follow the folders, but miss of the \App |
# |
Aug 26th 2016, 09:00 |
Neon1024 |
Anyone know how to tell PHP Storm to include the \App namespace when creating new classes? |
# |
Aug 26th 2016, 09:00 |
Neon1024 |
Just curious |
# |
Aug 26th 2016, 08:58 |
hmic |
matze_, auth problems are never basic or minor :p |
# |
Aug 26th 2016, 08:58 |
Neon1024 |
Hello birdy |
# |
Aug 26th 2016, 08:54 |
birdy247 |
Morning Neon1024 |
# |
Aug 26th 2016, 08:53 |
matze_ |
can someone help me with a basic auth problem? |
# |
Aug 26th 2016, 08:43 |
lorenzo |
your can set the urls you need there |
# |
Aug 26th 2016, 08:43 |
lorenzo |
but you can output js in the default layout inside `script` tags |
# |
Aug 26th 2016, 08:43 |
lorenzo |
ds you cannot use php in a js file |
# |
Aug 26th 2016, 08:41 |
dwikisaputra48 |
TES |
# |
Aug 26th 2016, 08:41 |
fquffio |
Not quite sure it works 100% of the cases, but it does at least with some preliminary unit tests I had written. |
# |
Aug 26th 2016, 08:40 |
fquffio |
lorenzo: https://gist.github.com/fquffio/d2723c26914f24030e276819d5dec311 This is the very-dirty version of what I'd like to do. |
# |
Aug 26th 2016, 08:39 |
dereuromark |
@JohnWayne: dreaming of Paginator in the night? :slightly_smiling_face: |
# |
Aug 26th 2016, 08:37 |
JohnWayne |
I was always using sort instead of order :S |
# |
Aug 26th 2016, 08:37 |
JohnWayne |
thx Neon :D |
# |
Aug 26th 2016, 08:37 |
Neon1024 |
$this->Examples->find(â??listâ??)->order([â??nameâ?? => â??ascâ??]); |
# |
Aug 26th 2016, 08:36 |
JohnWayne |
where is sort here? ASC or DESC ? |
# |
Aug 26th 2016, 08:35 |
dwikisaputra48 |
for example |
# |
Aug 26th 2016, 08:34 |
dwikisaputra48 |
$sql = $this->find('list', [ 'keyField' => 'id', 'valueField' => 'role_name' ]); $results = $sql->toArray(); for john Wayne |
# |
Aug 26th 2016, 08:33 |
Neon1024 |
Morning all |
# |
Aug 26th 2016, 08:33 |
JohnWayne |
$groups = $groupsT->find('list', ['limit' => 200])->where(['Groups.type' => 'partner'])->toArray(); |
# |
Aug 26th 2016, 08:33 |
JohnWayne |
How can I sort list in query? |
# |
Aug 26th 2016, 08:31 |
dwikisaputra48 |
how to use routing in file js (CakePHP 3) example : ?php echo Router::url(['controller' => 'users', 'action' => 'index']); ? |
# |
Aug 26th 2016, 08:30 |
lorenzo |
dwikisaputra48 I did not understand your question, what do you mean? |
# |
Aug 26th 2016, 08:30 |
lorenzo |
Not sure what the purpose of getting the result of that method is fquffio |
# |
Aug 26th 2016, 08:29 |
dwikisaputra48 |
hello ... soryy, i have a question. how to create routing in file js (CakePHP 3) thx |
# |
Aug 26th 2016, 08:24 |
fquffio |
Yeah, that I would have implemented for sure. I'll try with configuration. Last question: what if an inverse association hasn't been configured at all? :) I know it might sound kinda strange, but isn't there any way to obtain the result of `SelectableAssociationTrait::_buildQuery()` (without doing fancy things like exposing it with a ReflectionObject and other things people under the age of 18 shouldn't do)? |
# |
Aug 26th 2016, 08:22 |
lorenzo |
you donâ??t want people having all the power of SQL from their browsers |
# |
Aug 26th 2016, 08:21 |
lorenzo |
having control using a whitelist on what the end user is allowed to do is a great thing |
# |
Aug 26th 2016, 08:21 |
fquffio |
:+1: |
# |
Aug 26th 2016, 08:21 |
lorenzo |
thatâ??s also a good idea from the perspective of performance and security |
# |
Aug 26th 2016, 08:21 |
fquffio |
Uhmâ?¦ So I'd have to look up in some configuration array which inverse association corresponds to the association passed. |
# |
Aug 26th 2016, 08:21 |
lorenzo |
make it require Association and a some config describing what is possible |