Search found 239 matches

by jschoenwolf
Wed Feb 01, 2012 7:01 am
Forum: Zend Framework
Topic: Zend Form
Replies: 4
Views: 1311

Re: Zend Form

1. how can i put validation to a text-box that will only allow "POSITIVE VALUES INTEGER FROM AN INTERVAL [0;n]"?
make your own validator.
by jschoenwolf
Wed Feb 01, 2012 7:00 am
Forum: Zend Framework
Topic: Zend Form
Replies: 4
Views: 1311

Re: Zend Form

vicius_ro wrote:about 2nd question i find a tag in html thats maybe help:

<input type="number" name="quantity" min="1" max="5" />

can i make this type of form element in zend?
you should be able to just use addAttribute() or addAttributes(array())
by jschoenwolf
Tue Jan 31, 2012 12:31 pm
Forum: Zend Framework
Topic: css conflict in ZF?
Replies: 3
Views: 1116

Re: css conflict in ZF?

I don't know why but i have to enable compatibility mode on IE 9 to view my pages. FireFox and chrome work fine and the page validates against Xhtml 1.0 strict and has only one error for CSS 2.1 (in blueprint.css) and validates completely against CSS 3.0
by jschoenwolf
Sun Jan 29, 2012 7:50 am
Forum: Zend Framework
Topic: Uncaught exception 'Zend_Db_Table_Exception'
Replies: 2
Views: 1239

Re: Uncaught exception 'Zend_Db_Table_Exception'

I'm gonna need the code for Application_Model_SettingStoreMapper and _initSettingStore() from your bootstrap. It looks like you might be trying to use Db resources in your bootstrap before they available to the application. At this point this is only a guess.
by jschoenwolf
Sun Jan 29, 2012 7:35 am
Forum: Zend Framework
Topic: Call a Action from layout
Replies: 4
Views: 1579

Re: Call a Action from layout

there is any number of ways to do this, if you would provide some additional context and maybe some example code you may have better luck getting an answer.
by jschoenwolf
Thu Jan 26, 2012 1:53 pm
Forum: Zend Framework
Topic: Catch Exception thrown in preDispatch
Replies: 6
Views: 2781

Re: Catch Exception thrown in preDispatch

try:

Code: Select all

throw new Zend_Controller_Action_Exception($msg);
or:

Code: Select all

throw new Zend_Controller_Exception($msg);
one of those should work....I hope.
by jschoenwolf
Thu Jan 26, 2012 1:43 pm
Forum: Zend Framework
Topic: editing user details
Replies: 2
Views: 1344

Re: editing user details

Change the submit button: $formObj->submit->setLabel('new label'); This kind of thing is not really what you want to do: $id=$this->request->getPost("id"); I would suggest this instead: $id = $formObj->getValue('id'); I would also suggest that most of this controller be moved to your model, take thi...
by jschoenwolf
Thu Jan 26, 2012 1:09 pm
Forum: Zend Framework
Topic: editing user details
Replies: 2
Views: 1344

Re: editing user details

the code you want in your controller is:

Code: Select all

$form->removeElement($name);
by jschoenwolf
Sat Jan 21, 2012 3:12 pm
Forum: Zend Framework
Topic: Routing problem using the Zend Controller Router
Replies: 3
Views: 1657

Re: Routing problem using the Zend Controller Router

Not easy. You'd have to write your own router, by extending Zend_Controller_Router_Abstract.
I hope I'm wrong, but I don't think I am.