Jump to content

Looking for a web framework.


mrxtravis

Recommended Posts

I need a web framework.

I would like to create a small application that will be a CMS for Bands.  The idea is that many bands will use the CMS and therefor there will be many faces to the application.  I would like to make the task of creating HTML as painless as possible and I would not like to put any constrains on how they would like to design it.

Many frameworks are MVC frameworks.  An action is defined, such as "show upcoming gigs", the backend retrieves the upcoming gigs and forwards to a view were the upcoming gigs are displayed.  What's to say that a designer wants upcoming gigs and past gigs and news on the same page?  If that were to happen, a new action "show upcoming gigs, past gigs and news" would have to be created.  I want to avoid the designer to have to think about defining actions or to contact me to define the action for their website.

What I want is sort of a dynamic action templating system.  There is a project called open-realty that does this type of thing, however it is application specific and not a framework.  The idea is that some template tag in the html file triggers the act of retrieving data.

Here is an example of what I am thinking (please ignore the horrible html):
[code]
<html>
<head><title>News and Gigs Page</title></head>
<body>

<div id="leftColumn">
<table><tr><td>Venue</td><td>Date</td></tr>

  {upcomingGigs}            //this would dynamically load the upcoming gigs and iterate through them
  <tr><td>{upcomingGig.venue.name}</td>  //this might even dynamically load the venue
  <td>{upcomingGig.date}</td></tr>   
  {/upcomingGigs}
  {pastGigs}                //this would dynamically load the past gigs and iterate through them
  <tr><td>{pastGig.venue.name}</td><td>{pastGig.date}</td></tr>
</table>
</div>

<div id="rightColumn">
{newsItems(5)}    //this would dynamically load the past 5 news items and iterate through them
  <tr><td>{newsItem.date}:{newsItem.content}</td></tr>
{/news}
</div>
</body>
</html>
[/code]

Any recommendations or thoughts would be appreciated.
-Trav




Link to comment
https://forums.phpfreaks.com/topic/28149-looking-for-a-web-framework/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.