A good way is to create a model that has a method that does the validation.
In the controller you could handle the request this way:
public function saveAction()
{
if (!$this-getRequest()-isPost()) {
return $this-_helper-redirector('index');
}
if (false ===
i think u misunderstood me. i meant that with Doctrine 2 i can use
$classLoader = new \Doctrine\Common\ClassLoader('Doctrine\ORM',
realpath(__DIR__ . '/../../lib'));
to tell the class loader to look for classes under the Doctrine\ORM
namespace under a path. how do i do the same in Zend
jiewmeng wrote:
to tell the class loader to look for classes under the Doctrine\ORM
namespace under a path. how do i do the same in Zend Framework?
With Zend Framework, you only need to give the autoloader your namespace and
you are good to go.
autoloaderNamespaces[] = Doctrine
Hi,
I'm very new in zend framework and web developing. I'm currently writing a
zend_form for a registration page of a web site.
Here is my code for adding a text element for email address:
http://pastie.org/1060337
In this email field i want to put EmailAddress validator, however there are
many
Has no-one else had this problem?
I'm tempted to report it as a bug, but would prefer some feedback first.
--
View this message in context:
http://zend-framework-community.634137.n4.nabble.com/Zend-Navigation-submenu-item-pointing-to-other-menu-renders-both-submenus-tp2301072p2302359.html
Sent