I have ZF2 Application. I want to integrate it into Metronic Template, because it is good looking and professional template.In ZF2 Application there are Controller, Form and Model inside directory: module\application\src\application.
Forms are handled in Form and we just call it from view, that is:
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();
However in "Metronic" forms are handled in view, that is:
<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>
So when I do it like "Metronic", then there are no need to use Form inside ZF2 directory module\application\src\application. Is it against the rules of ZF2? Or how should I do it to integrate this template. Give your suggestions please.