Ich habe ZF2 Anwendung. Ich möchte es in Metronic Template integrieren, weil es gut aussieht und professionelle Vorlage. In ZF2 Anwendung gibt es Controller, Form und Model innerhalb des Verzeichnisses: module \ application \ src \ application.Integrieren Metronic Vorlage in ZF2 Anwendung
Formulare in dem Formular behandelt werden und wir es nur aus Sicht nennen, das heißt:
echo $this->form()->openTag($form);
echo $this->formLabel($form->get('email'));
echo $this->formElement($form->get('email'));
echo $this->formLabel($form->get('password'));
echo $this->formElement($form->get('password'));
echo $this->form()->closeTag();
jedoch in "Metronic" Formularen werden im Hinblick behandelt, das heißt:
<form class="login-form" action="index.html" method="post">
<div class="form-group">
<label class="control-label visible-ie8 visible-ie9">Username</label>
<div class="input-icon">
<i class="fa fa-user"></i>
<input class="form-control placeholder-no-fix" type="text" autocomplete="off" placeholder="Username" name="username"/>
</div>
</div>
<div class="form-group">
<label class="control-label visible-ie8 visible-ie9">Password</label>
<div class="input-icon">
<i class="fa fa-lock"></i>
<input class="form-control placeholder-no-fix" type="password" autocomplete="off" placeholder="Password" name="password"/>
</div>
</div>
</form>
Also, wenn Ich mache es wie "Metronic", dann ist es nicht notwendig, Form in ZF2-Verzeichnismodul \ application \ src \ application zu verwenden. Verstößt es gegen die Regeln von ZF2? Oder wie soll ich es machen, um diese Vorlage zu integrieren? Gib bitte deine Vorschläge.