Andrew7e
Posts: 1
|
| Posted: 12/19/2005, 2:32 AM |
|
Hi
I would like to know more about the mechanics of how you seperate code from the presentation layer in a web based application. I am looking at using Codecharge to do some work using PHP,
I have done all my previous codeing in ASP and a little bit in ASP.net. CodeCharge seperates
the code from the presentation layer, how does the webserver know to link the two pages
together and can this be created manually.
The Codecharge web site gives you no info on this technique. Any info on this or links to pages would help.
Thanks
|
 |
 |
peterr
Posts: 5971
|
| Posted: 12/19/2005, 3:03 AM |
|
There may not be too much that can be described here. It's just the way of writing code. For example you can write ASP code that outputs a Web page via individual commans, like: Response.Write("<b>abc</b>")
While I can do this differently and create an HTML file/page/template that contains "<b>{Label}</b>" and then I can write my ASP code so that it reads that HTML template, replaces {Label} with "abc" and then I can output the whole HTML template to the Web browser using Response.Write(MyHTML). This is what CCS does in regards to ASP, PHP and Perl.
Actually ASP.NET also works in such way, since you can store just the HTML design in ASPX files and separately utilize server controls for coding.
I'm not sure if I understood the 2nd part of your questions but there shouldn't be a difference when linking pages together. The ASP/PHP script would need to display a link to another ASP/PHP script. When using templated approach such link can be a static part of the HTML template, or it can be inserted dynamically into the template.
BTW, templates are defined at http://docs.codecharge.com/studio3/html/UserGuide/TermsAndDefs.html
_________________
Peter R.
YesSoftware Forums Moderator
For product support please visit http://support.yessoftware.com |
 |
 |
|