# |
Apr 13th 2018, 13:56 |
narendravaghela |
:) |
# |
Apr 13th 2018, 13:56 |
neon1024 |
Feel free to propose it in a ticket :slightly_smiling_face: |
# |
Apr 13th 2018, 13:54 |
narendravaghela |
Great, and if core members agree, we should add `timeLeftInWords` too. |
# |
Apr 13th 2018, 13:53 |
neon1024 |
Yes, I have a `timeToGoInWords()` method which uses the DateTime diff to count down to a datetime |
# |
Apr 13th 2018, 13:52 |
narendravaghela |
Does it contain the same function? |
# |
Apr 13th 2018, 13:51 |
neon1024 |
Perhaps I should open source my Clock helper |
# |
Apr 13th 2018, 13:47 |
neon1024 |
It would be nice if timeAgoInWords had it’s couterpart timeLeftInWords |
# |
Apr 13th 2018, 12:57 |
neon1024 |
@steinkel Thanks! I’ll try that |
# |
Apr 13th 2018, 12:52 |
mtreu |
ty :) |
# |
Apr 13th 2018, 12:52 |
mtreu |
works fine |
# |
Apr 13th 2018, 12:52 |
btx |
if that doesn't work you probably have an issue somewhere else |
# |
Apr 13th 2018, 12:51 |
btx |
(added the 'IN' to the where) |
# |
Apr 13th 2018, 12:51 |
btx |
you may need $this->Applications->find()->where(['Applications.id IN'=>[14,15]]) |
# |
Apr 13th 2018, 12:50 |
mtreu |
InvalidArgumentException] Cannot convert value to integer in /var/www/html/vendor/cakephp/cakephp/src/Database/Type/IntegerType.php |
# |
Apr 13th 2018, 12:50 |
mtreu |
same error |
# |
Apr 13th 2018, 12:50 |
mtreu |
still not working |
# |
Apr 13th 2018, 12:48 |
btx |
$this->Applications->find()->where(['Applications.id'=>[14,15]]) |
# |
Apr 13th 2018, 12:48 |
mtreu |
oh what would be the proper cakephp3 syntax |
# |
Apr 13th 2018, 12:48 |
btx |
ok you're doing Cake 2.x find syntax on a Cake 3 model try ... |
# |
Apr 13th 2018, 12:47 |
mtreu |
3.5 |
# |
Apr 13th 2018, 12:47 |
btx |
what version of CakePHP |
# |
Apr 13th 2018, 12:45 |
mtreu |
Error: [InvalidArgumentException] Cannot convert value to integer in /var/www/html/vendor/cakephp/cakephp/src/Database/Type/IntegerType.php |
# |
Apr 13th 2018, 12:44 |
btx |
what does the error say |
# |
Apr 13th 2018, 12:44 |
mtreu |
however it does not seem to work and i m only getting the standard cakephp error |
# |
Apr 13th 2018, 12:43 |
mtreu |
$this->Applications->find('all',['conditions'=>['Applications.id'=>[14,15]]]); |
# |
Apr 13th 2018, 12:43 |
mtreu |
syntax wise this should be fine no? |
# |
Apr 13th 2018, 12:43 |
mtreu |
I want to find in my model Applications the indexes 14 and 15 |
# |
Apr 13th 2018, 12:42 |
mtreu |
i have a problem with multiple ID queries |
# |
Apr 13th 2018, 12:42 |
mtreu |
Hi! |
# |
Apr 13th 2018, 12:38 |
dereuromark |
there you can find the bootstrap plugin linked |
# |
Apr 13th 2018, 12:38 |
lorenzo |
@stalkerxxl this https://github.com/friendsofcake/bootstrap-ui |
# |
Apr 13th 2018, 12:37 |
slackebot2 |
!tell @stalkerxxl about awesome |
# |
Apr 13th 2018, 12:37 |
slackebot2 |
Command sent from Slack by dereuromark: |
# |
Apr 13th 2018, 12:32 |
stalkerxxl |
Guys, what's the easiest way to use bootstrap in CakePHP? I installed AdminLTE, but it's a plugin .. And I have little experience and I do not want to then look for errors in the code related to the plugins .. How do I switch to bootstrap (a simple template) so that BAKE works with it? P.S. Can someone have a Russian-speaking in this chat room? |
# |
Apr 13th 2018, 12:02 |
steinkel |
if so, reading the 1st line of the file would give you the ts |
# |
Apr 13th 2018, 12:02 |
steinkel |
@neon1024 are you using file cache? |
# |
Apr 13th 2018, 11:49 |
neon1024 |
Most of the Cache api seems to be around the item in cache, rather than the meta |
# |
Apr 13th 2018, 11:49 |
neon1024 |
I’d like to display how long the cache has left until invalidation |
# |
Apr 13th 2018, 11:49 |
neon1024 |
Anyone know how I can read the cache datetime of an item? |
# |
Apr 13th 2018, 10:25 |
tobias |
yes did everything like the tutorial https://book.cakephp.org/2.0/en/development/testing.html |
# |
Apr 13th 2018, 10:22 |
neon1024 |
Sounds like a missing class |