Log message #4153470

# At Username Text
# Jun 23rd 2018, 03:34 c File uploaded https://cakesf.slack.com/files/UB6G053A6/FBCLYC6RH/-.php / https://slack-files.com/T053DPNCM-FBCLYC6RH-1db8790ec6
# Jun 23rd 2018, 03:34 c If I run this command `bin/cake plugin load ADmad/JwtAuth` it adds this line on the Application.php file
# Jun 23rd 2018, 03:33 c I’m having a problem with the bake console and the plugin loading
# Jun 23rd 2018, 03:33 c Hello everyone!
# Jun 22nd 2018, 23:34 ra7bi is that possible with that plugin ? thanks
# Jun 22nd 2018, 23:33 ra7bi File uploaded https://cakesf.slack.com/files/U1M5X5JBZ/FBDKYEH7G/helpresource.ashx.png / https://slack-files.com/T053DPNCM-FBDKYEH7G-eb57eb5e7d - i need it something like this , two inputs with labels in each line
# Jun 22nd 2018, 23:32 ra7bi File uploaded https://cakesf.slack.com/files/U1M5X5JBZ/FBDQ5TBBR/screen_shot_2018-06-23_at_3.31.29_am.png / https://slack-files.com/T053DPNCM-FBDQ5TBBR-21bcd605b9 - i've installed <https://github.com/FriendsOfCake/bootstrap-ui> plugin and i followed the steps , i want to make 2 inputs with label in each line but it gives me only one im using horizontal setup
# Jun 22nd 2018, 21:56 ra7bi thanks , i got the problem PK was not AI
# Jun 22nd 2018, 21:54 ra7bi when i do bake --everything it does not work but if i do it one by one it works
# Jun 22nd 2018, 21:53 saeideng `$this->setPrimaryKey('id');`
# Jun 22nd 2018, 21:53 itmpls double check
# Jun 22nd 2018, 21:53 itmpls you sure it's the right table?
# Jun 22nd 2018, 21:52 ra7bi i've primary key for details table
# Jun 22nd 2018, 21:52 ra7bi i got an error with bake ` Wrote `/Applications/AMPPS/www/store/src/Template/Details/edit.ctp` Cannot generate views for models with no primary key `
# Jun 22nd 2018, 21:52 ra7bi hi
# Jun 22nd 2018, 18:16 elovin ah okay, thanks
# Jun 22nd 2018, 18:13 lorenzo Classes are need only when you want to customize stuff
# Jun 22nd 2018, 18:13 lorenzo It will use the base table class by default
# Jun 22nd 2018, 18:09 elovin another question though, as it seems I do not need any table classes to access existing Tables with the TableLocator ?
# Jun 22nd 2018, 18:08 elovin okay mybad, missed a simple error in my cache config
# Jun 22nd 2018, 18:00 elovin I tried that, same result, connection is refused, might be an error in my docker-compose
# Jun 22nd 2018, 17:57 lorenzo What if you use the same port in cake as you did directly in pdo?
# Jun 22nd 2018, 17:46 elovin any ideas ?
# Jun 22nd 2018, 17:45 elovin well yes, but I have a different problem right now, I get SQLSTATE[HY000] [2002] Connection refused when using the stand alone app but the regular cakePHP app works just fine with the same database config, also using PDO directly strangely only works with 8889 but im on linux + docker ..
# Jun 22nd 2018, 17:30 lorenzo elovin still need help with that?
# Jun 22nd 2018, 16:26 elovin can I just copy the database model folder from my other cakePHP project to the stand alone project where I use the cakePHP orm ? If so, where should I place it ?
# Jun 22nd 2018, 16:25 elovin Im trying to use only the ORM from CakePHP, I have set the database Configuration and meta data cache, but now I'm wondering where to place the table and entity classes ?
# Jun 22nd 2018, 15:22 lorenzo right
# Jun 22nd 2018, 15:19 neon1024 I guess that the `where()` method passes it if the param is a callable?
# Jun 22nd 2018, 15:17 neon1024 I don’t quite follow the execution path though. Where does `$exp` get set in the callback method?
# Jun 22nd 2018, 15:15 lorenzo yes
# Jun 22nd 2018, 15:15 neon1024 Ah, the namespaced functions you mentioned the other day? Perfect example! Thanks @lorenzo
# Jun 22nd 2018, 14:54 lorenzo ```where(gte($field, $val))```
# Jun 22nd 2018, 14:54 lorenzo then you can do
# Jun 22nd 2018, 14:53 lorenzo ```function gte($field, $val) { return function ($exp) use ($field, $val) { return $exp->gte($field, $val); } } ```
# Jun 22nd 2018, 14:52 lorenzo I’m working on a better way, but you could have you own version today
# Jun 22nd 2018, 14:46 neon1024 Ooh, it is a bit long isn’t it
# Jun 22nd 2018, 14:44 neon1024 `where(['Example.field' => $q->func()->gte(10)])`?
# Jun 22nd 2018, 14:43 neon1024 Is there a neater way to build where clauses with greater than etc, putting the `>=` in the field selector looks horrible
# Jun 22nd 2018, 14:14 josbeir pas de probleme
# Jun 22nd 2018, 14:14 itmpls merci