Log message #4221952

# At Username Text
# Jan 10th 2020, 07:07 francisdoydora no not the same user
# Jan 10th 2020, 07:05 challgren are you running the command as the same user as apache?
# Jan 10th 2020, 07:05 challgren Your permissions are munged
# Jan 10th 2020, 07:05 francisdoydora this error appears @challgren :(
# Jan 10th 2020, 07:05 francisdoydora ```Warning Error: SplFileInfo::openFile(/var/www/html/juniorhigh/tmp/cache/persistent/myapp_cake_core_translations_cake_en__u_s): failed to open stream: Permission denied in [/var/www/html/juniorhigh/vendor/cakephp/cakephp/src/Cache/Engine/FileEngine.php, line 405]```
# Jan 10th 2020, 07:04 challgren That command is what needs to be executed/running to process the queue
# Jan 10th 2020, 07:04 francisdoydora @challgren I didn't :( will try it out now. thanks! :)
# Jan 10th 2020, 07:03 challgren @francisdoydora did you run `bin/cake queue runworker`
# Jan 10th 2020, 07:01 francisdoydora Hi @dereuromark, I was wondering if you could help me out in implementing queue. I've already followed the instructions here https://github.com/dereuromark/cakephp-queue/tree/master/docs#installation and I've setup the app.php file like this https://github.com/dereuromark/cakephp-queue/tree/master/docs#installation. But when I ran the send email method, it didn't send out an email.
# Jan 10th 2020, 00:09 dereuromark I released RC: https://github.com/dereuromark/cakephp-ide-helper/releases/tag/1.0.0-rc If someone wants to test it on Cake 4 apps and give some feedback, would be awesome.
# Jan 9th 2020, 20:18 luizcmarin perfect. thank you :+1:
# Jan 9th 2020, 20:10 luizcmarin ops 3.8
# Jan 9th 2020, 20:10 luizcmarin https://api.cakephp.org/3.8/class-Cake.Validation.Validator.html#_greaterThan ??
# Jan 9th 2020, 20:08 luizcmarin looking in the manual
# Jan 9th 2020, 20:07 luizcmarin "custom rule" not is "validation"?
# Jan 9th 2020, 20:07 dereuromark if it works for decimals
# Jan 9th 2020, 20:03 ricksaccous there's greaterThan
# Jan 9th 2020, 20:02 dereuromark a custom rule with > 0 in there
# Jan 9th 2020, 19:59 slackebot cake?
# Jan 9th 2020, 19:59 luizcmarin The manual says "You can also use notEmpty () to mark a field invalid if any 'empty' value is used. In general, it is recommended that you do not use notEmpty () and use more specific validators instead: notEmptyString () , notEmptyArray (), notEmptyFile (), notEmptyDate (), notEmptyTime (), notEmptyDateTime (). " I have a decimal field (12,2), not null, that accepts zero. I do not want it. Must be greater than zero. How to proceed in
# Jan 9th 2020, 19:32 dereuromark IMO helpers can do these things in specific cases, to avoid the overhead of component or cell involvement.
# Jan 9th 2020, 19:32 dereuromark wrapping it in a helper could make this at least isolated and testable
# Jan 9th 2020, 19:31 kailas it’s literally just one table function call.
# Jan 9th 2020, 19:30 kailas yeah, that’s what i was thinking
# Jan 9th 2020, 19:26 dereuromark Personally I find cells also a bit overhead if it is just a small data fetching (ready only).
# Jan 9th 2020, 19:26 dereuromark just dont tell anyone
# Jan 9th 2020, 19:25 dereuromark If you are aware of it, so be it :)
# Jan 9th 2020, 19:25 dereuromark In those cases one could use TableRegistry::get(), but still somewhat a code smell maybe
# Jan 9th 2020, 19:19 kailas is it possible to loadModel (or something like that) in a view Element? trying to get away with an element rather than a display cell but maybe this is when i should be using the cell?
# Jan 9th 2020, 16:11 val I added a somewhat related shim recently that may be interesting to you - https://github.com/dereuromark/cakephp-shim/blob/cake2/docs/View.md#formhelperinput-and-inputs
# Jan 9th 2020, 16:09 slackebot 'class' => 'col-sm-2 control-label', ] ); ?> <div class="col-sm-10"> <?php echo $this->Form->email('email', [ 'class' => 'form-control', 'value' => !empty($username) ? $username : '', 'placeholder' => __d('frontend', 'Email'), 'maxlength' => 180, ]); ?> </div> </div> ```
# Jan 9th 2020, 16:09 val An example. Before: ``` echo $this->Form->control('email', [ 'value' => !empty($username) ? $username : '', 'label' => [ 'text' => __d('frontend', 'Email'), 'class' => 'col-sm-2 control-label' ], 'placeholder' => __d('frontend', 'Email'), 'between' => '<div class="col-sm-10">', 'after' => '</div>', ]); ``` After:: ``` <div class="form-group row required"> <?php echo $this->Form->label( 'User.email', __d('frontend', 'Email'), [
# Jan 9th 2020, 16:08 val Yes, you can construct inputs semi-manually.
# Jan 9th 2020, 15:59 ricksaccous IT'S ALIVE
# Jan 9th 2020, 15:59 ricksaccous YES
# Jan 9th 2020, 15:54 neothermic yes!
# Jan 9th 2020, 15:50 neothermic hmm! *tries*
# Jan 9th 2020, 15:50 neothermic ah, I see an example!
# Jan 9th 2020, 15:49 neothermic eg:
# Jan 9th 2020, 15:49 neothermic that lets me insert arbitry items?
# Jan 9th 2020, 15:48 admad Yes, override th string templates