When I was playing around with Joomla! source code, I saw such as code (or similar to this one, I am not pretty sure since it was a while back then):
<juc:place name="module" some-other-attributes/>
I am not telling it was exactly like the one above but I was surprised actually when I saw Asp.NET-like custom tags:
<asp:Label ID="lblLabel" runat="server"/>
I am now wondering how to accomplish same thing or similar in PHP like they did in Asp.NET. Is there any library for framework for this or so forth?
Do I need to write a parser which parses my php code and searches for such tags and replaces them with what's corresponding like Asp.NET replaces <asp:Label/>
with <span/>
My personal preference:
I like what Asp.NET did by separating code-behind from design-view or html from c# code. And using asp.net's server-side controls enable developer to access html control from code-behind easily. It sounds like separation of concerns and I am wondering if there is any project or way which has done same thing already?