Welcome Guest, Not a member yet? Register   Sign In
Database driven templating system
#2

[eluser]dioony[/eluser]
i started to code such a template-system, but give it up because due to the MVC pattern i decided to have no view-elements in the database... and i think a database driven template system is not very dry. therefore i use a rails-like system: each controller has a folder and each method a view-file...

but if you're looking for something:

maybe you can use the "display_override" method and a hook to replace the expressions... for another project i used the Yield-hook (which i found here) to load various subcontent into a default-layout. there were also some expressions like {content} {menu} {footer} or something like that...

maybe this could help you...


Messages In This Thread
Database driven templating system - by El Forum - 04-16-2008, 05:15 PM
Database driven templating system - by El Forum - 04-16-2008, 06:37 PM
Database driven templating system - by El Forum - 04-17-2008, 08:35 AM
Database driven templating system - by El Forum - 04-17-2008, 11:22 AM
Database driven templating system - by El Forum - 04-17-2008, 11:26 AM
Database driven templating system - by El Forum - 04-17-2008, 11:50 AM
Database driven templating system - by El Forum - 04-17-2008, 12:12 PM
Database driven templating system - by El Forum - 04-17-2008, 01:37 PM
Database driven templating system - by El Forum - 04-17-2008, 01:56 PM
Database driven templating system - by El Forum - 04-18-2008, 11:46 AM
Database driven templating system - by El Forum - 05-03-2008, 08:43 AM
Database driven templating system - by El Forum - 05-03-2008, 11:00 AM
Database driven templating system - by El Forum - 05-04-2008, 03:40 AM
Database driven templating system - by El Forum - 05-04-2008, 08:40 PM
Database driven templating system - by El Forum - 05-06-2008, 02:17 AM



Theme © iAndrew 2016 - Forum software by © MyBB