Welcome Guest, Not a member yet? Register   Sign In
Using view_cell - I am not clearly getting how to do it
#6

Thank you for the help, but I am not getting how I should organize my code and I am super confused with the examples  Huh

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
Reply


Messages In This Thread
RE: Using view_cell - I am not clearly getting how to do it - by kcs - 08-31-2023, 01:53 AM



Theme © iAndrew 2016 - Forum software by © MyBB