2016 | |||
---|---|---|---|
Mar
18 |
|
answered | How to add a custom file extension that has a dot (blade.php) in NetBeans? |
Mar
4 |
|
awarded | Teacher |
Mar
4 |
|
answered | How can I change the time before the system locks? |
Feb
29 |
|
awarded | Scholar |
Feb
29 |
|
accepted | Listing events in table for each day of the week |
Feb
29 |
|
comment |
Listing events in table for each day of the week Thank you so much for your effort. In the next version we will implement the jQuery solution, I will sleep better at night knowing there aren't 14 foreach's and if's running all day in that view :) |
Feb
28 |
|
comment |
Listing events in table for each day of the week In that case, foreach and if would be in the jQuery? Meaning, table would be statically rendered as is, maybe marked with data-attributes for "addressing" cells, and after DOM load jQuery would foreach $events, test which day they belong to and then populate the cells? |
Feb
27 |
|
awarded | Student |
Feb
27 |
|
comment |
Listing events in table for each day of the week Thank you. Yes, Blade has almost completely the same syntax. It is the same solution, it still boils down to 14 foreach 's and if 's except, as you said, this is easier to maintain. I will wait some more if anyone has a different conceptual approach to avoid having this many loops and conditions. If not, I will mark your answer as most helpful. Thanks.
|
Feb
27 |
|
awarded | Editor |
Feb
27 |
|
revised |
Listing events in table for each day of the week added 103 characters in body |
Feb
27 |
|
comment |
Listing events in table for each day of the week @ethrbunny - Thank you for your comment, I will think about it. The table is already loading via AJAX, but in it's entirety. |
Feb
27 |
|
comment |
Listing events in table for each day of the week @Enrico - I am, but I removed it here to keep it as conceptual as possible. @ foreach and @ if are used. Do you have any other idea that would use some Blade's option that I might not know about? |
Feb
27 |
|
asked | Listing events in table for each day of the week |
Feb
2 |
|
answered | Validation: how to set a field that is not required to 'null' when input is empty |
2014 | |||
Nov
15 |
|
awarded | Informed |