[fw-general] Inserting Zend_Form_Elements into a Zend_Form

2009-07-15 Thread Mary Nicole Hicks
I am finding the Zend_Form hard to use. Currently all form elements usable in a Zend_Form have "order" property that specify an integer. This number is used to sort the form elements. The problem I have is that I have extended the implementation of a form several times. In an extending class, I w

Re: [fw-general] Module Sharing and framework.zend.com

2009-07-10 Thread Mary Nicole Hicks
Mary Nicole Hicks wrote: > > - QUOTE Mary Nicole Hicks - > I think that the Zend framework team needs to add a registry of 3rd party > ZF modules to their site. Just something similar to > https://addons.mozilla.org/en-US/firefox/ would do the job. > - QUOTE END

[fw-general] Module Sharing and framework.zend.com

2009-07-09 Thread Mary Nicole Hicks
I have found that Zend Framework is brilliant, but there are some parts of a website that are just boring to implement. Take login and registration forms for example. I am sure that 80% are very similar. I think that the Zend framework team needs to add a registry of 3rd party ZF modules to their

[fw-general] Memory problems with cyclic/circular references

2009-06-10 Thread Mary Nicole Hicks
Please can someone help me with this. I am using ZF for a long running command line script, but my memory is blowing out (well over 100 MB). My problem is that ZF seems to be full of cyclic/circular references. As these stop objects from being garbage collected, most the object that I use are sti

Re: [fw-general] Do I have to use Zend_Registry, Zend_Locale and Zend_Config if I use ZF?

2009-06-03 Thread Mary Nicole Hicks
jasonistaken wrote: > > On 02/06/2009 11:49 PM, Mary Nicole Hicks wrote: > >> >> When I use Zend_Uri_Http::check($string) >> Which Uses: Zend_Validate_Hostname >> Which Uses: Zend_Validate_Abstract >> Which Uses: Zend_Registry? >> > Well, the

[fw-general] Do I have to use Zend_Registry, Zend_Locale and Zend_Config if I use ZF?

2009-06-02 Thread Mary Nicole Hicks
I like Zf, but I would like to use only some parts of it. I would like to use ZF without having Zend_Registry, Zend_Locale and Zend_Config included into PHP (eg through require_once). Can someone explain to me why ZF is so reliant on Zend_Registry, Zend_Locale and Zend_Config? I have been followi

Re: [fw-general] Creating a dynamic database based Zend_Navigation item?

2009-06-01 Thread Mary Nicole Hicks
Tim Fountain wrote: > > Technically the breadcrumbs helper only needs the current page and its > parents, [...] if the Zend_Navigation data structure could be > cached in a tree like form matching the URL structure, some clever caching > mechanism could just include the bits it needs. But this w

Re: [fw-general] Creating a dynamic database based Zend_Navigation item?

2009-05-29 Thread Mary Nicole Hicks
vince. wrote: > > Hi, > > What's the problem with retrieving the entries from the DB, Assigning them > into a multi dimensional array and passing it into the zend_nagivation? > > The problem is that I can not do this for every navigable page on the site all at once... for every request. 1.

Re: [fw-general] Zend_Cache performance

2009-05-29 Thread Mary Nicole Hicks
enportugal wrote: > > I'm using Zend_Cache to cache all queries from mysql server. > Be aware that MySql can cache queries (if your setup has this turned on) and some queries are quicker than a file based cache (I assume your cache is file based). enportugal wrote: > > Currently I have abou

[fw-general] Creating a dynamic database based Zend_Navigation item?

2009-05-29 Thread Mary Nicole Hicks
Can anyone give me any example on how I could get Zend_Navigation to handle dynamic entries from a database? My current idea is to extend Zend_Navigation_Page_Mvc and overload most of the methods given by Zend_Navigation_Container. I have a route of "/articles/:title" and it would be good to ha

[fw-general] Zend_Cache - Size of SQLite and journal files

2009-04-08 Thread Mary Nicole Hicks
I am using Zend_Cache with SQLite. All the config options are the defaults. My problem is that although my SQLite file (cache.sqlite) is only 73 MB the folder it is in is 1.8 GB. The rest of this space is made up of 80 files. These 80 files come in pairs such as a cache.sqlite-ttobps1yxcgf7ci6bfkc

[fw-general] Unable to parse URL: How to handle hack attempts with ZF

2009-03-24 Thread Mary Nicole Hicks
My site logs are really filling up with this message: [24-Mar-2009 12:39:57] PHP Warning: parse_url(/articles/a-valid-article++GET+http://www.example.com/articles/a-valid-article+%5B0,10277,13354%5D+-%3E) [ function.parse-url function.parse-url ]: Unable to parse URL in /home/username/library/Ze

[fw-general] Form validation versus model validation

2008-12-04 Thread Mary Nicole Hicks
I currently have a form with validation, and no validation on the object I am saving. The problem I have is that I am looking at having many more forms. It would make more sense to me if this validation is done when the object is saved rather than on the forms. Can anyone give an example on how I

[fw-general] Unit testing domain specific controllers

2008-12-04 Thread Mary Nicole Hicks
Can anyone throw me some ideas on ways to unit test domain specific controllers. I have controllers that act slightly differently depending on the domain in the request and I also have some controllers that are only available on some domains. I understand normal unit tests, but any ideas on testi

[fw-general] Captcha needs to be completed multiple times

2008-10-27 Thread Mary Nicole Hicks
I am using Zend_Form_Element_Captcha with ReCaptcha and I have found that I need to complete the Captcha multiple times. When a form is first submitted with the Captcha correct, but another field invalid, the Captcha needs to be re-entered. Is there anyway to have the Captcha form element remembe

[fw-general] Zend Form: Multiple buttons on one line

2008-07-30 Thread Mary Nicole Hicks
This one has me stumped. I am just adding buttons to a form with Zend Framework. Each of these buttons is ending up on a single line. Does anyone know how to get multiple buttons on to one line using Zend_Form? Any example code to do this? -- View this message in context: http://www.nabble.com/

Re: [fw-general] Zend_Form_Element_Hash, Salt and AJAX

2008-07-15 Thread Mary Nicole Hicks
Stanislav Malyshev wrote: > > Well, here it might be a problem, since right now hash element is built > so that it stores only one token. > Thank you. This has been a great help. -- View this message in context: http://www.nabble.com/Zend_Form_Element_Hash%2C-Salt-and-AJAX-tp18455432p184793

[fw-general] Zend_Form_Element_Hash, Salt and AJAX

2008-07-14 Thread Mary Nicole Hicks
I seem to be having a lot of problems with the Zend_Form_Element_Hash component of the Zend Framework for PHP. Salt How is the salt ment to be used? What is the best practice when using the salt so that: - The salt of 2 forms on different pages do not collide - The same form can be rendered 2 t

[fw-general] Organising Routes

2008-06-19 Thread Mary Nicole Hicks
I currently have a few routes configured and these work well. I also use the URL View Helper to create urls. The problem with the URL View Helper is that I always need to specify the correct route to use. This means specifying it as a string. Does anyone have a method of organising all these rout