Welcome Guest, Not a member yet? Register   Sign In
How to encapsulate view-components?
#1

Hi,

I have two different views, both of them should display different tables. But both tables should be embedded within a common „tableFrame“ that has some JS-functionality.

Usually I would do that with different subTableClasses that extend a superTableClass (classical OOP).

Is there a way to say something like:
<div class=„tableFrame“><?php get_view_part(...)?>
<table> bla ... </table>
</div>

U know what I mean? :-)

Thanks in advance!

jellix
Reply


Messages In This Thread
How to encapsulate view-components? - by jellix - 08-30-2019, 08:47 AM



Theme © iAndrew 2016 - Forum software by © MyBB