Welcome, Guest. Register Now!
   
Mark Forums Read Mark Forums Read Mark Forums Read


Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 05-23-2008, 07:59 AM
Junior Member
 
Join Date: May 2008
Posts: 5
Default The framework incorrectly output Xhtml form element tags!

Have you noticed that even if you use the "doctype" view helper to set a xhtml 1.0 strict doctype, if you then use Zend_Form to construct forms, form elements are output like this:

<input type="text" name="date" id="date" value="">


that is very strange!
Anyway i resolved by modify by hand the relative view helper file in the zned library but i think this should be resolved in the future
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 05-23-2008, 11:26 AM
Junior Member
 
Join Date: Nov 2007
Location: Elmshorn, Germany
Posts: 9
Send a message via ICQ to t-mow
Default

Had this problem yesterday, too: you have to setup the doctype in bootstrap and then just echo it in your layout.

Bootstrap:
PHP Code:
$view $layout->getView();
$view->doctype('XHTML1_TRANSITIONAL'); 
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 05-23-2008, 01:27 PM
Junior Member
 
Join Date: May 2008
Posts: 5
Default

you are right like this it works!! But the manual colud be more clear on this
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 10:50 PM.