Re: [PHP] Oputting Forms Within a Class

2007-04-10 Thread CK
Hi, Your suggestion borders the MVC design pattern, which I've used within flash, groovy. Also, the following document illustrated an interesting solution, what are your thoughts? 7. Print form elements' defaults with helper functions.

Re: [PHP] Oputting Forms Within a Class

2007-04-10 Thread Davi
Em Terça 10 Abril 2007 14:49, CK escreveu: > Hi All, > > Experimenting with OOP PHP,please be gentle. Attempting to output a > form within a class: > > From calculator.php: > > "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd";> > http://www.w3.org/1999/xhtml";> > > > Calculator OOP PHP

Re: [PHP] Oputting Forms Within a Class

2007-04-10 Thread Richard Davey
CK wrote: private function buildInt(){ //Form elements omitted for brevity } } ?> This is returned to the browser: "Parse error: syntax error, unexpected '<' in /Users/chris/Sites/php/oop/class.calculator.php on line 20" Your buildInt() function jumps directly from PHP in

Re: [PHP] Oputting Forms Within a Class

2007-04-10 Thread Brad Bonkoski
CK wrote: Hi All, Experimenting with OOP PHP,please be gentle. Attempting to output a form within a class: From calculator.php: "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd";> http://www.w3.org/1999/xhtml";> Calculator OOP PHP From class.calculator.php: buildInt(); }