Separate HTML from the PHP code

Paul Spencer pspencer at DMSOLUTIONS.CA
Thu May 19 06:30:13 PDT 2005


<plug>

And that, in effect, is what Chameleon does for mapserver.  Application
design can be accomplished (and is on a daily basis) by web-savvy
developers with no php knowledge, while the functionality is controlled
by php-mapscript developers with no design sense ;)

http://chameleon.maptools.org/

</plug>

Cheers

Paul

Pierre GIRAUD wrote:
> You'll have to use what is called "templates".
> To be simple, a template is a HTML like file in which some variable
> parts are parsed by a php code.
>
> Smarty, phpLib or EasyTemplate (http://et.geomaticien.com/) are some
> template engines.
> You'll find more information and examples on each documentation.
>
> The best reason to use templates (seperate HTML from the php code) is
> to get the design and the programming code well seperated. That way
> you will easily be able to confide the look of your website to a
> designer that don't understand anything to php coding.
>
> Regards
>
> Pierre GIRAUD
>
> On 5/19/05, Philippe Gondek <philippe.gondek at gmail.com> wrote:
>
>>Hi list,
>>
>>I have made any tests with PHP/Mapscript, and I want now to begin with
>>a good base. I read it's better to separate HTML from the PHP code.
>>But I don't know how.
>>
>>Must I have the fucntion in my .php file and call this fucntion in my
>>.phtml file with the tags <? ?>    ???
>>
>>Can I have a little example with one function...
>>
>>Thank you...
>>
>
>
>

--
+-----------------------------------------------------------------+
|Paul Spencer                           pspencer at dmsolutions.ca   |
+-----------------------------------------------------------------+
|Applications & Software Development                              |
|DM Solutions Group Inc                 http://www.dmsolutions.ca/|
+-----------------------------------------------------------------+



More information about the MapServer-users mailing list