Log message #4152210

# At Username Text
# Jun 18th 2018, 15:07 josbeir .. lets hope so :) :)
# Jun 18th 2018, 15:06 saeideng nice
# Jun 18th 2018, 15:06 josbeir red
# Jun 18th 2018, 15:06 saeideng white ? red ?
# Jun 18th 2018, 15:05 josbeir yes :P
# Jun 18th 2018, 15:05 saeideng are you from Belgium ?
# Jun 18th 2018, 15:03 josbeir :soccer: go :flag-be: :flag-be: :flag-be:
# Jun 18th 2018, 15:01 josbeir i created an abstract class for this so i can load site specific configs in shell too
# Jun 18th 2018, 15:01 josbeir i have a global configuration, then i have configurations per site, the middleware merges this configuration with the global config. Then your site is 'domain' aware :slightly_smiling_face:
# Jun 18th 2018, 15:00 josbeir all depends on what you try to achieve
# Jun 18th 2018, 15:00 josbeir yeah saw that some time ago, but thats overkill for most cases
# Jun 18th 2018, 14:59 itmpls ah ok, because I was looking into using https://github.com/multidimension-al/cakephp-subdomains
# Jun 18th 2018, 14:56 josbeir its not that hard, just load do stuff based on hostname
# Jun 18th 2018, 14:55 josbeir no created something myself
# Jun 18th 2018, 14:55 josbeir i created a middleware that loads configuration based on given hostname
# Jun 18th 2018, 14:55 itmpls are you using any plugins to handle the routing/middleware for that?
# Jun 18th 2018, 14:54 josbeir what do you need to know @itmpls?
# Jun 18th 2018, 14:54 josbeir i'm working on a multi domain/site project right now
# Jun 18th 2018, 14:44 itmpls trying to manage the subdomains in the db basically
# Jun 18th 2018, 14:44 itmpls anyone use a plugin related to a dynamic subdomain routing setup for 3.6+ ?
# Jun 18th 2018, 13:55 rudy1976s save works fine
# Jun 18th 2018, 13:52 josbeir how are you saving your data?
# Jun 18th 2018, 13:51 josbeir it should work
# Jun 18th 2018, 13:51 rudy1976s it is
# Jun 18th 2018, 13:51 josbeir the trough class should be the class for your join table
# Jun 18th 2018, 13:50 rudy1976s I have Posts belongsToMany Categories with a belongsToMany through association
# Jun 18th 2018, 13:50 josbeir it should work as a belongstomany is just a shorthand
# Jun 18th 2018, 13:50 josbeir then check if the trough class is working and is called etc
# Jun 18th 2018, 13:50 rudy1976s yes
# Jun 18th 2018, 13:50 josbeir @rudy1976s did you also setup the counter caches in the trough class? You need to define belongsTo definitions in the trough class
# Jun 18th 2018, 13:38 rudy1976s I cannot make coiunterCache working on belongsToMany: I have create though Class
# Jun 18th 2018, 13:27 lorenzo let’s see
# Jun 18th 2018, 13:25 mikeydotnu 2 lines of code
# Jun 18th 2018, 13:25 mikeydotnu Someone arround to verify with me if there is a bug yes or no ?
# Jun 18th 2018, 12:08 louis @bravo-kernel Any idea ?
# Jun 18th 2018, 12:06 chris-andre @mohitprakashsharma555 this was put together very quick, but you'll at least get an idea https://gist.github.com/chris-andre/b1a8cf3fd1a694d77459363bc959b384
# Jun 18th 2018, 11:56 mohitprakashsharma555 I want to result between start-date and start-time or end-date and end -time.
# Jun 18th 2018, 11:56 slackebot date('h:i')) ) )), 'fields' => array(), 'order' => 'Home.created DESC', ));
# Jun 18th 2018, 11:56 mohitprakashsharma555 $Home = $this->Home->find('all',array( 'contain' => array('LiveVideo' => array( 'conditions' => array( array('OR' => array('DATE(LiveVideo.from_date) >=' => date('Y-m-d')), array('DATE(LiveVideo.to_date) <=' => date('Y-m-d'))) //'LiveVideo.from_time >=' => date('h:i'), //array('LiveVideo.to_time <=' =>
# Jun 18th 2018, 11:56 mohitprakashsharma555 How to display data between start date and end date or start time and end time from sql using php? I develop a web-service and send data from SQL to API. But, is's based on start-date and end-date or start-time and end-time but result not get perfectly. CakePHP Query Code :
# Jun 18th 2018, 11:54 dereuromark Yes, that sounds like the best idea here