Re: [fw-general] Toggle file-upload element with uploaded image

2008-10-02 Thread gerardroche
What i do is display the file upload element and if an image is already uploaded it will display the image and a notice above the file upload element with "if you upload a new image it will replace the current one". You can use the populate method to do the logic. There's probably a better way b

Re: [fw-general] Toggle file-upload element with uploaded image

2008-10-02 Thread Edward Haber
Definitely view logic. Good call. Still I'm uncertain though because I'm working with an extended Zend_Form class. Perhaps I should make a custom Form Element? Or a custom Form Decorator? Or use the view helper decorator for just that element? I'd love to hear the Zend best practice take on

Re: [fw-general] Toggle file-upload element with uploaded image

2008-10-02 Thread Matthew Lurz
Sounds like view logic to me and so I would add a conditional in the view script. Edward Haber wrote: > > I have a form that I want offer an image upload form element on. This > has worked great using Zend_Form_Element_File. The upload works fine. > What is the recommended way to have the u

Re: [fw-general] Remote authentication

2008-10-02 Thread Joseph Crawford
Have fun doing that. You need to find a SSO (Single Sign On) solution. If you look at a beast like Google you will see that even their seperate domains redirect to a sub-domain such as mail.google.com This keeps the session cookie at one domain *.google.com There are solutions out there bu

[fw-general] Remote authentication

2008-10-02 Thread José de Menezes Soares Neto
Hello my friends, I have two sites: *www.sitea.com* *www.siteb.com* I would like to authenticate the user only at *www.sitea.com* and he will have access to *www.siteb.com*. At *sitea*, if user is not logged in, it showns sign up form, otherwise it shows "logged with success" just for sinalizat

Re: [fw-general] Passing custom options to findManyToManyRowset

2008-10-02 Thread Bill Karwin
Bill Karwin wrote: > > If you need options to be in effect, you can either build those into the > class definition for your related table, or else you can forget about > table-relationships methods and instead instantiate tables yourself. > Actually, I have to correct myself. There is a way t

Re: [fw-general] Passing custom options to findManyToManyRowset

2008-10-02 Thread Bill Karwin
mbneto wrote: > > I have custom classes that extend Zend_Db_Table_Abstract for which I pass > aditional parameters besides the ones needed by Zend_Db_Table_Abstract > (the > $db). I am using a findManyToManyRowset and I could no find a way to > pass > those extra parameters to the new created

[fw-general] Introducing Zend_Paginator_Adapter_TableSelect

2008-10-02 Thread Jurriën Stutterheim
Hi all, A few minutes ago I committed a new adapter for Zend_Paginator: Zend_Paginator_Adapter_TableSelect. As you would suspect, judging by the name, this adapter specializes in dealing with Zend_Db_Table_Select objects. The result of this specialization is that this new adapter is able

Re: [fw-general] Newbie Question on Directory Structure

2008-10-02 Thread Nilesh Govindrajan
Check out the Zend Framework quickstart. It gives you .htaccess configuration when using Standard Router. On Thu, Oct 2, 2008 at 8:23 PM, Michael Miller <[EMAIL PROTECTED]>wrote: > I have that in the class > AnotherController from above. In that class there is an action called > indexAction. I

Re: [fw-general] Datagrid in Zend Framework

2008-10-02 Thread Tobias Gies
Wow, very cool stuff! I beg you, please create a ZF proposal :-) Best regards Tobias 2008/10/1 zsamer <[EMAIL PROTECTED]> > > here you have my own implementation: > http://code.google.com/p/zend-framework-datagrid/ > > soon I'm going to translate to English. > > > Filipe Carvalho wrote: > > > >

Re: [fw-general] Datagrid in Zend Framework

2008-10-02 Thread Juan Felipe Alvarez Saldarriaga
Hey!, Excelente :) Why you don't create a zf proposal for it ? or maybe why you don't talk with the Zym Project people, I know that they will going to create a datagrid some day :O ;). - Original Message - From: "zsamer" <[EMAIL PROTECTED]> To: fw-general@lists.zend.com Sent: Wednesday,

Re: [fw-general] Caching backend adapters

2008-10-02 Thread Isaak Malik
Yes, of course there is otherwise this caching adapter would've been a waste of time to implement into ZFW. APC provides the same functionality as file caching, except that you can't load an expired cache. But don't be mistaken, this doesn't mean you can't renew an outdated cache (without it being

[fw-general] Toggle file-upload element with uploaded image

2008-10-02 Thread Edward Haber
I have a form that I want offer an image upload form element on. This has worked great using Zend_Form_Element_File. The upload works fine. What is the recommended way to have the uploaded image replace the upload form if an image exists? I don't need the solution coded, just the direction

Re: [fw-general] Dojo always enabled

2008-10-02 Thread Guillaume Oriol
Thank you Matthew, Your answer solved my problem. - Guillaume ORIOL Sofware architect Technema -- View this message in context: http://www.nabble.com/Dojo-always-enabled-tp19762103p19779597.html Sent from the Zend Framework mailing list archive at Nabble.com.

[fw-general] Passing custom options to findManyToManyRowset

2008-10-02 Thread mbneto
Hi, I have custom classes that extend Zend_Db_Table_Abstract for which I pass aditional parameters besides the ones needed by Zend_Db_Table_Abstract (the $db). I am using a findManyToManyRowset and I could no find a way to pass those extra parameters to the new created classes. If I understand

Re: [fw-general] zend_form multi element validation

2008-10-02 Thread Apsy
For the password match, make your own form and do it as follow: class ChangePassword extends Zend_Dojo_Form { public function init() { $request = Zend_Controller_Front::getInstance()->getRequest(); // Password $password = new Zend_Dojo_Form_Element_PasswordTextBox('pas

Re: [fw-general] Zend_Date: floating times, partial values

2008-10-02 Thread Nilesh Govindrajan
-BEGIN PGP MESSAGE- Version: GnuPG v1.4.9 (GNU/Linux) owGbwMvMwCRor/UvqPLs4WbGNWZJkoZGRkaWJkYWFsaWRiZp6QXp8SW5BW6ZOake TxYsTEwqzs8pLUnNqVQoykzPKNEDAi4urg43FgZBJgY2ViaQIgYuTgGYkSovGObX 9Yfd+O70sEwjd7Vq3Zq9R1/zy0cyLOj+LXBqzeMNqnK/7h/rqwpaHppVvw4A =tzMr -END PGP MESSAGE- On Thu, Oct 2

[fw-general] Zend_Date: floating times, partial values

2008-10-02 Thread Jaka Jančar
Hi! MySQL (and probably others) has the following date/time types: - TIME - DATE - DATETIME - TIMESTAMP They each serve their purpose and are not redundant. Timestamp represents an exact point in time. The others represent floating times, days, or times within days. XML Schema also has

Re: [fw-general] Newbie Question on Directory Structure

2008-10-02 Thread Nilesh Govindrajan
you need a AnotherController class and a public method called indexAction which will be called when you request localhost/myApp/another/ On Thu, Oct 2, 2008 at 11:19 AM, mikemiller991 <[EMAIL PROTECTED]>wrote: > > Hi am trying to get some clarification on directory structures. Here is > what > I