![Antiguo](http://static.forosdelweb.com/fdwtheme/images/statusicon/post_old.gif)
16/03/2009, 08:39
|
| | Fecha de Ingreso: diciembre-2005 Ubicación: Barcelona
Mensajes: 1.428
Antigüedad: 19 años, 1 mes Puntos: 15 | |
Respuesta: Usa componentes de ZF aislados? no me funciona:
solo tengo la carpeta Zend con la libreria dentro y
este archivo: index.php
Código:
<html>
<head>
</head>
<body>
<?php
include('Zend/Form.php');
$form = new Zend_Form(array(
'method' => 'post',
'elements' => array(
'name' => array('text', array(
'required' => true,
'label' => 'Name',
'validators' => array('alpha')
)),
'age' => array('text', array(
'required' => true,
'label' => 'Age',
'validators' => array('digits')
)),
'submit' => array('submit', array(
'label' => 'Send'
))
),
));
$this->view->form = $form;
?>
</body>
</html>
que está faltando |