[fw-general] rename filter not work correctly

2009-03-03 Thread Jacky Chen
Hi zfer, it seem that the file rename filter not work correctly,it not rename the file when i upload the file first,but it worked when i upload the same file after the first. for example,i add a rename filter that set target to c.jpg,and then upload a file named a.jpg,but the uploaded file would re

Re: [fw-general] rename filter not work correctly

2009-03-03 Thread vadim gavrilov
Seems as it will rename it only if the name of the uploaded file already exists in the directory. Not sure though. On Tue, Mar 3, 2009 at 10:07 AM, Jacky Chen wrote: > Hi zfer, > it seem that the file rename filter not work correctly,it not rename the > file when i upload the file first,but it w

Re: [fw-general] rename filter not work correctly

2009-03-03 Thread Thomas Weidner
Jacky, Your description is quite confusing. When you can give a code example somebody of us could be able see your failure. Greetings Thomas - Original Message - From: "Jacky Chen" To: Sent: Tuesday, March 03, 2009 9:07 AM Subject: [fw-general] rename filter not work correctly

RE: [fw-general] manipulating the window url without a refresh

2009-03-03 Thread Filip Wirefors
dojo.back uses encodeURIComponent() internally. To dedode you can use decodeURIComponent(). But the url hash string needs to be encoded, so I dont think you can get around this urlencode behaviour in the hash. > Date: Mon, 2 Mar 2009 11:31:49 -0800 > From: mapes...@gmail.com > To: fw-general@l

[fw-general] Zend_Cache lifetime question

2009-03-03 Thread holografix .
Hi Here's some code: // Setup cache object $frontendOptions = array( 'lifetime' => 1800, 'automatic_serialization' => true ); $backendOptions = array( 'cache_dir' => '../data/cache/' ); $cache = Zend_Cache::factory( 'Core', 'File', $frontendOptions, $backendOptions

Re: [fw-general] Override escape value for certain subform elements

2009-03-03 Thread Chris MacPherson
Hi, Yes I think you have it correct there, I have been using this the same way so I could use html in my form description. $formElement->getDecorator('Description')->setOption('escape', false); .Chris kwylez wrote: How do I override the 'escape' value for a given element inside of a subFo

RE: [fw-general] Zend_Cache lifetime question

2009-03-03 Thread Xavier Vidal
I can't check the source code now, but common sense says it will override default lifetime settings (1800) in this call with the specific one (3600). _ De: holografix . [mailto:hologra...@gmail.com] Enviado el: martes, 03 de marzo de 2009 16:18 Para: fw-general@lists.zend.com Asunto: [fw

Re: [fw-general] Best coding practice? Form takes too long to load now.

2009-03-03 Thread swilhelm
Try running the Firebug profiler, Zend_Db_Profiler_Firebug, to see if its the database queries are the culprit. I assume you already have indices defined for the playground_id and device_id columns. Might be time to switch to a data table like display (e.g. YUI DataTable) containing a list of al

Re: [fw-general] lastInsertId()

2009-03-03 Thread swilhelm
To expand on jason's comment, adding a call to getAdapter() should fix it. $contactPersonId = $dbAdvertiserPerson->getAdapter()->lastInsertId(); jasonistaken wrote: > > The insert() method of Zend_Db_Table returns the new primary key for the > row. > The lastInsertId() method only exists of Z

[fw-general] Where to put my front controller plugin?

2009-03-03 Thread Dan Ballance
Hiya folks,hopefully this will be a simple one. Have been googling like nuts but can't work out where I should place the actual file containing a front controller plugin in a default installation? Heeelp! Dan :-)

RE: [fw-general] manipulating the window url without a refresh

2009-03-03 Thread mapes911
Yea, it actually does seem to decode it already, so when i read the hash string in my onload code it's decoded, I was just hoping I could have it display decoded so it looks nicer. Thanks though. Filip Wirefors wrote: > > > dojo.back uses encodeURIComponent() internally. > To dedode you can u

Re: [fw-general] Zend_Cache lifetime question

2009-03-03 Thread Fabien MARTY
On Tue, Mar 3, 2009 at 5:44 PM, Xavier Vidal wrote: > I can't check the source code now, but common sense says it will override > default lifetime settings (1800) in this call with the specific one (3600). Good point for you :-) Regards -- Fabien MARTY fabien.ma...@gmail.com

[fw-general] Re: Where to put my front controller plugin?

2009-03-03 Thread Deanna Bonds
Dan Ballance wrote: Hiya folks,hopefully this will be a simple one. Have been googling like nuts but can't work out where I should place the actual file containing a front controller plugin in a default installation? Heeelp The Initializer front controller plug-in is in the applications d

[fw-general] Custom routes priorities

2009-03-03 Thread Chris MacPherson
I am using some custom routes for my site and a couple are conflicting. Is there a way to set them up so both the following routes point to their respective actions. At the moment these both point point to the 'item-view' action, I was hoping the first one would match http://www.a.com/default/

Re: [fw-general] Zend_Dojo_Form - XHR-Post

2009-03-03 Thread mapes911
Hi Matthew, If you use this method to attach the javascript routine to the submit button, then in the foobar routine setup an xhrPost to process the form, should I still have an action and a method setup in my controller when I instantiate my form? I've been playing with a Zend_Dojo_Form which I

Re: [fw-general] Where to put my front controller plugin?

2009-03-03 Thread Dan Ballance
Thanks, I'll give that a try. Do I then need to manually include that myself or will the framework automagically detect it there? Many thanks for your help, Dan On 3 Mar 2009, 5:53 PM, "Deanna Bonds" wrote: Dan Ballance wrote: > > > Hiya folks,hopefully this will be a simple one. Have been goo

Re: [fw-general] Where to put my front controller plugin?

2009-03-03 Thread Deanna Bonds
Dan Ballance wrote: Thanks, I'll give that a try. Do I then need to manually include that myself or will the framework automagically detect it there? The bootstrap file (also in the application directory) uses this code to register the Initializer require_once 'Initializer.php'; $frontCon

Re: [fw-general] Override escape value for certain subform elements

2009-03-03 Thread Cory D. Wiles
Thanks Chris On Tue, Mar 3, 2009 at 9:28 AM, Chris MacPherson wrote: > Hi, > > Yes I think you have it correct there, I have been using this the same way > so I could use html in my form description. > > $formElement->getDecorator('Description')->setOption('escape', false); > > > .Chris > > > kwy

Re: [fw-general] Zend_Cache lifetime question

2009-03-03 Thread holografix .
Thank you very much. best regards, holo 2009/3/3 Fabien MARTY > On Tue, Mar 3, 2009 at 5:44 PM, Xavier Vidal wrote: > > I can't check the source code now, but common sense says it will override > > default lifetime settings (1800) in this call with the specific one > (3600). > > Good point for

[fw-general] Zend_Form_Element_Button question and a general Zend_Form question

2009-03-03 Thread fire-eyed-boy
Hi all, I have two questions concerning Zend_Form 1) Is there an easy way to add a decorator or utilize another method to get Zend_Form_Element_Button to insert additional elements inside its tags, like so (notice the 's): Send 2) Is there an easy way to have a Zend_Form_Element rendered betwe

RE: [fw-general] Zend_Mail & Zend_Mail_Transport_Sendmail (ZF 1.7.5) bugs. Can somebody confirm?

2009-03-03 Thread fire-eyed-boy
> From: list-zf-gene...@nico.edtinger.at > To: fire-eyed-...@hotmail.com > Date: Mon, 2 Mar 2009 16:46:56 +0100 > CC: fw-general@lists.zend.com > Subject: Re: [fw-general] Zend_Mail & Zend_Mail_Transport_Sendmail (ZF 1.7.5) > bugs. Can somebody confirm? > > Hi strange-looking-man! > I guess

Re: [fw-general] Zend_Dojo_Form - XHR-Post

2009-03-03 Thread MarkDNA
mapes911 wrote: > > Hi Matthew, > > If you use this method to attach the javascript routine to the submit > button, then in the foobar routine setup an xhrPost to process the form, > should I still have an action and a method setup in my controller when I > instantiate my form? > > Any help wo

[fw-general] Zend_ExtJS

2009-03-03 Thread Deanna Bonds
I had started this concept a while ago but never had time. I want to create a zend framework class set for ExtJS. I will use the model of dojo as far as it applies, but it and extjs have different scopes. dojo is more of a way to make your pages dynamic and ajaxie, extjs is more of an web

[fw-general] Complex database driven Zend_Form

2009-03-03 Thread Vince42
Hi, I need to make a very complex database driven form, which retrieves a rowset and renders that rowset, dependent rowsets, links and applies various decorators to each element or group of elements. Currently I am solving this with a Zend_Form extension that iteratively crawls through all the da

Re: [fw-general] Zend_Form_Element_Button question and a general Zend_Form question

2009-03-03 Thread Mon Zafra
1. Include the span in the label and turn off escaping. e.g. $form->addElement('button', 'submit', array('type' => 'submit', 'label' => 'Send', 'escape' => false)); 2. I don't think that's possible without using the ViewScript decorator or writing a custom one. The regular decorators are not awa

RE: [fw-general] Zend_Form_Element_Button question and a general Zend_Form question

2009-03-03 Thread fire-eyed-boy
Hi Mon, Thank you for your reply. 1) So I can turn of escaping? Great! I tried including it in the label, and indeed it escaped the characters. This was just what I needed to know. Thanks! 2) Hmmm, so I guess I'm stuck to a ViewScript decorator then huh? I was trying to avoid it, for the re

Re: [fw-general] Zend_ExtJS

2009-03-03 Thread Matthew Weier O'Phinney
-- Deanna Bonds wrote (on Tuesday, 03 March 2009, 06:30 PM -0600): > I had started this concept a while ago but never had time. I want to > create a zend framework class set for ExtJS. I will use the model of > dojo as far as it applies, but it and extjs have different scopes. dojo > is

[fw-general] Router for CMS

2009-03-03 Thread Matthias W.
Hi, I'm going to create a CMS in PHP with the Zend Framework. I thought to make URLs like this: http://www.xyz.com/[cms_path]/[language]/[module]/[page]/[subpage]/[subsubpage]/... This is because I dont want to use the page Ids in the URLs. Now the question is how to route this, because I don'

Re: [fw-general] Router for CMS

2009-03-03 Thread vadim gavrilov
*Sorry didn't do reply all * By default the router uses /:controller/:action/* or if you have modules then /:module/:controller/:action/* the /* indicates that anything can be there instead so i think you should use just that. On Wed, Mar 4, 2009 at 9:28 AM, Matthias W. wrote: > > Hi, > > I'm g

[fw-general] Discard one variable in the url using a router maybe

2009-03-03 Thread vadim gavrilov
If i have the following: xyz.com/:module/[lang]/:controller/:action/* how can i make it so it will actually dispatch the xyz.com/:module/:controller/:action/* but will show the [lang] in there. I know using a router but how exactly? Thanks. -- Vincent Gabriel. Lead Developer, Senior Support. Z