I have a serious problem regarding the PHP Application Server model (it may be extended to any Server Model) and templates.
When I attempt to create a new website (Web application), First of all I create a Template to handle the design of the destination web project I plan.
As you know the template is divided into Editable region and other region (Uneditable).
As a logical idea, any thing will have any effect on the web applications pages, should be added to the template. This will allow this thing to be atuomatically inherited to the pages generated from that template. An example about this, The making of user authentication, or a dynamic text that show the total number of registered users, ...etc.
Any code that leads to things like described above will be inserted in the template by DreamWeaver in a region above <HTML> tag. Well!.
When I started to make pages from the template everything goes well , until I decided to make a change on the template. Dreamweaver tells me that any modification outside <HTML> tag will be discarded and will be not applied to pages of this template, and I should add a tag <!-- templateInfo bla bla outSideHTML --> in the head region. Then dreamweaver tells me if I update these pages some data of the pages will be lost. and a lot of silly things.
The question is:
How can I make a scripts in any time at any uneditable (including outSideHTML) region of the template to allow it to be updated to all pages which that template is the parent without these silly things.
don't use dw's templates for server-side scripts, dw's templates are mainly for easy updating of static web pages
use php to do templates, like phpbb's template system or smarty's template system, or xml/xsl parsed server-side (requires php to be compiled or configured with xml and xsl extensions)
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)