# |
Jun 29th 2017, 00:41 |
aproapedelune |
uhmmm.. in purchases table i could have the fk to the users and analize and in test_results- purchases_id as fk |
# |
Jun 29th 2017, 00:38 |
savant |
you should somehow tie it back to a purchase |
# |
Jun 29th 2017, 00:38 |
savant |
sure |
# |
Jun 29th 2017, 00:36 |
aproapedelune |
and in test_results i have user_id and analize_id as fk, plus another column for the result? and add the result for each test in a separate row? |
# |
Jun 29th 2017, 00:34 |
else-where |
also check https://github.com/CakeDC/users |
# |
Jun 29th 2017, 00:33 |
savant |
so that an employee can fill in the test results for a user and a user can see them |
# |
Jun 29th 2017, 00:33 |
savant |
and then you can add a test_results table |
# |
Jun 29th 2017, 00:32 |
savant |
so when a user purchases a test, it gets added to their list of purchases |
# |
Jun 29th 2017, 00:32 |
savant |
you can add a purchases table |
# |
Jun 29th 2017, 00:32 |
savant |
with two roles, employee and regular users |
# |
Jun 29th 2017, 00:32 |
savant |
okay so I would add a users table to enable login/logout |
# |
Jun 29th 2017, 00:29 |
savant |
yeah thats fine just having a hard time imagining what you have already |
# |
Jun 29th 2017, 00:29 |
aproapedelune |
i have to create more tables |
# |
Jun 29th 2017, 00:28 |
savant |
feel free to send me screenshots of the app |
# |
Jun 29th 2017, 00:28 |
savant |
i dont see how that stores test results |
# |
Jun 29th 2017, 00:28 |
savant |
thats the only table currently? |
# |
Jun 29th 2017, 00:28 |
aproapedelune |
just name, category and price |
# |
Jun 29th 2017, 00:28 |
aproapedelune |
an user table? so that the employees would be able to create accounts for users and add the test results and the users could see their results after logging in? |
# |
Jun 29th 2017, 00:27 |
savant |
what are the fields for the medical tests table? |
# |
Jun 29th 2017, 00:26 |
aproapedelune |
could you give me an ideea? what can i quickly add so it would be more interesting, but still pretty simple, as I have to finish it in max 12 hours. |
# |
Jun 29th 2017, 00:25 |
aproapedelune |
I need some ideas. My old project was a basic medical lab app : it has only 1 table with the list of medical tests available, searchbar, admin page - with a simple login/logout function (I had only 1 admin who is able to add/edit/delete in the database). |
# |
Jun 29th 2017, 00:21 |
aproapedelune |
:) |
# |
Jun 29th 2017, 00:21 |
aproapedelune |
hello |
# |
Jun 29th 2017, 00:05 |
savant |
hello |
# |
Jun 29th 2017, 00:05 |
humbba12 |
hello |
# |
Jun 28th 2017, 23:17 |
savant |
https://api.cakephp.org/3.4/class-Cake.View.Helper.FormHelper.html#_control |
# |
Jun 28th 2017, 23:17 |
savant |
just searched google for “positive number input html” |
# |
Jun 28th 2017, 23:17 |
savant |
I looked up what the attribute needed to be |
# |
Jun 28th 2017, 23:16 |
savant |
thats just an html5 option |
# |
Jun 28th 2017, 23:11 |
aaronc |
I figured it would go somewhere in the options. Can you point me to where that is located in the manual per chance? |
# |
Jun 28th 2017, 23:10 |
savant |
that will fix the dom bit |
# |
Jun 28th 2017, 23:10 |
savant |
you can set `min => 0` |
# |
Jun 28th 2017, 23:10 |
savant |
in the options array for that form control |
# |
Jun 28th 2017, 23:09 |
slackebot |
I don't mean validation, as I can always check that, but I just don't want them to go into negative numbers in the first place, as it doesn't make sense from a UI perspective. Ideas? |
# |
Jun 28th 2017, 23:09 |
aaronc |
I have a question regarding forms that I can't seem to find in the documentation. I have a field in my form `echo $this->Form->control('radar_velocity');` Which due to my database configuration creates a input of type "number" in the DOM. It also has a perplexing attribute named "step" that is set to "any". The field currently allows users to click the up and down arrows into negative numbers. How do I set the range of what my form will allow |
# |
Jun 28th 2017, 23:04 |
aproapedelune |
you re right, this project was made last year, before red velvet |
# |
Jun 28th 2017, 23:03 |
savant |
you may wish to upgrade your cakephp/chronos version |
# |
Jun 28th 2017, 23:03 |
aproapedelune |
Warning (2): Declaration of Cake\Chronos\Traits\FrozenTimeTrait::setTime($hours, $minutes, $seconds = 0) should be compatible with DateTimeImmutable::setTime($hour, $minute, $second = NULL, $microseconds = NULL) [ROOT\vendor\cakephp\chronos\src\Date.php, line 24] |
# |
Jun 28th 2017, 23:02 |
aproapedelune |
Hey guys, how are you? I realised I probably won t be able to finish my project, so I started to take a look at my old cakephp project. |
# |
Jun 28th 2017, 21:05 |
saeideng |
`acl.ini ` |
# |
Jun 28th 2017, 21:03 |
saeideng |
https://github.com/dereuromark/cakephp-tools/blob/2.x/docs/TinyAuth/TinyAuth.md |