Log message #4047566

# At Username Text
# Jul 4th 2017, 11:01 dereuromark e.g. using boostrap plugin
# Jul 4th 2017, 11:00 aproapedelune how can I modify the form to look nice?
# Jul 4th 2017, 11:00 aproapedelune ?= $this->Form->create($analize, ['enctype' => 'miltipart/form-data']) ?> <fieldset> <legend><?= __('Add Analize') ?></legend> <?php echo $this->Form->input('nume'); echo $this->Form->input('categorie'); echo $this->Form->input('pret'); ?> </fieldset> <?= $this->Form->button(__('Adauga')) ?> <?= $this->Form->end() ?
# Jul 4th 2017, 10:59 aproapedelune hello
# Jul 4th 2017, 10:24 neon1024 Guess I’ll use a custom validation method and `preg_match()`
# Jul 4th 2017, 10:19 neon1024 Perhaps it should be ‘not punctuation’
# Jul 4th 2017, 10:18 neon1024 Which is obviously a bug in my code, as the regex works, https://regex101.com/r/lxK8BL/1
# Jul 4th 2017, 10:18 neon1024 Because, for some reason `/[a-z0-9\-_]+/` is allowing string with punctuation in to pass validation
# Jul 4th 2017, 10:17 neon1024 With the Cake 2 `custom()` validation method, the regex should match to pass the validation? I’m matching a whitelist right?
# Jul 4th 2017, 09:57 casmo Does anyone have found a good alternative for the View for cake? e.g. vue.js, angular, react?
# Jul 4th 2017, 09:40 pidlo_ hi can i create crud and can i have a template script witch create ES6 js file from js template and finally transpile it with babel? (include it in cake bake command)?
# Jul 4th 2017, 09:37 hiryu85 Hello
# Jul 4th 2017, 09:26 birdy247 :slightly_smiling_face:
# Jul 4th 2017, 09:26 birdy247 ... and now I read the docs :-
# Jul 4th 2017, 09:25 birdy247 simply pass in the template in AppView which overrides it
# Jul 4th 2017, 09:24 birdy247 just worked it out
# Jul 4th 2017, 09:24 birdy247 neon1024
# Jul 4th 2017, 09:24 neon1024 It’ll come down to form string templates vs CSS imho
# Jul 4th 2017, 09:24 neon1024 Why are you trying to think up a way? When the documentation has a way!
# Jul 4th 2017, 09:19 birdy247 trying to think up the "best" way of doing this
# Jul 4th 2017, 09:19 birdy247 I want to change the default template for datetimes
# Jul 4th 2017, 09:19 birdy247 I am using FOC/BootstrapUI
# Jul 4th 2017, 09:08 jonasz Even doc for Type::clear() suggest is is handy for testing, but that must apply for other cases, I presume?
# Jul 4th 2017, 09:07 jonasz Looks like ORM will always attempt to call Type::build() althought there are no types defined. I thought it should default to some basic PHP types rather than clasess like StringType?
# Jul 4th 2017, 09:05 jonasz Hi Guys, i'm trying to use Type:clear() in unit test case to get clearer output from Table:find(), but then i'm getting error: `InvalidArgumentException: Unknown type "string" /var/www/courses123/vendor/cakephp/cakephp/src/Database/Type.php:104 /var/www/courses123/vendor/cakephp/cakephp/src/Database/TypeConverterTrait.php:34 /var/www/courses123/vendor/cakephp/cakephp/src/Database/Statement/PDOStatement.php:69`
# Jul 4th 2017, 08:50 brettl and ladies
# Jul 4th 2017, 08:50 neothermic hmm, morning fun, trying to work out why cake can't write to the memcache server (despite it working fine last night!)
# Jul 4th 2017, 08:36 megan cough cough, and ladies :)
# Jul 4th 2017, 08:34 brettl gents
# Jul 4th 2017, 08:34 brettl hey getns
# Jul 4th 2017, 07:58 adriencs hey
# Jul 4th 2017, 07:49 neon1024 Morning everyone
# Jul 4th 2017, 07:20 maymeow @adriencs yes :slightly_smiling_face: i fixed it. I had in IssueTable wrong class name for Comments
# Jul 4th 2017, 07:20 adriencs @maymeow seem your Tables are in plugins
# Jul 4th 2017, 07:15 adriencs @maymeow hu
# Jul 4th 2017, 07:04 kareylo A looooong time i didn't come ! How are you, every bakers ?
# Jul 4th 2017, 06:49 slackebot 'user_id', 'joinType' => 'INNER', 'className' => 'CakeAuth.Users' ]); ``` Any idea what is wrong? Comments are loaded into issues with BelongsToMany ``` $this->belongsToMany('Comments', [ 'foreignKey' => 'issue_id', 'targetForeignKey' => 'comment_id', 'joinTable' => 'issues_comments', 'className' => 'CakeService.Comments', 'saveStrategy' => 'append'
# Jul 4th 2017, 06:49 maymeow ``` $issue = $this->Issues->get($id, [ 'contain' => [ 'Users', 'Comments' => [ 'Users' ], 'Assignees', 'Labels'] ]); ``` i have problem with this. It returns error: __Comments are not asociated with users__. but comments are associated with Users ``` $this->belongsTo('Users', [ 'fo
# Jul 4th 2017, 06:03 sniedermaier if you don't wanna use an entity to create the form use NULL as the first parameter
# Jul 4th 2017, 06:02 sniedermaier or in your case `echo $this->Form->create($entity, ['url' => 'login_decide.php']);`
# Jul 4th 2017, 06:01 sniedermaier @aproapedelune to set the action use the following line of code echo $this->Form->create($article, ['url' => ['action' => 'login']]);