[fw-general] Escape characters in stored data

2009-06-13 Thread Jalil F.
I have a simple form and save some text to the database. I use code like the following in my form: $names = new Zend_Form_Element_Text('names'); $names-setLabel('Names:') -setRequired(true) -addFilter('StripTags') -addFilter('StringTrim')

Re: [fw-general] How to remove layouts?

2009-06-04 Thread Jalil F.
::startMvc instance? On Thu, Jun 4, 2009 at 12:56 AM, Jalil F. jalil.feg...@gmail.com wrote: I installed some example code which is using layouts but like to remove the layout for now. I did some search and found: $this-_helper-layout-disableLayout(); that I can call from

[fw-general] How to remove layouts?

2009-06-03 Thread Jalil F.
I installed some example code which is using layouts but like to remove the layout for now. I did some search and found: $this-_helper-layout-disableLayout(); that I can call from a controller action to disable layout but I like to be able to remove the layout use from the whole app. I tried

[fw-general] Duplicate HTML Tags

2009-05-31 Thread Jalil F.
It seems Zend is adding some default HTML tags like head and title when rendering a view. How can I disable this? I already have these tags set in my phtml file. Thanks, -J -- View this message in context: http://www.nabble.com/Duplicate-HTML-Tags-tp23809662p23809662.html Sent from the Zend

[fw-general] How to get row ID back when using Save

2009-05-29 Thread Jalil F.
I am very new to Zend. I have a Books model object that extends Zend_Db_Table. In my controller, I create a new row like this: $t = new Books(); $row = $t-createRow(); $row-name = $form-getValue('name'); $row-save(); My table

[fw-general] How to get list of all selected CheckBoxes

2009-05-29 Thread Jalil F.
I have a form using Zend_Form and want to create several Zend_Form_Element_Checkbox elements on this form that are created dynamically. I like to get an array of all selected Zend_Form_Element_Checkboxes in my view after the form is posted. Is this possible? If not, what is the best way to do

Re: [fw-general] How to get list of all selected CheckBoxes

2009-05-29 Thread Jalil F.
vince. wrote: Do you want to do it on the client side (JS) or server side? On Fri, May 29, 2009 at 7:32 PM, Jalil F. jalil.feg...@gmail.com wrote: I have a form using Zend_Form and want to create several Zend_Form_Element_Checkbox elements on this form that are created dynamically

Re: [fw-general] How to get list of all selected CheckBoxes

2009-05-29 Thread Jalil F.
it. -Jalil On Fri, May 29, 2009 at 9:34 AM, Vadim Gabriel vadim...@gmail.com wrote: Do you want to do it on the client side (JS) or server side? On Fri, May 29, 2009 at 7:32 PM, Jalil F. jalil.feg...@gmail.com wrote: I have a form using Zend_Form and want to create several

[fw-general] How to find my Zend Version

2009-05-16 Thread Jalil F.
How do I find out the current version of Zend I am running? Also, if I install 1.8, would that work with an older version? I am pretty new to Zend and appreciate the help. Thanks, -J -- View this message in context: http://www.nabble.com/How-to-find-my-Zend-Version-tp23574907p23574907.html

[fw-general] Question on RewriteRule

2009-04-20 Thread Jalil F.
Currently, I have: RewriteRule !\.(js|ico|gif|jpg|png|css|htm|html)$ index.php in my htaccess file. I would like to run an exact parallel staging environment under mysiteURL/Stage. How should I modify this rule for this to happen? Thanks for your help, -Jalil -- View this message in