# |
Mar 25th 2019, 17:29 |
ricksaccous |
i don't see a dropdown? |
# |
Mar 25th 2019, 17:15 |
this.impetus |
https://gist.github.com/jmwmulle/497103a7510ca52cb3d7f18b578a80ea |
# |
Mar 25th 2019, 17:13 |
this.impetus |
on it. thanks for pateince |
# |
Mar 25th 2019, 17:12 |
ricksaccous |
https://gist.github.com/ |
# |
Mar 25th 2019, 17:12 |
ricksaccous |
gist up your model, controller, and view |
# |
Mar 25th 2019, 17:12 |
this.impetus |
So the database expects a year, the form records a year, my validator expects a year... but I am getting "The provided value is invalid" on my front end. |
# |
Mar 25th 2019, 17:11 |
this.impetus |
hrmm. upon closer inspection I think I have the form set up correctly in any case: <?=$this->Form->control('academic_year', ['type'=>'year', 'minYear'=>1950, 'maxYear'=>date('Y')]);?> |
# |
Mar 25th 2019, 17:10 |
berarma |
The browser always sends strings. The entity marshaller then converts it to the database field type. |
# |
Mar 25th 2019, 17:08 |
this.impetus |
... and apparently backticks aren't how you indicate code in slack... new to this as well.. thanks for putting up wth me |
# |
Mar 25th 2019, 17:07 |
this.impetus |
I tried changing `$validator ->integer('academic_year',)` to `$validator ->date('academic_year', ['y'])` but this produced the same result |
# |
Mar 25th 2019, 17:06 |
this.impetus |
subsequently, an integer is no longer sent to the controller when a record is created, and the validator is complaining. I am certain there is some dead-simple solution here that I am missing, but I am extremely new to cake3 |
# |
Mar 25th 2019, 17:04 |
this.impetus |
*created a text field |
# |
Mar 25th 2019, 17:04 |
this.impetus |
but the baked forms, because I indicated that the year column should be an integer, created a text. When I manually edited it to create a dropdown menu listing n-years the form broke; now I get validation errors |
# |
Mar 25th 2019, 17:04 |
berarma |
I don't get the question. |
# |
Mar 25th 2019, 17:03 |
this.impetus |
when I baked it, yes |
# |
Mar 25th 2019, 17:03 |
berarma |
@this.impetus, isn't this all done automatically? |
# |
Mar 25th 2019, 16:58 |
this.impetus |
this sides = this sends, sorry |
# |
Mar 25th 2019, 16:58 |
slackebot2 |
for me. Tried changing the @property in the model's Entity file to no avail, also tried writing a custom validator but getting errors that the vars used the cookbook example don't exist. Save me from myself? |
# |
Mar 25th 2019, 16:58 |
this.impetus |
Hi guys, nub question: have a drop-down menu for selecting "year"; alas this sides a string to cake. When I built the database I accidentally set the column to "int(11)" instead of something reasonable and now the entity expects and integer as does the validator. I know how to intercept the data in the controller methods and just convert the year string to an int, but, I presume the there is a way to have the Entity and Table do this |
# |
Mar 25th 2019, 16:34 |
berarma |
Yes, I'll try that. LXC works well alone, although a bit low-level. I've heard good things about Vagrant. |
# |
Mar 25th 2019, 16:31 |
ricksaccous |
@berarma interesting: https://github.com/fgrehm/vagrant-lxc |
# |
Mar 25th 2019, 16:29 |
berarma |
Thanks, team! (@neon1024, @ricksaccous) :P |
# |
Mar 25th 2019, 16:27 |
berarma |
OK. I was using LXC because is very lightweight now thinking on using Vagrant/LXC. |
# |
Mar 25th 2019, 16:26 |
ricksaccous |
if you don't care about microservices just use vagrant to get it up fast |
# |
Mar 25th 2019, 16:26 |
berarma |
I just want to replicate a server environment based on Debian. |
# |
Mar 25th 2019, 16:25 |
ricksaccous |
kubernetes might be a thing to look into |
# |
Mar 25th 2019, 16:25 |
ricksaccous |
hehe |
# |
Mar 25th 2019, 16:25 |
berarma |
My team is me. :slightly_smiling_face: |
# |
Mar 25th 2019, 16:25 |
neon1024 |
VirtualBox for me |
# |
Mar 25th 2019, 16:25 |
ricksaccous |
are you trying to go for microservices? |
# |
Mar 25th 2019, 16:25 |
ricksaccous |
@berarma whichever one your team agrees on, there are many options, you also have to consider the scope of your project |
# |
Mar 25th 2019, 16:21 |
berarma |
Hi. (Slightly offtopic) Which virtualisation solution is generally prefered to develop on Linux? |
# |
Mar 25th 2019, 15:56 |
sad148 |
Hi.. I am using cakephp v3.7 and cakephp-oracle-driver. How can I prepend schema name to the table name in the database queries? |
# |
Mar 25th 2019, 12:23 |
joopm |
i write this down if someone will looking for this in the log |
# |
Mar 25th 2019, 12:23 |
joopm |
after changing xdebug.remote = 1 in php.ini the debug run smootly |
# |
Mar 25th 2019, 12:22 |
joopm |
its showed me the xdebug.remote = 0, and that was the real reason why the eclipse could not debug |
# |
Mar 25th 2019, 12:22 |
joopm |
so i went back to eclipse |
# |
Mar 25th 2019, 12:22 |
joopm |
but other pages appear normally |
# |
Mar 25th 2019, 12:22 |
joopm |
for me its showed the error was in the route.php as i said before |
# |
Mar 25th 2019, 12:21 |
joopm |
neon thank you for your co-operation,hint,help,time and effort |
# |
Mar 25th 2019, 12:15 |
evxzibit |
Sorry for late reply.. I just need to see the output of ```$this->request->getRequestData();``` to see if it conforms with the structure here https://book.cakephp.org/3.0/en/orm/saving-data.html# |