# |
Oct 4th 2016, 15:39 |
Speud |
I read in the doc in 3.3.5, contain in deprecated in Auth, you have to know use a custom finder if you want to use it (but still working with contain at this time) |
# |
Oct 4th 2016, 15:38 |
Speud |
@djboz: here it is: http://pastebin.com/WeqjfNUt |
# |
Oct 4th 2016, 15:37 |
Speud |
yes for sure, hold on |
# |
Oct 4th 2016, 15:36 |
djboz |
@speud Can you shoot over that pastbin again? |
# |
Oct 4th 2016, 15:27 |
acosonic |
Hi all, is there some best practice for designing and using API's based on Cakephp, and how is authentication done with API's... |
# |
Oct 4th 2016, 15:16 |
Pika |
In another controller we are using status with real number (as is) 10 or 20 or x etc., but now customer wants group of statuses (10,20,30) (40) (50,60) |
# |
Oct 4th 2016, 15:15 |
Pika |
how do you mean? |
# |
Oct 4th 2016, 15:15 |
cosmin_cimpoi |
why not use another var name? |
# |
Oct 4th 2016, 15:15 |
cosmin_cimpoi |
Pika: it s weird that you overwrite status_number in the condition. I d expect some trouble... |
# |
Oct 4th 2016, 15:12 |
Pika |
If in DB we have 10,20,30 and 40 query return 2 statuses, but I need always only one |
# |
Oct 4th 2016, 15:11 |
Pika |
@Speud |
# |
Oct 4th 2016, 15:11 |
Pika |
http://pastebin.com/dXjpPZnt |
# |
Oct 4th 2016, 15:07 |
Speud |
@Pika, can you show us your code ? |
# |
Oct 4th 2016, 15:07 |
cosmin_cimpoi |
the idea is to get log streams to stdout and not file |
# |
Oct 4th 2016, 15:06 |
cosmin_cimpoi |
hello. I have this dockerized cake app and I switched to 'engine' => 'ConsoleLog' in app.php. I get Could not load class ConsoleLog. I suspect this to be a composer issue but did anyone here have this problem? |
# |
Oct 4th 2016, 15:05 |
Pika |
Ok, however thx |
# |
Oct 4th 2016, 15:05 |
Neon1024 |
I have too much happening right now to be able to contribute, Iâ??m sorry. |
# |
Oct 4th 2016, 15:04 |
Neon1024 |
Although Iâ??m sure youâ??re abstracting a complex case |
# |
Oct 4th 2016, 15:04 |
Neon1024 |
Sounds like poor software design to me |
# |
Oct 4th 2016, 15:03 |
Pika |
but if I have in array 10,20 and 40 then I get back 2 statuses but I need only one (from 100) because status 200 is only when I have all values = 40 |
# |
Oct 4th 2016, 15:02 |
Pika |
@neon1024 actually I need that without foreach, because I have more combinations... I am sending 3 options 100, 200 and 300 and 100 need to filter all values from 10,20,30, option with 200 must filter only values with 40 and value 300 can conatin values from 50,60 |
# |
Oct 4th 2016, 15:02 |
Speud |
and then you have to manage prefix or not, depends where you want to send the user connected |
# |
Oct 4th 2016, 15:01 |
Speud |
http://pastebin.com/HpyztZFW here it is (It can be improved for sure) |
# |
Oct 4th 2016, 15:01 |
Speud |
no in your appController (hold on, I will show you ;) |
# |
Oct 4th 2016, 14:59 |
djboz |
@speud Also, when you said define it in my authComponent, you mean in my AppController, or in my Vendor Cake/Controller/Component/AuthComponent ? |
# |
Oct 4th 2016, 14:58 |
djboz |
What a weird error though, I thought I would want to define my fullBaseURL rather than leave it blank. Odd how that affects the general AuthComponent, maybe I should submit a issue? |
# |
Oct 4th 2016, 14:57 |
Speud |
@djboz, oki always good to know ;) |
# |
Oct 4th 2016, 14:55 |
djboz |
@speud The culprit was that I had defined my fullBaseURL = â??mysite.mysitename.comâ??, by clearning it out, it worked. i.e., `fullBaseURL = â??â??;` |
# |
Oct 4th 2016, 14:54 |
Speud |
sorry it's more => 'authorize' => ['Controller'], |
# |
Oct 4th 2016, 14:54 |
Speud |
@djBoz: in your authComponent, add => ['controller'] => false |
# |
Oct 4th 2016, 14:51 |
mesterjagel |
Moved my init of the table to the constructor and it worked. |
# |
Oct 4th 2016, 14:50 |
djboz |
Trying to get my AuthComponent to work but whenever I try to go to a controller action who I do not have access too, instead of redirecting me to my controller action users(login) it appends my url to the controller and action I requested and then appends the redirection. i.e., `mywebsite.com/users/login`, what could be the issue? |
# |
Oct 4th 2016, 14:48 |
mesterjagel |
Hmm Iâ??m using TableRegistry to import a model to a Component. But when trying to fire a function from within I get a not found error? Does that make sense in anyway ? |
# |
Oct 4th 2016, 14:44 |
Neon1024 |
Just use a foreach() surely? and if a value isnâ??t 40 then break and return false |
# |
Oct 4th 2016, 14:40 |
Pika |
How to make query with matching function that result is true only when all values are X. I have array with (10,20,30,40) and need true result only when all values in array are (40, 40,40,40) everything else is flase? |
# |
Oct 4th 2016, 14:03 |
Neon1024 |
Ta |
# |
Oct 4th 2016, 14:02 |
ndm |
`$this->_View->element('element_name')` |
# |
Oct 4th 2016, 13:58 |
Neon1024 |
I have a helper which outputs quite a bit of markup and Iâ??d like to abstract the markup away from the helper method |
# |
Oct 4th 2016, 13:57 |
Neon1024 |
Or, load an element |
# |
Oct 4th 2016, 13:57 |
Neon1024 |
Is there a way to use a view template in a helper? |
# |
Oct 4th 2016, 13:57 |
xymanek |
https://github.com/cakephp/cakephp/blob/master/src/Database/Type/JsonType.php |