Re: [fw-general] Zend_Db_Table with multiple databases

2009-09-17 Thread troels knak-nielsen
Thanks - That was useful indeed. -- troels On Wed, Sep 16, 2009 at 11:46 PM, Paul M Jones pmjone...@gmail.com wrote: On Sep 16, 2009, at 14:02 , troels knak-nielsen wrote: Hi. I'm looking into replacing a legacy system with Zend_Db + subpackages (Zend_Db_Table and friends), but I'm

Re: [fw-general] SpiffyCalendar for the Zend Framework

2009-09-17 Thread Michael Scholl
Am 16.09.2009 um 12:14 schrieb Vladas Diržys: Hi, I would like to test and to use it in one of my projects. I also would give you a feedback what I (didn't) liked or what features I miss. So if it would be possible, please sent me this package or the download link :-) Anyway, I think

[fw-general] I have an eror: Select query cannot join with another table

2009-09-17 Thread aoohralex
I have in database two tables: books: - id PK - title authors: - id PK - author - id_book FK 1 book can have many authors. I want to learn ZF so database doesn't matter (I know it should be that also 1 author can have many books and it shouldn't be column 'author' but column 'name' and

Re: [fw-general] I have an eror: Select query cannot join with another table

2009-09-17 Thread alayn
try setting Integritiy Check to false: setIntegrityCheck public function getBooksAuthors() { $select = $this-select(); //Add next line $select-setIntegrityCheck(false); -from(array('b' = 'books'))

[fw-general] PHP Settings to Build API Documentation

2009-09-17 Thread Carlton Gibson
Hi all, I'm wondering if anyone is building the API docs locally and can give me a rough indication of the amount of memory required? I keep getting memory out errors after _some time_ :-) TIA Carlton

Re: [fw-general] I have an eror: Select query cannot join with another table

2009-09-17 Thread aoohralex
Your solution works but as I understand it disables checking integrity data in database - is it good and normal solution in Zend Framework ? I would like to use good style programming. Is this a good solution - disabling checking integrity ? -- View this message in context:

Re: [fw-general] I have an eror: Select query cannot join with another table

2009-09-17 Thread alayn
As far as I know, the integrity check works on a table - row basics. It checks that a row you are getting can be directly deleted or updated through $row-delete() and $row-save() methods. As you are joining more than a table you are creating a virtual row that is not directly modifyable, so you

[fw-general] Setting different error controllers

2009-09-17 Thread Anders Gunnarsson
Hello I have 4 different sets of controller directories /application/admin /default /clinicians /patients All errors are now handled by /application/default/controllers/ErrorController.php How can I set it up to have 4 ErrorHandler? Eg. An error

Re: [fw-general] Announcement: Monthly Bug Hunt Days

2009-09-17 Thread lightflowmark
Excellent news - it will be great to have some way of getting patches integrated into trunk. Is there some other way of asking for patches to be reviews [at any time during the month], or do we have to hop on IRC on the designated days? Matthew Weier O'Phinney-3 wrote: * If you do not

[fw-general] Db_Table magic methods with modules

2009-09-17 Thread Michael Thirlwell
Hi there, I wrote an application in ZF1.7 with a modular structure that made extensive use of the db_table magic methods. To illustrate, here's part of the structure of my app: - application - modules - default - models

Re: [fw-general] Setting different error controllers

2009-09-17 Thread aoohralex
thx alayn :) -- View this message in context: http://www.nabble.com/I-have-an-eror%3A-Select-query-cannot-join-with-another-table-tp25488217p25489419.html Sent from the Zend Framework mailing list archive at Nabble.com.

[fw-general] Where i can download ZendX?

2009-09-17 Thread woto
Sorry for bad English. Where i can download ZendX_JQuery? I see manual in http://framework.zend.com/manual/en/zendx.jquery.html but can't find source. -- View this message in context: http://www.nabble.com/Where-i--can-download-ZendX--tp25489878p25489878.html Sent from the Zend Framework

Re: [fw-general] Where i can download ZendX?

2009-09-17 Thread Denis Fohl
Hi, you have to download full archive for last ZF version. You can find ZendX under extras/library folder. Denis woto a e'crit : Sorry for bad English. Where i can download ZendX_JQuery? I see manual in http://framework.zend.com/manual/en/zendx.jquery.html but can't find source.

Re: [fw-general] Where i can download ZendX?

2009-09-17 Thread woto
Right, sorry for inattention, i expected to find it in library folder. Denis Fohl wrote: Hi, you have to download full archive for last ZF version. You can find ZendX under extras/library folder. Denis woto a e'crit : Sorry for bad English. Where i can download ZendX_JQuery? I see

[fw-general] HYDRATION like in Doctrine ORM in Symfony Framework

2009-09-17 Thread aoohralex
I have in database two tables: books: - id PK - title authors: - id PK - author - id_book FK 1 book can have many authors. I want to learn ZF so database doesn't matter (I know it should be that also 1 author can have many books and it shouldn't be column 'author' but column 'name' and

Re: [fw-general] Announcement: Monthly Bug Hunt Days

2009-09-17 Thread Pádraic Brady
Just a reminder to list members that the Bug Hunt is starting today ;). If you don't have a lot of time I suggest adopting just 1-2 issues to help solve - every little bit helps! See details below from Matthew's original email. Pádraic Brady http://blog.astrumfutura.com

Re: [fw-general] HYDRATION like in Doctrine ORM in Symfony Framework

2009-09-17 Thread Vladas Diržys
ZF does't support such a feature yet. But you can achieve the same result by building the right SQL query your self. I think your getBooksAuthors should look like this: public function getBooksAuthors() { $select = $this-select() -setIntegrityCheck(false)

Re: [fw-general] PHP Settings to Build API Documentation

2009-09-17 Thread Diego Potapczuk
I use 1024mb ::: Diego Potapczuk »» NEAD - Núcleo de Educação a Distância »» SENAI-BA »» Tel: (71) 3287-8343 / (71) 9144-3062 »» http://www.diegoliveira.com.br On Thu, Sep 17, 2009 at 7:00 AM, Carlton Gibson li...@noumenal.co.ukwrote: Hi all, I'm wondering if anyone is building the API

Re: [fw-general] HYDRATION like in Doctrine ORM in Symfony Framework

2009-09-17 Thread aoohralex
hm... it doesn't work for me: Specified column author is not in the row -- View this message in context: http://www.nabble.com/HYDRATION-like-in-Doctrine-ORM-in-Symfony-Framework-tp25490065p25490884.html Sent from the Zend Framework mailing list archive at Nabble.com.

[fw-general] proposal to Application.php

2009-09-17 Thread woto
Sorry for bad English. According to http://ru.php.net/manual/en/info.configuration.php we can't set all php settings (not talking about PHP 6), maybe better would to avoid user from trying to set some php settings during runtime? for example Application.php public function

Re: [fw-general] PHP Settings to Build API Documentation

2009-09-17 Thread Carlton Gibson
On 17 Sep 2009, at 13:57, Diego Potapczuk wrote: I use 1024mb Brilliant. Thanks. ::: Diego Potapczuk »» NEAD - Núcleo de Educação a Distância »» SENAI-BA »» Tel: (71) 3287-8343 / (71) 9144-3062 »» http://www.diegoliveira.com.br On Thu, Sep 17, 2009 at 7:00 AM, Carlton Gibson

Re: [fw-general] HYDRATION like in Doctrine ORM in Symfony Framework

2009-09-17 Thread Vladas Diržys
Try with Zend_Db::fetchAll(). Your method then, should look like this : public function getBooksAuthors() { $select = $this-select() -setIntegrityCheck(false) -from(array('b' = 'books'), array('id')) -join(array('a' = 'authors'), 'b.id = a.id_book', array('authors'=new

Re: [fw-general] HYDRATION like in Doctrine ORM in Symfony Framework

2009-09-17 Thread aoohralex
Zend_Db_Expr('GROUP_CONCAT(author)') - this is strange for me, I don't understand that so I don't want to use it - I MUST know and understand all code (I know that in ZF it isn't possible). getAdapter() - I also don't know that method. And I don't know how I can use it to show rows in that way

[fw-general] url($urlOptions, $name, $reset) - what is $name ?

2009-09-17 Thread aoohralex
url($urlOptions, $name, $reset) - what is $name ? I understand $urlOptions and $reset. I don't understand $name. -- View this message in context: http://www.nabble.com/url%28%24urlOptions%2C-%24name%2C-%24reset%29---what-is-%24name---tp25491945p25491945.html Sent from the Zend Framework mailing

Re: [fw-general] url($urlOptions, $name, $reset) - what is $name ?

2009-09-17 Thread Juozas
Name is a route name http://framework.zend.com/manual/en/zend.controller.router.html -- Juozas Kaziukėnas (juo...@juokaz.com) Aš internete - JuoKaz (http://www.juokaz.com) On Thu, Sep 17, 2009 at 5:13 PM, aoohralex aoohra...@gmail.com wrote: url($urlOptions, $name, $reset) - what is $name ?

Re: [fw-general] Announcement: Monthly Bug Hunt Days

2009-09-17 Thread Matthew Weier O'Phinney
-- lightflowmark 1...@lightflowinterrupted.com wrote (on Thursday, 17 September 2009, 03:35 AM -0700): Excellent news - it will be great to have some way of getting patches integrated into trunk. Is there some other way of asking for patches to be reviews [at any time during the month], or

Re: [fw-general] PHP Settings to Build API Documentation

2009-09-17 Thread Matthew Weier O'Phinney
-- Carlton Gibson li...@noumenal.co.uk wrote (on Thursday, 17 September 2009, 11:00 AM +0100): I'm wondering if anyone is building the API docs locally and can give me a rough indication of the amount of memory required? I keep getting memory out errors after _some time_ :-) I usually pass

Re: [fw-general] url($urlOptions, $name, $reset) - what is $name ?

2009-09-17 Thread Matthew Weier O'Phinney
-- aoohralex aoohra...@gmail.com wrote (on Thursday, 17 September 2009, 08:13 AM -0700): url($urlOptions, $name, $reset) - what is $name ? I understand $urlOptions and $reset. I don't understand $name. $name is the name of a route you have attached to the router. If you use null, it will

Re: [fw-general] SpiffyCalendar for the Zend Framework

2009-09-17 Thread Kyle Spraggs
Kyle Spraggs-3 wrote: I wasn't quite sure which category to post this in but went with the general topic. If this is incorrect please correct me and I'll move it to the appropriate category. Finding a Calendar I ran into a situation this weekend where I needed a calendar for

[fw-general] SpiffyCalendar v1.0.0 Released

2009-09-17 Thread Kyle Spraggs
SpiffyCalendar is a calendar generator for the Zend Framework based on Zend_Date and Zend_Locale. It utilizes a Zend View renderer by default but adding custom renderers is available. It also supports events using a variety of event sources and ships with array and zend_db_table capability. I

[fw-general] RE: [fw-mvc] so complex!

2009-09-17 Thread Naimesh.Trivedi (Gmail)
Well I am so much surprised, why people are behaving like 3rd party, not at all concerned about this and work as team which is the motto of Open Source technology. I am very much upset with the tone of the people. Yes, I do agree there are requirement of some real world tutorial and more

[fw-general] [OT] Rewrite Exception for MSIE https downloads

2009-09-17 Thread Jens Wabnitz
Hello, maybe someone in the list can help me before i'm going nuts. I need to deliver files through my app. For this reason i have build a FileController with a DownloadAction to load the file, set all required headers and send the file. This works in all browsers except IE 6 (and probably

Re: [fw-general] PHP Settings to Build API Documentation

2009-09-17 Thread Carlton Gibson
On 17 Sep 2009, at 17:06, Matthew Weier O'Phinney wrote: -- Carlton Gibson li...@noumenal.co.uk wrote (on Thursday, 17 September 2009, 11:00 AM +0100): I'm wondering if anyone is building the API docs locally and can give me a rough indication of the amount of memory required? I keep

Re: [fw-general] Get the database adapter without Zend_Db_Table

2009-09-17 Thread Martin Carpentier
Actually it's even simpler than that. Assuming you're using Zend_Application along with the application.ini you provided all you need to do in your controllers is // Get the database adapter $bootstrap = $this-getInvokeArg('bootstrap'); $db = $bootstrap-getResource('db'); You don't need the

[fw-general] Zend_Mail multipart email format problem

2009-09-17 Thread ardx
I am generating multipart emails in the following fashion (simplified for purpose of explanation): $transport = new Zend_Mail_Transport_Smtp('localhost'); Zend_Mail::setDefaultTransport($transport); $mail = new Zend_Mail(); $mail-setFrom($email, $name);

Re: [fw-general] Zend_Mail multipart email format problem

2009-09-17 Thread ardx
I have verified that that 'bug' was precisely why UebiMiau could not display the message properly. I modified Zend/Mail/Transport/Abstract.php to change lines 142 through 146 from this: $this-_headers['Content-Type'] = array( $type . '; charset=' .

[fw-general] Backward compatibility issue with Zend_Auth_Adapter_Ldap in 1.9.2

2009-09-17 Thread Andrew Ballard
I use the LDAP authentication adapter to authenticate against Active Directory on a number of sites. Since upgrading to 1.9.2 the authentication fails with FAILURE_CREDENTIAL_INVALID for everyone. I compared Zend_Auth_Adapter_Ldap between 1.8.0 and 1.9.2, but I can't see what is causing the

[fw-general] application.ini - config controllers and layouts, but not pages?

2009-09-17 Thread Artsemis
As implied by the subject, why do you config the base directory here for most things (specifically controllers) but can't for pages? Where can you change the path to pages? -- View this message in context:

Re: [fw-general] application.ini - config controllers and layouts, but not pages?

2009-09-17 Thread Matthew Weier O'Phinney
-- Artsemis artse...@gmail.com wrote (on Thursday, 17 September 2009, 01:28 PM -0700): As implied by the subject, why do you config the base directory here for most things (specifically controllers) but can't for pages? Where can you change the path to pages? What do you mean by pages? Since

Re: [fw-general] [OT] Rewrite Exception for MSIE https downloads

2009-09-17 Thread James Lucas
Hi Jens A well known issue with IE6 and HTTPS, you need to tell the browser that is allowed to cache the file. Otherwise is downloads the file but doesn't save it to disk because it has been told not to cache it. In the downloadAction $this-getResponse()-setHeader('Content-Type',

Re: [fw-general] application.ini - config controllers and layouts, but not pages?

2009-09-17 Thread Artsemis
Matthew Weier O'Phinney-3 wrote: -- Artsemis artse...@gmail.com wrote (on Thursday, 17 September 2009, 01:28 PM -0700): As implied by the subject, why do you config the base directory here for most things (specifically controllers) but can't for pages? Where can you change the path to

[fw-general] Odd issue with new install regarding version number

2009-09-17 Thread Artsemis
I was working through the quickstart and got to the part where I had to create a controller -- which gave an error about finding the project file. I did a quick Google and this was a problem with 1.9.0 that many people seemed to have experienced on Windows. I went ahead and re-downloaded ZF and

Re: [fw-general] Odd issue with new install regarding version number

2009-09-17 Thread Artsemis
Artsemis wrote: I was working through the quickstart and got to the part where I had to create a controller -- which gave an error about finding the project file. I did a quick Google and this was a problem with 1.9.0 that many people seemed to have experienced on Windows. I went ahead