[fw-general] passing data between pages

2008-12-04 Thread Aniketto
Hi all I am a newbie so following doubt may seem simple thing for you but please help me . In my application I display list of mails in 'maillist.phtml' This page contains info like subject sender and date. Now I want to show subject as a url, on click of witch n new phtml page(detail.phtml) will

Re: [fw-general] [Zend_Form] Zend_Form_Element_File::getValue() is calling Zend_File_Transfer_Http:: receive()

2008-12-04 Thread Laurent Melmoux
Thomas, And what about a flag to switch off this behavior ? I think leaving the developer decide when the save the files fit in the philosophy of the Zend Framework, in term of flexibility. I agree there is several tricks to go around this but it make my code more complicated :( Thomas

[fw-general] unable to disable Dojo

2008-12-04 Thread Guillaume Oriol
Hi, I am facing a problem with Dojo: I set up Dojo to be disabled by default but it is still enabled in my login form. I've put in my bootstrap file those two lines (set up Dojo environment but disable it by default): Zend_Dojo::enableView($view); $view-dojo()-disable(); Then,

Re: [fw-general] Zend_Form + Zend_File_Transfer issue with Zend_Form::getValues()

2008-12-04 Thread Laurent Melmoux
Thomas, see my comments below : Thomas Weidner a écrit : In my opinion this could only occur when you call getValues without the form being rendered. Yes it is exactly when it happen. I'm using a CRUD controller which is, on update, populating the form with value from the db. Then I call

Re: [fw-general] Zend_Form + Zend_File_Transfer issue with Zend_Form::getValues()

2008-12-04 Thread Laurent Melmoux
Well I haven't test the code below It was here for demonstration purpose :) but thanks for your fast answers. What if I overload Zend_Form_Element_File and wraps $content = current($this-getTransferAdapter()-getFileInfo($this-getName(), true)); in a try/catch block would you consider it as a

Re: [fw-general] zend dojo text area- how that work?

2008-12-04 Thread Daniel Latter
I don't have a problem with not being able to press the enter key*, but I too am able to type forever, but only if it's one continuous word ( ie no spaces ), the width setting just gets ignored , and this is even with a HTML docment consisting of ONLY a dojo textarea, Mat, perhaps you can post

[fw-general] Zend_Form Zend_Db html tables

2008-12-04 Thread Markus Hausammann
hi I'm using ZF 1.7 with MVC and I'm relatively new to it. I would like to display likert style questionnaire views (see here for an example: www.markushausammann.ch/downloads/radios.jpg ) The texts (main question, subquestions) are stored in the db. I'm trying to write a generic script

[fw-general] Zend_Form::getTransferAdapter()

2008-12-04 Thread Laurent Melmoux
Hi all, Thomas, I'm going further in my testing of Zend_Form + Zend_File_Transfert and I have to say I'm going too love it, very nice, make things really smooth. But for now I'm facing an other issue : Thomas I saw on your blog

[fw-general] Re: Zend Mailing Lists [All]

2008-12-04 Thread Colin Guthrie
'Twas brillig, and netlynx at 03/12/08 17:33 did gyre and gimble: netlynx wrote: I have been subscribed to the groups here for a while, and I am somewhat versed in pulling rss feeds and atom feeds and storing them in a database. What I am wondering is, is there a feed for these mailing lists

Re: [fw-general] Best Approach for complex site code structure

2008-12-04 Thread Rob Riggen
I'm doing these things on some sites (except maybe the command line calls). The standard Zend Recommended structure works just fine for all of it. I created an MVC controller for the Rest service, as well as one for XML-RPC. I also have a controller specifically for cron jobs that cron tasks can

Re: [fw-general] Best Approach for complex site code structure

2008-12-04 Thread keith Pope
If you need to use cron from cmd line, I would suggest looking at the request object, you can easily make your own that will translate cmd options to request vars that the MVC components can use. 2008/12/4 Rob Riggen [EMAIL PROTECTED]: I'm doing these things on some sites (except maybe the

[fw-general] Setting min and max dates on Zend_Dojo DateTextBox

2008-12-04 Thread mattlorey
Is it possible to set the min and max date constraints on a DateTextBox? I have done it successfully in javascript after creation, but am looking for a way to do it during construction. I have tried a few methods, none of which have worked: During the element creation, within a Zend_Dojo_Form

Re: [fw-general] unable to disable Dojo

2008-12-04 Thread Matthew Weier O'Phinney
-- Guillaume Oriol [EMAIL PROTECTED] wrote (on Thursday, 04 December 2008, 01:38 AM -0800): Hi, I am facing a problem with Dojo: I set up Dojo to be disabled by default but it is still enabled in my login form. 1. I've put in my bootstrap file those two lines (set up Dojo environment but

Re: [fw-general] [Zend_Form] Zend_Form_Element_File::getValue() is calling Zend_File_Transfer_Http:: receive()

2008-12-04 Thread Thomas Weidner
When you are calling getValue or receive you are saying please move the file. It would be nonsense to add a behaviour which does NOT move the file when you want to move the file. With the ZF you need the same amount of lines, 3, as with your solution. I don't see that this should be more

Re: [fw-general] Zend_Form + Zend_File_Transfer issue with Zend_Form::getValues()

2008-12-04 Thread Thomas Weidner
When you are using an own implementation of a view you must also handle is correct. As I said in past... a file element does not have a value... the getValues method was only integrated as simplifications for users of Zend_View. It emulates a value for a displayed element. But Zend_View

Re: [fw-general] Zend_Form + Zend_File_Transfer issue with Zend_Form::getValues()

2008-12-04 Thread Thomas Weidner
Overloading is no problem as you are not changing existing ZF code. As mentioned before, when you change the internals you will not be able to update to a new or bugfix release. It's a neg for you... because when you change the ZF version in some months you will probably not know that you've

Re: [fw-general] Zend_Form::getTransferAdapter()

2008-12-04 Thread Thomas Weidner
No, the transfer adapter is only available on the file element. The form can not handle this. So the proper call would be: $form-file1-getTransferAdapter(); But actually all methods which are available in the transfer adapter have also a proxy in the file element. But this is only true for

Re: [fw-general] Cannot redeclare class Zend_form without opcode caching

2008-12-04 Thread Pieter Kokx
Hi, The problem seems very easy. Make sure that if you are including the Zend/Form.php file, it is included just once. You do that by using require_once. Regards, Pieter Kokx MaakSite.net PHP Developer OldStyle schreef: Hello Community, I turning to you after many hours of head scratching

Re: [fw-general] mssql Database Connection Problem

2008-12-04 Thread shockshell
Hi Bart, sorry for my late reply. Haven't seen you reply until now. Yes, i have used (and still using) the new version of ntwdblib.dll. After removing the '-' from the databasename i can connect to the database. Regards, Marcus Bart McLeod wrote: Have you tried installing the correct

Re: [fw-general] Cannot redeclare class Zend_form without opcode caching

2008-12-04 Thread Ralph Schindler
Hmm, a few things to try: If your application is managing your include_path (which is suggested), try ensuring that you are adding absolute paths to it. For example, if you have had this before: Set_include_path('../library'); Try changing it to this: set_include_path(dirname(__FILE__) .

[fw-general] Re: Re[fw-general] [2]: mssql Database Connection Problem

2008-12-04 Thread shockshell
Hi Andrew, thanks for your answer. With your modified code i can connect to databases with a '-' in the name. Are you a part of the Zend development team? If not you should open an improvement issue within the issue tracker. Regards, Marcus Andrew Bidochko-2 wrote: Hello shockshell, I

[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

Re: [fw-general] Form validation versus model validation

2008-12-04 Thread Julian Davchev
Mary Nicole Hicks wrote: 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

[fw-general] Zend_Net Package?

2008-12-04 Thread A.J. Brown
Hello all, I wrote a library for matching IP addresses, ranges, and networks against eachother with support for subnet masks, CIDR, and IPv6 a few months ago. It's useful for writing IP filters (firewall-esque) and such. It uses bitwise mathematical calculations to do the matching, so it's

Re: [fw-general] Zend_Form_Element and addError function weirdness

2008-12-04 Thread Matthew Weier O'Phinney
-- Terre Porter [EMAIL PROTECTED] wrote (on Thursday, 04 December 2008, 04:23 PM -0500): Hi all, Am I reading what this function does incorrectly? I read it as, set an error message for element, and set the element as invalid or the same as what the comment says. This was reported

RE: [fw-general] Zend_Form_Element and addError function weirdness

2008-12-04 Thread Terre Porter
Well look at that... Re: [fw-general] zend form adderror and isvalid Totally missed it ... Terre -Original Message- From: Matthew Weier O'Phinney [mailto:[EMAIL PROTECTED] Sent: Thursday, December 04, 2008 5:25 PM To: fw-general@lists.zend.com Subject: Re: [fw-general]

[fw-general] Re: Zend_Net Package?

2008-12-04 Thread Justin Plock
A.J. Brown wrote: Hello all, I wrote a library for matching IP addresses, ranges, and networks against eachother with support for subnet masks, CIDR, and IPv6 a few months ago. It's useful for writing IP filters (firewall-esque) and such. It uses bitwise mathematical calculations to do the

RE: [fw-general] Re: Zend_Net Package?

2008-12-04 Thread Terre Porter
Sounds like a very useful class to me also. Terre -Original Message- From: news [mailto:[EMAIL PROTECTED] On Behalf Of Justin Plock Sent: Thursday, December 04, 2008 5:53 PM To: fw-general@lists.zend.com Subject: [fw-general] Re: Zend_Net Package? A.J. Brown wrote: Hello all, I

Re: [fw-general] Zend_Net Package?

2008-12-04 Thread Ralph Schindler
Perhaps you should move this to a proposal so that the community can have a chance to see the proposed api's and features. It looks interesting. I am of a split mind about this one. In one regard, it does look convenient. But in another regard, I'd like to see the value it brings over the net

Re: [fw-general] Zend_Net Package?

2008-12-04 Thread A.J. Brown
Ralph Schindler-2 wrote: Perhaps you should move this to a proposal so that the community can have a chance to see the proposed api's and features. It looks interesting. The Proposal Lifecycle suggests introducing the idea to the community to help refine the idea while working on the

Re: [fw-general] Zend_Net Package?

2008-12-04 Thread Matthew Ratzloff
I'd love to see a proposal and your current work on this, after your CLA is signed (if not already). -Matt On Thu, Dec 4, 2008 at 1:32 PM, A.J. Brown [EMAIL PROTECTED] wrote: Hello all, I wrote a library for matching IP addresses, ranges, and networks against eachother with support for

Re: [fw-general] Zend Mailing Lists [All]

2008-12-04 Thread netlynx
Colin Guthrie-6 wrote: Are you familiar with the concept of News Groups? (NNTP). Hah, well I did write a nntp client library with PHP for a project I started a couple years ago (but shelved as it was more a personal interest more than anything else. So yeah :) Colin Guthrie-6 wrote:

Re: [fw-general] Dijit container example ?

2008-12-04 Thread Superbiji »
Hi... I think i have problem using Zend Layout and Zend Dojo Container.. it only work when placing container codes in View Script but does not work in Layout.. for example I want to enclose $this-layout()-content with Content Pane.. please help 2008/11/26 Matthew Weier O'Phinney [EMAIL

[fw-general] URL creation and data display

2008-12-04 Thread Aniketto
Hi friends, I am currently developing an application using Zend. In this application I am displaying a table with students name on list.phtml. Now I want that each student name should be a url on click of which a detail.phtml page will open which will contain the detaild information of student.

Re: [fw-general] unable to disable Dojo

2008-12-04 Thread Guillaume Oriol
Thank you Matthew for your answer but I don't use Zend_Dojo_Form in my form, neither any Dijit. My form extends Zend_Form. Why would ZF enable Dojo in such a case? Matthew Weier O'Phinney-3 wrote: -- Guillaume Oriol [EMAIL PROTECTED] wrote (on Thursday, 04 December 2008, 01:38 AM -0800):