|
|
|
#1 |
|
Messages: n/a
Hébergeur: |
Hi NG!
Just wanted to see what you think of the strictness of Buxa, according to their PHP guidelines: http://www.buxaprojects.com/en/php_c...guidelines.htm In their oppinion stuff like the short PHP init "<?" or inline echo "<?= $var ?>" is forbidden. Do you people code that strict? -- Kind regards, magoo |
|
|
|
#2 |
|
Messages: n/a
Hébergeur: |
At 12:17 AM +0200 9/9/07, magoo wrote:
>Hi NG! > >Just wanted to see what you think of the strictness of Buxa, >according to their PHP guidelines: >http://www.buxaprojects.com/en/php_c...guidelines.htm > >In their oppinion stuff like the short PHP init "<?" or inline echo >"<?= $var ?>" is forbidden. >Do you people code that strict? I do. Cheers, tedd -- ------- http://sperling.com http://ancientstones.com http://earthstones.com |
|
|
|
#3 |
|
Messages: n/a
Hébergeur: |
This one time, at band camp, tedd <tedd@sperling.com> wrote:
> At 12:17 AM +0200 9/9/07, magoo wrote: > >Hi NG! > > > >Just wanted to see what you think of the strictness of Buxa, > >according to their PHP guidelines: > >http://www.buxaprojects.com/en/php_c...guidelines.htm > > > >In their oppinion stuff like the short PHP init "<?" or inline echo > >"<?= $var ?>" is forbidden. > >Do you people code that strict? > > I do. me too, that sort of code is an abomination. Short tags are not portable and should never have been introduced and should not remain in php6 enjoy Kevin -- "Democracy is two wolves and a lamb voting on what to have for lunch. Liberty is a well-armed lamb contesting the vote." |
|
|
|
#4 |
|
Messages: n/a
Hébergeur: |
On Sun, 9 Sep 2007, magoo wrote:
> Just wanted to see what you think of the strictness of Buxa, according to > their PHP guidelines: > http://www.buxaprojects.com/en/php_c...guidelines.htm > > In their oppinion stuff like the short PHP init "<?" or inline echo "<?= $var > ?>" is forbidden. > Do you people code that strict? I don't put PHP in my HTML. I use PHP to build my HTML, using heredoc syntax while doing so. My scripts usually only have a single <?php opening tag and never require any closing ?> tags. Code that contains short open tags or instances of <?= is amatuer in my opinion. -- Greg Donald Cyberfusion Consulting http://cyberfusionconsulting.com/ |
|
|
|
#5 |
|
Messages: n/a
Hébergeur: |
On 9/8/07, Greg Donald <greg@cyberfusionconsulting.com> wrote:
> I don't put PHP in my HTML. I use PHP to build my HTML, using heredoc > syntax while doing so. My scripts usually only have a single <?php > opening tag and never require any closing ?> tags. > > Code that contains short open tags or instances of <?= is amatuer in my > opinion. agreed. i use echo so i can indent my code. inline php/html mix bugs me. although handing off to a templating engine/presentation layer would be even better of course. |
|
|
|
#6 |
|
Messages: n/a
Hébergeur: |
magoo wrote:
> In their oppinion stuff like the short PHP init "<?" or inline echo > "<?= $var ?>" is forbidden. > Do you people code that strict? Yep. If you're using XHTML you have no other option. /Per Jessen, Zürich |
|
|
|
#7 |
|
Messages: n/a
Hébergeur: |
Greg Donald wrote:
> On Sun, 9 Sep 2007, magoo wrote: >> Just wanted to see what you think of the strictness of Buxa, >> according to their PHP guidelines: >> http://www.buxaprojects.com/en/php_c...guidelines.htm >> >> In their oppinion stuff like the short PHP init "<?" or inline echo >> "<?= $var ?>" is forbidden. >> Do you people code that strict? > > I don't put PHP in my HTML. I use PHP to build my HTML, using heredoc > syntax while doing so. My scripts usually only have a single <?php > opening tag and never require any closing ?> tags. I use the PHP/HTML mix - seems to make it easier for me to use apache language-negotiation. My PHP code is language-neutral, my HTML files aren't. /Per Jessen, Zürich |
|
|
|
#8 |
|
Messages: n/a
Hébergeur: |
On Sat, 8 Sep 2007, mike wrote:
> although handing off to a templating engine/presentation layer would > be even better of course. eval() is my favorite templating engine. -- Greg Donald Cyberfusion Consulting http://cyberfusionconsulting.com/ |
|
![]() |
| Outils de la discussion | |
|
|