Re: [fw-general] Unusual bug introduced with 1.7.1 in Zend_File.

2008-12-17 Thread Cameron
Yep, $tmpdir is empty. That must mean none of the entire _getTmpDir method works in my environment, at least in the context of $adapter-getFileName(). Looking over the _getTmpDir method it, I find that... if (empty($this-_tmpDir)) { // Attemp to detect by creating a

Re: [fw-general] Unusual bug introduced with 1.7.1 in Zend_File.

2008-12-17 Thread Thomas Weidner
Looking at the code this method tries to detect the temporary path when there is no path set. But it is only called when you do not set a target directory. You could simply prevent this by setting a own path with setDestination() when the detection does not work in your environment.

Re: [fw-general] best method to get people to the error controler/404 header

2008-12-17 Thread Giuliano Riccio
Try this: throw new Zend_Controller_Action_Exception('', 404); Should work ;) Giuliano summertime wrote: I've got my error controller basically working, but I'm stumped on the best way to get people to it from other areas. Say my products controller can't find product123 in the

Re: [fw-general] zend form decorators

2008-12-17 Thread PHPScriptor
Great, I found the problem and the solution. So if anyone is interested in it... here it is: class MyForm extends Zend_Form { // the decorators public $formDecorators = array( 'FormElements', 'Form' ); public $elementDecorators = array( 'ViewHelper', 'Errors',

[fw-general] Session oddity

2008-12-17 Thread spaceage
I'm having a strange issue with Zend_Session where I am assigning a string and an object to the same Session Namespace. The object will persist, but the string won't...I open/start the namespace in init() since I need access to the session data throughout my controller. I then assign the

Re: [fw-general] Session oddity

2008-12-17 Thread spaceage
I should clarify that the string var does get (and persist) the initial assignment of top, but subsequent changes to the var doesn't persist--the value can change within the action, but at the next invocation of the action, the value of the string is still the initial value (top in this case)...

[fw-general] Validation against another field in zend dojo form

2008-12-17 Thread vladimirn
I'v tried solution i found here in forum but it wont work for me. So, my code looks is: $form-addElement('ValidationTextBox', 'password', array ( 'value' = $webmasterData [ 0 ] [ 'password' ] , 'label' = 'Password' , 'maxlength' = 20 , 'regExp'

[fw-general] zend form decorators

2008-12-17 Thread PHPScriptor
I'm totally lost in the zend forms decorators. Hopefully someone can help me... I want to create a form view like this form fieldset legendmain/legend table trtdlabel 1/tdtdfield 1/td trtdlabel 2/tdtdfield 2/td ... /table /fieldset fieldset legendbla

[fw-general] [Dojo][Form][Layout][non MVC] Submit button does nothing

2008-12-17 Thread Nicolas Macquet
Hi everyone, I am encoutering a strange behaviour with Zend_Dojo_Form object. I am adding a section using ZF to an existing application. Therefore new functionnalities are based on the MVC architecture. But I would like that older functionnalities could use some of the advantages of ZF without

[fw-general] Zend Form dynamic content

2008-12-17 Thread KeefTM
Hello, I am looking for some information on using Zend_Form. I want to use Zend_Form to have dynamic drop downs and options based on what a user selected before. I am re-writing an app, so I can not change this behavior too much. Let me give you a very brief example of how the form used to work,

[fw-general] Zend Form Select Box, use array values as value=

2008-12-17 Thread maxarbos
Hello, i am building a zend_form that has a select box in it. The values for the select box come from an array such as: array( 'a' = 'First', 'b' = 'Two'); I want the values and the visible label of the select box to be the values of the array such as: option value=FirstFirst/option option

Re: [fw-general] Best practice to create sidebar with a couple of content blocks

2008-12-17 Thread Ralf Eggert
Hi Matthew and Vincent, so, the placeholder view helper seems to be the first choice at the moment. I will have a closer look into that. Thanks for your comments. Best regards, Ralf

[fw-general] Zend Framework for openSUSE

2008-12-17 Thread Graham Anderson
Greetings list, I've just built some rpm packages for openSUSE to be hosted on the openSUSE build service. There are packages for openSUSE 10.3, 11.0 and 11.1 Installation instructions and details are on the wiki as follows. Please note the separate packages and instructions for APC/memcache

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

2008-12-17 Thread Thomas Weidner
getValue() receives the file. And you add the filter afterwards in your code... But as the files are already received you can not apply the filters. The files are already there so a later receive would not receive the files again. Greetings Thomas Weidner, I18N Team Leader, Zend Framework

Re: [fw-general] Insert HTML / JS in to middle of a zend_form

2008-12-17 Thread Bart McLeod
you will need a decorator on your first element, with placement set to 'append' or a decorator on the second element, with placement set to 'prepend'. There is a lot on decorators in the manual and on devzone. Bart maxarbos schreef: I have been through a number of examples, but dont think I

[fw-general] OT: Zend Framework logo in eps format

2008-12-17 Thread Thorsten Suckow-Homberg
Hey there, I'm preparing for a launch party and need to get some t-shirts ready. I'm looking for the ZF logo in a scalable format but haven't found any. Someone knows if it exists? Regards Thorsten

[fw-general] View Helpers or Three Step View

2008-12-17 Thread Bagus Nugroho
Hi All, If I have view script like this .phtml --- // other code // --- code that will be used on several view scripts ? if(!empty($this-data)): ? ? foreach($this-data as $v):? div class=span-17 list-project span class=pr-title?= $v-title ?/spanbr

[fw-general] Dependant dropdown lists in a form using FilteringSelect and Dojo

2008-12-17 Thread Moustapha Boulgoudan
Hi all, I want to implement a dependant dropdown lists for a FilteringSelect elements using Dijit widgets and Ajax in a form. And I can't figure out how to do this. When we choose an item on one dropdown list, the other list should be updated automatically by fetching the database (using Ajax).

Re: [fw-general] Zend Form Select Box, use array values as value=

2008-12-17 Thread Brenton Alker
maxarbos wrote: Hello, i am building a zend_form that has a select box in it. The values for the select box come from an array such as: array( 'a' = 'First', 'b' = 'Two'); I want the values and the visible label of the select box to be the values of the array such as: option

Re: [fw-general] quoteOutOf?

2008-12-17 Thread Nicolas Cynober
Thanks, Set magic_quotes_gpc Off helped me out. Matthew Weier O'Phinney-3 wrote: -- Mauricio Cuenca mauri...@informaticos.com wrote (on Thursday, 27 March 2008, 05:20 AM -0700): This post just gets me more confused, because I'm using $db-quote() in almost all my inserts, but when I get

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

2008-12-17 Thread paperogiallo
thomasW wrote: Hy, So the logical way in my opinion would be to call getFileName, change the name according to the primary key of the database by applying the rename filter, and then, as last step calling getValues(). If validation or anything other fails, revert db entry. You could

Re: [fw-general] Zend Form Select Box, use array values as value=

2008-12-17 Thread maxarbos
That worked like a champ! Thanks. Brenton Alker-3 wrote: maxarbos wrote: Hello, i am building a zend_form that has a select box in it. The values for the select box come from an array such as: array( 'a' = 'First', 'b' = 'Two'); I want the values and the visible label of the

Re: [fw-general] Zend Form Select Box, use array values as value=

2008-12-17 Thread Bart McLeod
Thanks for the tip, I did the iterations and your solutions is so much simpler! Bart Brenton Alker schreef: maxarbos wrote: Hello, i am building a zend_form that has a select box in it. The values for the select box come from an array such as: array( 'a' = 'First', 'b' = 'Two'); I want

Re: [fw-general] View Helpers or Three Step View

2008-12-17 Thread Matthew Weier O'Phinney
-- Bagus Nugroho bnugr...@unisemgroup.com wrote (on Wednesday, 17 December 2008, 10:31 PM +0700): Hi All, If I have view script like this .phtml --- // other code // --- code that will be used on several view scripts ? if(!empty($this-data)): ? ?

Re: [fw-general] Zend Form dynamic content

2008-12-17 Thread KeefTM
What I'm doing now is using Zend_Form to create a skeleton of the form with placeholders, then using unobtrusive javascript to hide those fields. Then, when the AJAX response is received those elements are populated and shown. If there's a better way, please let me know. Thanks! KeefTM

[fw-general] Confused about decorators

2008-12-17 Thread vibhor singh
Hi all, I have just begun learning ZF. I have come across Decorators and am finding a bit difficult to grasp it. My question is where I need to put my new decorator class in the project folder. It looks like the following: vQuick -application

RE: [fw-general] Confused about decorators

2008-12-17 Thread vibhor singh
Just to add I am getting the following error: Message: Plugin by name 'Composite' was not found in the registry; used paths: My_Decorator_: My/Decorator/ Zend_Form_Decorator_: Zend/Form/Decorator/:Zend/Form/Decorator/ _ From: vibhor singh [mailto:vib...@pivisions.com] Sent: