# |
Jul 4th 2017, 11:07 |
aproapedelune |
ok. thank you |
# |
Jul 4th 2017, 11:06 |
neon1024 |
My first thought would be to write some CSS |
# |
Jul 4th 2017, 11:04 |
dereuromark |
https://github.com/FriendsOfCake/awesome-cakephp#templating |
# |
Jul 4th 2017, 11:03 |
dereuromark |
its just cleaner using the plugin as the code stays agnostic and simple |
# |
Jul 4th 2017, 11:03 |
dereuromark |
suure |
# |
Jul 4th 2017, 11:03 |
aproapedelune |
but can t I just modify the code a bit to make it fast? :)) |
# |
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 |