Been a LONG day coding, and I am making basic mistakes and need a gentle pointer. I have spent most of my day creating a fault logging tool on a smartphone for demo purposes at work, and am throwing a simple backend together to admin the reports.
Just doing some testing, and I have the simplest of app.. 2 tables
Fault
Comment
I have done basic views for both, a grid and an item editor.
Comment has a foreign key pointing at Fault, and simply uses the ID of the fault as the foreign id.. so each fault can have multiple comments.
I want to alter the view of the fault item so that it has a grid that shows associated comments.
I am sure its as simple as switching the model in the view.html file for the fault item, and copying the grid from the comments and calling it in the default.php file... but my mind wont work due to lack of sleep thanks to the 4am party next door.
Can someone just advise how I can link this grid in my related item view. Thanks
If I was using my old framework, I would have this nailed as I have done it many times but still not 100% at one with the code generated by J-Awesome-Cook.