Re: [fw-general] Proposal Submit

2009-01-10 Thread armandop
Have you submitted the CLA? Once you submit the CLA AND you have an account on that site you can submit a proposal after logging back in. Armando Padilla Benjamin.Gonzales wrote: > > Hi > I have a proposal but I get the following message > "Who can post a proposal? > You must submit a si

Re: [fw-general] How to render nothing (ajax issue)

2009-01-10 Thread Shalanga
That works! I just need to call two methods: $this->_helper->viewRenderer->setNoRender(); $this->_helper->layout->disableLayout(); Thank you very much! Pádraic Brady wrote: > > Hi there, > > You can disable the layout rendering using a second call: > > $this->_helper->layout->disableLayout

Re: [fw-general] Is Cal Evan's Globals.php a recommended approach

2009-01-10 Thread Pádraic Brady
To echo Benjamin, any scenario where static classes are called within another class open the door to problems with testing, portability and subclassing. It's for this reason it's always a good idea to minimise their use and at a minimum isolate the usage in central locations. Avoiding them is th

Re: [fw-general] How to render nothing (ajax issue)

2009-01-10 Thread Pádraic Brady
Hi there, You can disable the layout rendering using a second call: $this->_helper->layout->disableLayout(); Paddy Pádraic Brady http://blog.astrumfutura.com http://www.survivethedeepend.com OpenID Europe Foundation Irish Representative From: Shalanga To

[fw-general] How to render nothing (ajax issue)

2009-01-10 Thread Shalanga
Hi, it's me again =) I want to do something simple but I found 2 approaches I don't like. I call an action via ajax using sortable from scriptaculous and I receve in response an html code. First approach was to call inside the action: $this->_helper->viewRenderer->setNoRender(); But it's not go

Re: [fw-general] Is Cal Evan's Globals.php a recommended approach

2009-01-10 Thread Benjamin Eberlei
the registry is global too and it has no type checking, which makes a global class that has setter and getter for specific types winner over a general registry in my opinion. static classes that contain objects and are used inside dynamic objects are always an obstacle to testing, singletons more

Re: [fw-general] Two questions about file handling in Zend

2009-01-10 Thread PHPScriptor
I don't know if this is the correct way but you can do it by making an action public function downloadAction() { /* get here all the data you need from the database * $size = size of the file you can get by readfile() * $filename = 12f3f1aa1b11ec11dd1dd1.zip (with the path) * $filename

[fw-general] Two questions about file handling in Zend

2009-01-10 Thread krazen
Hello. How can I make my Zend application download file from other server (given URL) to local server and save it in given directory and automatically rename it? How can I make my Zend app return binary data? E.g. example.zip has ID 1000 in my application's database and I want my app to return

Re: [fw-general] Weird problem with view script and Zend_Dojo_Data

2009-01-10 Thread Ralf Eggert
Hi again, just a short addition. I figured out that the "q" parameter does not contain what I expect it to. When I enter "Pizza" in the input field for the autocompletion, then the "q" parameter contains "Pizza*". Why is the asterisk added to the query parameter? I know that I could strip it off,

[fw-general] Weird problem with view script and Zend_Dojo_Data

2009-01-10 Thread Ralf Eggert
Hi, I have a really weird problem with a view script and Zend_Dojo_Data. I build an autocompletion form with the approach Matthew described here. I use the reusable custom QueryReadStore class extension for this. http://weierophinney.net/matthew/index.php?url=archives/198-Autocompletion-with-Zend-

[fw-general] Config the router for modular structure and multilingual

2009-01-10 Thread Shalanga
Hi you all. I'm new here and for ZF. I came here because I saw a lot of google search result directing to here. =D I have a problem i cannot solve for 2 days and i really read a lot of stuff on the web and nothing. Here is the problem: I have 2 modules for my application: Website (default) and

[fw-general] Re: PDF, IE7 and sessions

2009-01-10 Thread Mon Zafra
Necroing this old post of mine, just in case anyone comes across this problem again. The main problem is that IE hands just the content of its cache to Adobe Reader (or any other plugin). If the response header explicitly tells the browser to not cache the content, no data is handed over to the plu

Re: [fw-general] Is Cal Evan's Globals.php a recommended approach

2009-01-10 Thread Cal Evans
Hi Matthew, Yes, we've had this discussion before. :) When I wrote the first edition of the book I believe it was a good practice. Now however, I believe that there are better ways to accomplish the goals of Globals.php. The goals of Globals.php were 2 fold. 1) A central repository for applicat