Call me a perfectionist, but I tend to require that my code looks
beautiful. This includes both my PHP but also my HTML. Since using
cakephp, I've noticed that using helpers outputs excellent semantic
HTML, its just not tabbed\spaced well. A quick look at a view source
would show me:
<form id="MixtapeAddForm" enctype="multipart/form-data" method="post"
action="/mixtape/mixtapes/add/"><div class='taper'><input type="file"
name="data[Mixtape][location]" value="" id="MixtapeLocation" /><label
for="MixtapeArtist">Artists:</label><div class="input"><input
name="data[Mixtape][artist]" type="text" maxlength="225" value=""
id="MixtapeArtist" />
which was generated from the view (in 1.2) as:
echo $form->create('Mixtape', array('action' => 'add', 'enctype' =>
'multipart/form-data'));
echo "<div class='taper'>";
echo $form->file('Mixtape.location');
echo $form->label('Mixtape.artist',"Artists:");
echo $form->input('Mixtape.artist', array('div' => true, 'label' =>
false));
echo $form->label('Mixtape.song',"Song:"); //etc....
which kills off all the whitespace. Is there something (a param) I
need to do in the view to allow the formHelper output to be structured
(\r \t etc) correctly?
cheers,
lm
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake
PHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---