On Sat, 28 Aug 2004 12:30:48 -0700, Sam Hobbs <[EMAIL PROTECTED]> wrote:
> This is for osCommerce, which is a shopping cart system written in PHP. Many
> of it's pages (the HTML) are not modifiable directly using a WYSIWYG editor,
> which make the content difficult to modify, especially for non-technical
> people. So what I can do is to make a page that is stored as a HTML page and
> then in a separate PHP script add stuff (in this situation, it is left
> and/or right menu columns) using the DOM. Since the system is written using
> PHP, this improvement should also use PHP. I think PHP will do quite well
> using it in this manner yet the system (osCommerce) can be easier to use.

Ah. You should have said this in your first mail (which was
confusing). It now becomes clear. I think what you are looking for is
a template engine, like smarty

http://smarty.php.net/

given a template :
-----
<body>
User Information:<p>
Name: {$name}<br>
Address: {$address}<br>
</body>
-----
and the php code:
----
$smarty = new Smarty;
$smarty->assign('name', 'george smith');
$smarty->assign('address', '45th & Harris');
$smarty->display('index.tpl');
----
I think you can already see what this does. The non-technical people
can edit the pages (as long as they leave the placemarkers for the
output). The PHP-people can edit the code without worrying about the
page layout (as long as the markers are there).

I hope this helps.


(code was taken from http://smarty.php.net/crashcourse.php)



--------
ramil

http://ramil.sagum.net

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to