RE: Application architecture and separating logic and design

2006-11-12 Thread Gerald Richter
Hi, The init method of the application object is only called once per request, so it will not fit your needs. There are two solutions I see, the first is from your section_news.html and section_poll.html you call the logic at the top, like [- $epapp -> logic_for_news -] This will allow you to c

Application architecture and separating logic and design

2006-11-07 Thread Villu Roogna
Hello,I have set up my EMBPERL_OBJECT_APP file as sort of MVC controller:For example in init I have conditionals like if(basename($req->param->uri) =~ /^index(_eng)?\.html$/) {    Front page logic }In index.html file I have several Execute statements for other templates likeExecute({imputfile => 's