# |
Apr 4th 2019, 12:44 |
admad |
@val there isn't any |
# |
Apr 4th 2019, 12:24 |
weto.jc |
version php 5.x |
# |
Apr 4th 2019, 12:09 |
weto.jc |
``` ```'host' => 'meubanco',links: - meubanco:mysql``` and 'login' => 'admin', 'password' => '123456',``` |
# |
Apr 4th 2019, 12:01 |
weto.jc |
Hi everyone, I'm creating a docker development environment for a legacy cackephp application (version 2.x), but I'm having trouble connecting to the database that is another container. When I connect to mysqli it works but when I connect through database.php it is giving the following error: How do I report the data in database.php? |
# |
Apr 4th 2019, 11:38 |
sunny |
hi |
# |
Apr 4th 2019, 11:34 |
sunny |
where i will store pem files |
# |
Apr 4th 2019, 11:33 |
sunny |
can i have a private folder outside webroot? |
# |
Apr 4th 2019, 11:33 |
sunny |
hi |
# |
Apr 4th 2019, 11:20 |
val |
Hi, what is the equivalent of 2.x `$this->MyModel->cacheQueries = true;` in 3.x? |
# |
Apr 4th 2019, 10:57 |
neon1024 |
Breaks the S in SOLID |
# |
Apr 4th 2019, 10:57 |
neon1024 |
The thing which puts me off Entity methods is that an entity shouldn’t know how it’s data is displayed |
# |
Apr 4th 2019, 10:56 |
neon1024 |
Fractal was nice, but didn’t allow us to match our existing web service response format :( |
# |
Apr 4th 2019, 10:56 |
neon1024 |
So it’s kinda data and view |
# |
Apr 4th 2019, 10:56 |
neon1024 |
I’m undecided because it’s data manipulation, but only for JSON response |
# |
Apr 4th 2019, 10:55 |
neon1024 |
Didn’t look into it |
# |
Apr 4th 2019, 10:54 |
dereuromark |
why not using my dtos then?^^ |
# |
Apr 4th 2019, 10:53 |
neon1024 |
I think new classes would be cleaner |
# |
Apr 4th 2019, 10:52 |
neon1024 |
I’m looking to mimic the functionality of Fractal, and I can’t decide if I should make my transformers their own class, implementing an interface, or if they should be entity mutation methods |
# |
Apr 4th 2019, 08:17 |
neon1024 |
Morning all :wave: |
# |
Apr 4th 2019, 07:26 |
patox44 |
1 problem. I have numbers. How can I make array with keys? |
# |
Apr 4th 2019, 07:10 |
patox44 |
`$connection->execute($query)->fetchAll('assoc');` How can I fetch it not to object, but to array? I need array of arrays |
# |
Apr 4th 2019, 06:48 |
kgb.acct.personal |
Hello everyone, How do you handle large amount of resultset in cakephp? Do you just get the total count then loop on every record? |
# |
Apr 4th 2019, 03:39 |
chan |
@challgren thanks |
# |
Apr 4th 2019, 03:31 |
challgren |
@chan https://support.google.com/docs/answer/183965?co=GENIE.Platform%3DDesktopandhl=en |
# |
Apr 4th 2019, 03:29 |
challgren |
@chan that would be something to look at Google drive support |
# |
Apr 4th 2019, 03:27 |
chan |
hello everyone, how to show my document with google drive. file exist but alway show `No preview available`. please can you give advise me.thanks. my code is following. ``` <iframe src="https://docs.google.com/gview?url=http://192.168.87.140/files/user_cv/40/JS449854_ss.docxandembedded=true" frameborder="0"></iframe> ``` |
# |
Apr 3rd 2019, 20:38 |
kieran.bowler |
Turns out that I had changed the namespace on the prod server. All sorted now thanks! |
# |
Apr 3rd 2019, 20:27 |
flashios09 |
check the file name, maybe you have something like this: - Pagescontroller.php - pagesController.php - pagescontroller.php |
# |
Apr 3rd 2019, 20:26 |
flashios09 |
if it works on local and break on prod, maybe it’s *case sensitivity* |
# |
Apr 3rd 2019, 20:26 |
kieran.bowler |
but still getting the same error |
# |
Apr 3rd 2019, 20:26 |
kieran.bowler |
I've changed it back to `App` now as it should be |
# |
Apr 3rd 2019, 20:26 |
kieran.bowler |
I realised that was the namespace I (incorrectly) changed it to |
# |
Apr 3rd 2019, 20:25 |
flashios09 |
@kieran.bowler what’s `MyWeb` ? |
# |
Apr 3rd 2019, 20:06 |
kieran.bowler |
The file definitely exists though. |
# |
Apr 3rd 2019, 20:06 |
kieran.bowler |
I'm still getting this error on my prod server. |
# |
Apr 3rd 2019, 20:05 |
lepidottero |
@ricksaccous I've tested outside the test environment and I have the same result. I'm making a rest call to update an entity and then I'm getting it back in another rest call (with the wrong data) |
# |
Apr 3rd 2019, 20:01 |
abdualelah.mdy |
it is working in my localhost without issues |
# |
Apr 3rd 2019, 20:00 |
abdualelah.mdy |
that happened after I pulled the project from GitHub into the server |
# |
Apr 3rd 2019, 20:00 |
abdualelah.mdy |
my ide |
# |
Apr 3rd 2019, 20:00 |
abdualelah.mdy |
vc |
# |
Apr 3rd 2019, 19:59 |
ricksaccous |
get a proper IDE to make things easier on yourself |