Fwd: About PHP CMS

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



forgot to copy the list on this one, sorry

---------- Forwarded message ----------
From: Nathan Nobbe <quickshiftin@xxxxxxxxx>
Date: Jul 7, 2007 2:13 PM
Subject: Re:  About PHP CMS
To: Kelvin Park <kelvinpark86@xxxxxxxxx>

On 7/7/07, Kelvin Park <kelvinpark86@xxxxxxxxx> wrote:
Can XSLT be used to separate CSS/XHTML/PHP/AJAX completely?
yes

XSLT is used to map one set of XML to another set of XML, thats what the
transform is all about.
ive only been working with it for a while so im not that good yet, but what
i do is build up XML data in
PHP; that XML maps to points in an xsl file.  then i use the PHP XSLT
functions <http://www.php.net/manual/en/ref.xslt.php> to render XHTML
by combining the XML data and the xsl file.  the XHTML is what gets sent to
the browser via echo.
you can use tools in PHP like SimpleXML and DOM to build up an XML
document.  i can send you a sample
if youd like.

also, if you want to separate javascript from PHP and XHTML thats really a
different issue.  in order to do that
you need to link in javascript externally via the <script> tag instead of
using inline scripts.  you may want to
look at some frameworks like prototype <http://www.prototypejs.org/>,
scriptaculous <http://script.aculo.us/> and jquery <http://jquery.com/>.
but that is another universe altogether.

-nathan


On 7/7/07, Kelvin Park < kelvinpark86@xxxxxxxxx> wrote:

Can XSLT be used to separate CSS/XHTML/PHP/AJAX completely?
Do you use XSLT with XHTML on a same file?
It seems like XSLT is derived from XML.

On 7/7/07, Nathan Nobbe <quickshiftin@xxxxxxxxx> wrote:
>
> to keep html separate from php you can also look at XSLT.
> ive heard good and bad things about smarty.
>
> -nathan
>
> On 7/6/07, Davi < davividal@xxxxxxxxxxxxxxxx > wrote:
> >
> > Em Sexta 06 Julho 2007 21:24, Kelvin Park escreveu:
> > > Is it possible to have PHP code completely separate from the HTML
> page
> > that
> > > needs to be completely dynamic? (That's how ASP.NET sort of works I
> > think).
> > > If this is possible, HTML CODE, PHP CODE, AND THE CSS CODE can be
> > > completely separate, increasing the clarity of all the source code.
> > >
> >         Yes.
> >         Take a look at Smarty. :-)
> >
> > http://smarty.php.net
> >
> > > My second question is:
> > > Is it more efficient to always code OOP PHP then just simple
> functions
> > here
> > > and there?
> >
> >         How big is your project?
> >         If you're talking about a personal visit counter, run away
> OOP.
> >         If you're talking about a really big project (And yes, CMS
> _is_ a
> > big
> > project), go ahead and use OOP.
> >
> >         OOP is better to mantain... :-)
> >
> >         HTH
> >
> > --
> > Davi Vidal
> > davividal@xxxxxxxxxxxxxxxx
> > davividal@xxxxxxxxx
> > --
> > "Religion, ideology, resources, land,
> > spite, love or "just because"...
> > No matter how pathetic the reason,
> > it's enough to start a war. "
> > --------------------------------------------------------
> > Por favor não faça top-posting, coloque a sua resposta abaixo desta
> linha.
> > Please don't do top-posting, put your reply below the following line.
> > --------------------------------------------------------
> >
> >
>



[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux