Thank you for the help, but I am not getting how I should organize my code and I am super confused with the examples
From what you are explaining, should I keep the getBlock($bloc_name) function inside my BlockModel?
From that function I get an array with the values I need to display.
I have just one record coming from the database, so the html inside the file responsible for rendering the html would be something like:
block.php
PHP Code:
<h2>$block['title']</h2>
<div>$block['content']</div>
But what goes then inside the BlockCell.php then? I thought I should there make the call for the record I need, and call for the block.php to render the html. How are you supposed to do this? I am sorry if that looks obvious to you and clearly explained on the documentation... I have been trying to understand it for days and I am not getting there.
Thanks again for your help