# |
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# |
# |
Mar 25th 2019, 12:14 |
joopm |
neon okey its seem there is no routing issues on other pages but Xdebug session does not arrive |
# |
Mar 25th 2019, 12:11 |
shupel16 |
Cool! I'm in safe hands. |
# |
Mar 25th 2019, 12:05 |
acosonic |
Thank you guys, yeah, bootstrap ui control, it is... |
# |
Mar 25th 2019, 12:02 |
joopm |
without any modification,thats why i thought that i have to modify the route.php file |
# |
Mar 25th 2019, 12:01 |
joopm |
the eclipse run the following address: http://localhost/cake-project/index.php?XDEBUG_SESSION_START=ECLIPSE_DBGPandKEY=15535036401831 |
# |
Mar 25th 2019, 12:01 |
joopm |
thank you neon |
# |
Mar 25th 2019, 11:59 |
neon1024 |
Which is why it’s a query string |
# |
Mar 25th 2019, 11:59 |
neon1024 |
You just add that query string to the url you’re debugging to start the debugger |