PhpCMS overwiew
From phpCMS
This article needs additional content.
Please remove this message from the page after completing the article and make also sure that the page has been removed from the listing on the needs content-page.
I added some basic content to this page, but maily keywords and hints which content should be added to this page. If you want to support the phpCMS project, please revise this page and add the missing content
[edit] phpCMS overview
The chapter should give a rough overview of how phpCMS works and how the different resources are combined to the final output page. To achieve this, a very simple "hello world" example is used, and to keep everything as simple as possible only some very basic features of phpCMS are used. A more detailed description of the used and more advanced functionalities can be found on the subsequent pages in this documentation.
[edit] Hello world example
please add here a small "hello world" example with one project file, one template file and one content file. The template file should look something like
<html>
<head>
<title>{TITLE}</title>
</head>
<body>
{CONTENT}
</body>
</html>
and the "hello_world.html" content file like
{PROJECT}
./template/example.ini
{TITLE}
Hello world example
{CONTENT}
Hello world!
Then explain, how these three files work together, and what happens if a user calls the "hello_world.html" content file via a web browser. Keywords:
- Webserver redirects the call to the phpCMS parser
- phpCMS parser reads the hello_world.html content file
- phpCMS parser reads the {PROJECT} field from the content file to determine the associated projct file
- phpCMS parser reads the ./template/example.ini project file
- phpCMS reads the path to the template file from the project file
- phpCMS reads the template file ./template/example.tpl
- phpCMS replaces all placeholders in the template file with the content in the fields of the content file
- phpCMS sends the assembled page to the user
The next step would be to add a tag-file. For example the content field in the hello_world.html content file could be extended to
{CONTENT}
Hello world!
[smiley]
and the tag file could then replace [smiley] with a <img> tag which includes a smiley graphic.
Again explain, what happens now and that phpCMS reads the path to the tag file from the project file. Then it reads the tag file and the phpCMS parser replaces all tags with their replacement before sending the content to the user
Step three would be to include a very simple menu with only two menu items (nothing hierarchical) and therefore only two content pages. The menu template should be very easy, only .normal and .active should be used.
Main Page: User Documentation MainPage
« Previous Page: User Documentation MainPage | Top Page: User Documentation MainPage | Next Page: phpCMS Features »

