PHP Framework that still allows HTML web editor development

Not for 'how-to' coding questions but PHP theory instead, this forum is here for those of us who wish to learn about design aspects of programming with PHP.

Moderator: General Moderators

Post Reply
rlangham
Forum Newbie
Posts: 1
Joined: Tue Oct 02, 2007 8:01 am

PHP Framework that still allows HTML web editor development

Post by rlangham »

I am not a HTML expert, so currently use a very nice Web Editor that has a WYSIWYG editor, themes, auto-create navigations bars, etc. Using this I can create some HTML web sites pretty easy. I would like to know start extending these sites using PHP. I would like to be able to still use the web editor for most of the GUI design. I am interested in the PHP frameworks that will still keep view the HTML code (with embedded PHP) in order to still update and modify via the web editor.

So, this probably limits some of the frameworks. For example, Prado uses syntax such as ...

<com:TForm>
<label>...
<com:TTextBox>
</com:TForm>

and Qcodo is like..

<html><body>
<? $this->RenderBegin() ?>
Id: <? $this->ID->RenderBegin() ?>
....

where the code-behind defines the elements as Form and TextBox, etc.

So, here the HTML view of the template would not be recognizable and re-editable.

Interested in people's recommendations of frameworks that keeps the HTML code looking like HTML code, and which ones do not do this so I do not have to review them. I guess may have to lean toward good template support, but would like to have good framework support in other areas also. Also, AJAX support would be definitely a plus.

Thanks,
Ron
User avatar
Kieran Huggins
DevNet Master
Posts: 3635
Joined: Wed Dec 06, 2006 4:14 pm
Location: Toronto, Canada
Contact:

Post by Kieran Huggins »

Definitely keep your views separate.

Use the WYSIWYG editor for design if you must (as long as it outputs clean, valid xhtml + CSS) and then use those as templates.
ev0l
Forum Commoner
Posts: 56
Joined: Thu Jun 21, 2007 1:50 pm

Post by ev0l »

Anything that uses smarty might be better. I do believe you can use the Zend Framework with Smarty.

Personally I am not a big fan of templates. I prefer a clean, flexable, and abstracted way of generating HTML programatically with CSS doing most of the layout, but it seams to me that being able to re-edit a template in an HTML editor like Dreamweaver would be one of the advantages of HTML templates. I don't know why a _lot_ of frameworks sacrifice that for what seams like no gain.
User avatar
Christopher
Site Administrator
Posts: 13596
Joined: Wed Aug 25, 2004 7:54 pm
Location: New York, NY, US

Post by Christopher »

You might want to look into template libraries that use string/regexp functions to replace {tag} style tags.
(#10850)
User avatar
Ambush Commander
DevNet Master
Posts: 3698
Joined: Mon Oct 25, 2004 9:29 pm
Location: New Jersey, US

Post by Ambush Commander »

I've found PHPTal produces very WYSIWYG editor friendly templates (given, however, that you can set arbitrary attributes to elements).
Post Reply