Greetings Monks,
Im working on adding new features to a database (mysql) driven web application. Im using CGI::Application and HTML::Template, in a MVC architecture.
While looking at the application, I found that there are few 'run-modes', which are common to most of the 'modules', such as:
- View List Screen
- View Create Screen
- View Edit Screen
I plan to avoid coding these common stuffs, by implementing these runmodes/methods, once, in a parent class. The parent class, with the help of an all-knowing model class, introspects the table and gets the data and fill these screens. All CGI's would inherit this parent class and automagically get these run modes.
I have looked at maypole, but unfortunately I cannot expend time on incorporating maypole into the application, yet. Also I have searched cpan, but didnt find any modules that does this job.
Are there any common strategies that I can use for such instances ?
Has any one implemented a similar solution ? (Im sure this is not new, all Im looking for is a diet maypole!)