# |
Mar 7th 2019, 09:47 |
neon1024 |
or `$query->enableAutoFields(true)` I think the method is called |
# |
Mar 7th 2019, 09:46 |
neon1024 |
`$query->select(['Articles.id', 'Authors.id'])` |
# |
Mar 7th 2019, 09:45 |
willem |
hi, when using this type of query ``` $query = $articles->find(); $query->leftJoin( ['Authors' => 'authors'], ['Authors.id = Articles.author_id']); ``` the result would only have the columns for the articles table. how can i also get the columns from the joined tables ? |
# |
Mar 7th 2019, 09:19 |
endersaka |
it seems I'm resolving: the cause is probably a Firefox extension... |
# |
Mar 7th 2019, 09:09 |
neon1024 |
Morning all |
# |
Mar 7th 2019, 09:07 |
endersaka |
Hi, I have a problem with the configuration of CakePHP and Apache (I guess). In Chrome everything works (even if there is a little glitch that I will explain later) but in Firefox I get a message "The connection has been cancelled" when I try to access the /articles/ page (made following the CMS tutorial). Everything is installed locally (Apache 2.4, PHP 7.2) and I access it via http://localhost/~username/appname/articles/ |
# |
Mar 7th 2019, 08:26 |
josbeir |
@chan if you want to do emails the cool way check out https://mjml.io/ |
# |
Mar 7th 2019, 07:24 |
acosonic |
@chan gmail strips everything in head... https://stackoverflow.com/questions/19572437/gmail-css-styling |
# |
Mar 7th 2019, 05:40 |
chan |
mr. @admad i write css in head of html block, but does not work css in gmail. which one is wrong? thank your advise. |
# |
Mar 7th 2019, 05:37 |
slackebot1 |
bgcolor="#5B9BD5"> <span style="color: #FFFFFF;">Recent job vacancies</span> </td> </tr> </table> </section> </div> </body> </html> ``` |
# |
Mar 7th 2019, 05:37 |
slackebot1 |
$this->Html->meta(array('name' => 'viewport', 'content' => 'width=device-width, initial-scale=1 , user-scalable=no')); ?> <style type="text/css"> .recent-job-title { height: 40; border-bottom: 1px solid #41719B; padding: 15px 15px 15px 15px; } </style> </head> <body style="margin:0; padding:10px 0 0 0;"> <div id="content" bgcolor="#FFFFFF"> <section> <table> <tr> <td class="recent-job-title" height="40" |
# |
Mar 7th 2019, 05:37 |
chan |
i implement html mail format using cakephp 2. i used inline css style in html mail layout. i check and try again coding repair by learning this site. https://templates.mailchimp.com/resources/email-client-css-support/ but does not work css in gmail. why? please, can you advise me. thanks. ``` <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"> <html lang="en"> <head> <?php echo $this->Html->charset(); ?> <?php echo |
# |
Mar 7th 2019, 03:09 |
voycey |
Question - with the new Spatial features in MySQL 5.7 is anyone working on a plugin for Cake for this? Happy to Collaborate if so as we are looking to develop our own! |
# |
Mar 6th 2019, 18:25 |
devito |
thanks |
# |
Mar 6th 2019, 18:18 |
jeremyharris |
@devito I’ve seen this used: https://github.com/fzaninotto/Faker |
# |
Mar 6th 2019, 18:06 |
devito |
does anyone know of a tool that will auto populate forms for testing? |
# |
Mar 6th 2019, 15:57 |
neon1024 |
To be honest the site could do with being updated to 3.7, and having it’s deprecations sorted out and such, but that’s a job for another day |
# |
Mar 6th 2019, 15:57 |
neon1024 |
@dereuromark Yep, spot on. CakePHP 3.6 on PHP 7.3.2 |
# |
Mar 6th 2019, 15:07 |
dereuromark |
E_ALL without anything then^^ |
# |
Mar 6th 2019, 15:07 |
dereuromark |
sounds like you are using php7.3 on old cake code |
# |
Mar 6th 2019, 15:02 |
neon1024 |
Just wanted to update a phone number :rolling_on_the_floor_laughing: |
# |
Mar 6th 2019, 14:58 |
neon1024 |
Today is not my day! |
# |
Mar 6th 2019, 14:58 |
neon1024 |
`Notice (8): compact(): Undefined variable: etagMatches [CORE/src/Http/Response.php, line 2066]` :face_palm: |
# |
Mar 6th 2019, 14:56 |
neon1024 |
Guess I’ll configure the toolbars to not use the Mail one |
# |
Mar 6th 2019, 14:56 |
neon1024 |
Ah, I’m stuck on 3.16.7 of DebugKit unless I upgrade Cake to 3.7 |
# |
Mar 6th 2019, 14:54 |
dereuromark |
yeah |
# |
Mar 6th 2019, 14:54 |
neon1024 |
I’ll try updating it, as newer versions might solve it |
# |
Mar 6th 2019, 14:54 |
dereuromark |
notices are baad |
# |
Mar 6th 2019, 14:54 |
dereuromark |
jep. but debug kit could be coded more defensivly, and silently aborting, maybe with a warning in the tab or sth |
# |
Mar 6th 2019, 14:53 |
neon1024 |
I guess because DebugKit isn’t on the live it’s not an issue there! |
# |
Mar 6th 2019, 14:53 |
neon1024 |
Yeah, plus the config I have is in EmailTransport and Email, which are both consumed by default |
# |
Mar 6th 2019, 14:52 |
neon1024 |
Wouldn’t that be in bootstrap though |
# |
Mar 6th 2019, 14:52 |
neon1024 |
Yeah, perhaps, good idea. Let me check |
# |
Mar 6th 2019, 14:49 |
dereuromark |
are those maybe consume()d ? And thats why lost? |
# |
Mar 6th 2019, 14:47 |
neon1024 |
Freshly checked out this project just now, and it’s already in prod, so I’m confused |
# |
Mar 6th 2019, 14:45 |
neon1024 |
Seems that `$transport` doesn’t have a className? |
# |
Mar 6th 2019, 14:45 |
neon1024 |
`$className = App::className($transport['className'], 'Mailer/Transport', 'Transport');` |
# |
Mar 6th 2019, 14:45 |
neon1024 |
`Notice (8): Undefined index: className [ROOT/vendor/cakephp/debug_kit/src/Panel/MailPanel.php, line 55]` |
# |
Mar 6th 2019, 14:45 |
neon1024 |
What is the MailPanel expecting? |
# |
Mar 6th 2019, 14:01 |
dakota |
Hello from irc |
# |
Mar 6th 2019, 13:55 |
acosonic |
I've did it since most of stuff on the servers is built in cake, so got tired of looking into such attempts in logs... Probably I should send those ip's to https://www.badips.com/ or similar... |