[fw-general] store procedures with Zend Framework

2009-09-16 Thread Sergio Gabriel Rodriguez
Hi all, I'm newbie whit ZF, and I have questions about Zend_DB How can I work with store procedures and views, and with complex querys with many tables joins? I see only simple examples with one table access.. Thanks PD: I work with PostgreSQL Sergio Gabriel Rodríguez http://www.3trex.com.ar

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

2009-09-16 Thread Ben Scholzen 'DASPRiD'
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Ralph Schindler wrote on 16.09.2009 16:51: > Your component is very intersting. From a developers standpoint, I can > tell you that the problem of calendaring comes up more than you think. > In the past, we've seen several Zend_Calendar proposals, mos

Re: [fw-general] Zend_Db_Table with multiple databases

2009-09-16 Thread Paul M Jones
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 running into some problems. The setup we have is a master/slave. For offloading the main server all read queries are channelled

Re: [fw-general] To get the complete row using join in Zend_Db_Table

2009-09-16 Thread neobeacon
This is it's SQL code SELECT sec.title AS 'section', cat.title AS 'category', auth.Name AS 'author', modi.Name AS 'modifier', art . * FROM article art INNER JOIN section sec ON sec.id = art.section_id INNER JOIN category cat ON cat.id = art.category_id INNER JOIN user auth ON auth.id = art.auth

Re: [fw-general] Is there anybody from Zend team ?

2009-09-16 Thread Matthew Ratzloff
> > Framework can't be flexible. If somebody needs flexibility then he can programming in normal PHP without framework. :-) This is an opinion, one to which Zend Framework does not subscribe. There are plenty of PHP frameworks which do subscribe to this opinion. And there's always Rails, which

Re: [fw-general] Is there anybody from Zend team ?

2009-09-16 Thread Mark Wright
On 9/16/09, aoohralex wrote: > > > > Matthew Weier I think 99% hostings in my country don't allow to modify > httpd.conf and all files must be in public catalog - and I think it is > normal. I think everywhere is very small hostings where you can modify file > httpd.conf. > > forgot to reply all..

[fw-general] Zend_Db_Table with multiple databases

2009-09-16 Thread troels knak-nielsen
Hi. I'm looking into replacing a legacy system with Zend_Db + subpackages (Zend_Db_Table and friends), but I'm running into some problems. The setup we have is a master/slave. For offloading the main server all read queries are channelled to the slave, while all write queries are sent to the main

Re: [fw-general] Is there anybody from Zend team ?

2009-09-16 Thread Matthew Weier O'Phinney
-- aoohralex wrote (on Wednesday, 16 September 2009, 08:00 AM -0700): > So you think this is a mistake that these things are in Symfony Framework, > ASP.NET Framework and many others frameworks ? :) Yes and no. Listen, web development has changed drastically in the past five years. Five years ag

Re: [fw-general] Is there anybody from Zend team ?

2009-09-16 Thread Matthew Weier O'Phinney
-- aoohralex wrote (on Wednesday, 16 September 2009, 09:16 AM -0700): > > One year ago I knew one person who used Zend Framework. One day he had to > modify (add something) somebody's website wrote in Zend Framework but he had > to write everything from the beginning. He was then very angry and h

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

2009-09-16 Thread Thomas Weidner
Hy Ralph, The intendation for my Zend_Calendar proposal was, to provide a component which can handle different calendar systems. Gregorian, Islamic, Chinese and several other calendar systems are needed. It was no component for a "event calendar" nor someone with view integration. As several

Re: Re: [fw-general] RFC: ZendX_Doctrine

2009-09-16 Thread Matthew Lurz
Great. I'll take a look. If you have some time and would like to contribute, provide feedback, etc please take a look at the github.com/mlurz71. Thanks for you interest. Exception e wrote: > > hey, count me in! > > I would like to point out that that there is already a doctrine-firebug > plug

Re: [fw-general] Is there anybody from Zend team ?

2009-09-16 Thread Joe Devon
#ZF takes some time for newbies to grasp. It's important to be nice to them because once they "get it", they could become a valuable contributor. Once people play w/ a framework that doesn't have flexibility & they can't do what they want to do, they may appreciate the flexibility #ZF has. Until t

Re: Re: [fw-general] RFC: ZendX_Doctrine

2009-09-16 Thread Exception e
hey, count me in! I would like to point out that that there is already a doctrine-firebug plugin for zf: http://taat.pl/article/zend_framework_tutorial/step5/. -- View this message in context: http://www.nabble.com/RFC%3A-ZendX_Doctrine-tp23454552p25476504.html Sent from the Zend Framework mail

Re: [fw-general] Why does Zend_URI::setQuery return old query string?

2009-09-16 Thread Exception e
tfk wrote: > > But also those mean BC breaks. > True, but I think this can nonetheless be done in 2.0 -- View this message in context: http://www.nabble.com/Why-does-Zend_URI%3A%3AsetQuery-return-old-query-string--tp25473629p25476445.html Sent from the Zend Framework mailing list archive at N

Re: [fw-general] Is there anybody from Zend team ?

2009-09-16 Thread Vladas Diržys
I have followed this discussion, and I must agree with you :-) -- Pagarbiai, Vladas Diržys Tel.: +370 620 69020 www.dirzys.com On Wed, Sep 16, 2009 at 18:52, Sean Utt wrote: > Interesting how people jump to conclusions. > > These kinds of threads all run the same course. They start with, "I re

Re: [fw-general] Why does Zend_URI::setQuery return old query string?

2009-09-16 Thread till
On Wed, Sep 16, 2009 at 6:23 PM, Exception e wrote: > > > tfk wrote: >> >> >> Maybe you could file a feature request. I'd def. vote for it. E.g. a >> lot of components support a fluent interface and this one def. breaks >> the pattern. Or maybe the author can comment what they had in mind >> when

Re: [fw-general] Why does Zend_URI::setQuery return old query string?

2009-09-16 Thread Exception e
tfk wrote: > > > Maybe you could file a feature request. I'd def. vote for it. E.g. a > lot of components support a fluent interface and this one def. breaks > the pattern. Or maybe the author can comment what they had in mind > when they implemented it. > Here you go: http://framework.zend.co

[fw-general] Problems with webservice-mailinglist

2009-09-16 Thread Marcus Stöhr
Hi there, I tried to send a message to the Webservices-ML. However, this mail was refused with the following error message: Hi. This is the qmail-send program at ev1-z1.zend.com. I'm afraid I wasn't able to deliver your message to the following addresses. This is a permanent error; I've gi

Re: [fw-general] Is there anybody from Zend team ?

2009-09-16 Thread aoohralex
One year ago I knew one person who used Zend Framework. One day he had to modify (add something) somebody's website wrote in Zend Framework but he had to write everything from the beginning. He was then very angry and he said me why. Do you know ? Bacause ZF was so flexible that somebody created

Re: [fw-general] Is there anybody from Zend team ?

2009-09-16 Thread Sean Utt
Interesting how people jump to conclusions. These kinds of threads all run the same course. They start with, "I really love XYZ." Then it's, "But it doesn't make my coffee in the morning for me." And eventually it degrades into, "I'm a programmer but I really hate writing code, why doesn't this

Re: [fw-general] Why does Zend_URI::setQuery return old query string?

2009-09-16 Thread till
On Wed, Sep 16, 2009 at 4:28 PM, Exception e wrote: > > Why does Zend_Uri_Http::setQuery() return the old query string? > I don't expect this behaviour and > > Zend_Uri_Http::getQuery() does the same with the difference being that this > method performs this check: > > return strlen($this->_query)

Re: [fw-general] Is there anybody from Zend team ?

2009-09-16 Thread Matthew Ratzloff
The framework is designed primarily for web development, as is PHP; I don't think it's unreasonable for the layout configuration to appear in the application.ini for a project generated by the zf command, at least commented out. -Matt On Wed, Sep 16, 2009 at 8:12 AM, Carlton Gibson wrote: > > On

Re: [fw-general] Is there anybody from Zend team ?

2009-09-16 Thread Carlton Gibson
On 16 Sep 2009, at 16:00, aoohralex wrote: So you think this is a mistake that these things are in Symfony Framework, ASP.NET Framework and many others frameworks ? :) No. What they do is up to them. My comments are directly entirely at Zend Framework and should not be taken to imply anyt

Re: [fw-general] Is there anybody from Zend team ?

2009-09-16 Thread aoohralex
So you think this is a mistake that these things are in Symfony Framework, ASP.NET Framework and many others frameworks ? :) -- View this message in context: http://www.nabble.com/Is-there-anybody-from-Zend-team---tp25455352p25474309.html Sent from the Zend Framework mailing list archive at Nabb

Re: [fw-general] Is there anybody from Zend team ?

2009-09-16 Thread Carlton Gibson
On 16 Sep 2009, at 15:54, aoohralex wrote: thx Carlton - this tutorial helped me: http://akrabat.com/wp-content/uploads/getting-started-with-zend-framework-163.pdf Now I have at least connection to database (I checked - I can show something from my database) No problem. Glad to get you sta

Re: [fw-general] Is there anybody from Zend team ?

2009-09-16 Thread aoohralex
thx Carlton - this tutorial helped me: http://akrabat.com/wp-content/uploads/getting-started-with-zend-framework-163.pdf Now I have at least connection to database (I checked - I can show something from my database) Matthew Weier I think 99% hostings in my country don't allow to modify httpd.co

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

2009-09-16 Thread Ralph Schindler
Your component is very intersting. From a developers standpoint, I can tell you that the problem of calendaring comes up more than you think. In the past, we've seen several Zend_Calendar proposals, most notably Thomas's: http://framework.zend.com/wiki/display/ZFPROP/Zend_Calendar+-+Thomas+We

[fw-general] Why does Zend_URI::setQuery return old query string?

2009-09-16 Thread Exception e
Why does Zend_Uri_Http::setQuery() return the old query string? I don't expect this behaviour and Zend_Uri_Http::getQuery() does the same with the difference being that this method performs this check: return strlen($this->_query) > 0 ? $this->_query : false; To me this interface seems to be q

[fw-general] To get the complete row using join

2009-09-16 Thread neobeacon
This is the http://www.nabble.com/file/p25473213/article.pdf table structure of mine.I set dependant tables and reference maps for article Zend_Db_Table.I want to get the article row which has exact id value with user names instead author_id and modified_by and section name and category name inst

Re: [fw-general] Zend_Form using Zend_Config

2009-09-16 Thread Matthew Weier O'Phinney
-- Koph Digital wrote (on Tuesday, 15 September 2009, 11:38 PM +0100): > I’m trying to create a form using Zend_Form and Zend_Config_Ini, however, I’m > having trouble creating a select list. > > How do you add options to the select list using the the config file format? > > elements.test.type =

Re: [fw-general] 'cannot redeclare class...' PHP 5.3

2009-09-16 Thread Steven Szymczak
@Till I'm using the autoloader, so I have very few include statements (and none for the class in question). @Matthew The only place my include_path changes is in Bootstrap.php, which has the following code: // Set include path set_include_path(implode(PATH_SEPARATOR, array(

[fw-general] Zend_Form using Zend_Config

2009-09-16 Thread Koph Digital
Hi, I'm trying to create a form using Zend_Form and Zend_Config_Ini, however, I'm having trouble creating a select list. How do you add options to the select list using the the config file format? elements.test.type = "select" elements.test.options.label = "Test" elements.test.options

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

2009-09-16 Thread mandi
Hello Bence, you can call it in any controller: $bootstrap = $this->getInvokeArg ( 'bootstrap' ); $db = $bootstrap->getResource ( 'dbconn' ); wher: Bootstrap.php has this method: protected function _initDbconn(){ $resource = $this->getPluginResource('db');

Re: [fw-general] Is there anybody from Zend team ?

2009-09-16 Thread Alexander Johannesen
On Wed, Sep 16, 2009 at 05:22, Carlton Gibson wrote: > You need to revisit the quick start. It's quite clear that you need to set > up a .htaccess file. ... > Not everybody needs a layout. ... I use ZF and use neither, and quite successfully, too. It's not really a framework as much as a collecti

Re: [fw-general] Is there anybody from Zend team ?

2009-09-16 Thread Matthew Weier O'Phinney
-- aoohralex wrote (on Wednesday, 16 September 2009, 01:16 AM -0700): > You have given me link: > http://framework.zend.com/wiki/display/ZFDEV/Configuring+Your+URL+Rewriter > http://framework.zend.com/wiki/display/ZFDEV/Configuring+Your+URL+Rewriter > > very often we can't modify httpd.conf so w

Re: [fw-general] Is there anybody from Zend team ?

2009-09-16 Thread Matthew Weier O'Phinney
-- Joe Devon wrote (on Tuesday, 15 September 2009, 08:43 PM -0700): > > If you do not want to register, if you scroll down further on the page, > > you'll find direct links. > > I bet if Zend did some clickstream analysis, you guys would be shocked > how many people never see the links on the bot

Re: [fw-general] Is there anybody from Zend team ?

2009-09-16 Thread Carlton Gibson
On 16 Sep 2009, at 12:55, aoohralex wrote: Based on Yours instructions how to connect to database: http://framework.zend.com/manual/en/zend.db.html#zend.db.adapter.connecting.factory-config I have: $config = new Zend_Config( array( 'database' => array( 'adapter' => 'Mysqli',

[fw-general] Get the database adapter without Zend_Db_Table

2009-09-16 Thread BB
Hello, how can I get the database adapter instance in the model (or anywhere else) without the Zend_Db_Table's getDefaultAdapter()? Foo.php: class Model_Foo { protected $_db; public function __construct() { $this->_db = ???; } } in the application.ini I have the following lines: reso

Re: [fw-general] Re[fw-general] gistering own dojo module stop working dojo,dojox modules

2009-09-16 Thread Matthew Weier O'Phinney
-- tomascejka wrote (on Wednesday, 16 September 2009, 04:38 AM -0700): > > Testing dojo.data.Grid and now I cannot find where I do wrong. If I uncoment > the row... requireModule("rpc.trainingunit.Unit") alert is showed but dojo > stop working. > If I comment row... grid working. There is a bug?

Re: [fw-general] 'cannot redeclare class...' PHP 5.3

2009-09-16 Thread Matthew Weier O'Phinney
-- Steven Szymczak wrote (on Wednesday, 16 September 2009, 08:17 PM +0900): > When I upgraded by development environment to OS X 10.6 (Snow Leopard) > it also automatically upgraded my PHP install to 5.3, and this seems to > have broken something within ZF. > > Previously, everything was worki

Re: [fw-general] 'cannot redeclare class...' PHP 5.3

2009-09-16 Thread till
On Wed, Sep 16, 2009 at 1:17 PM, Steven Szymczak wrote: > When I upgraded by development environment to OS X 10.6 (Snow Leopard) it > also automatically upgraded my PHP install to 5.3, and this seems to have > broken something within ZF. > > Previously, everything was working as expected.  The pro

Re: [fw-general] Is there anybody from Zend team ?

2009-09-16 Thread aoohralex
Carlton layout should be by default with content: layout()->content ?> and then everybody will be happy. Based on Yours instructions how to connect to database: http://framework.zend.com/manual/en/zend.db.html#zend.db.adapter.connecting.factory-config I have: $config = new Zend_Config(

[fw-general] Re[fw-general] gistering own dojo module stop working dojo,dojox modules

2009-09-16 Thread tomascejka
Testing dojo.data.Grid and now I cannot find where I do wrong. If I uncoment the row... requireModule("rpc.trainingunit.Unit") alert is showed but dojo stop working. If I comment row... grid working. There is a bug? Filesystem === /dojoroot /dojo /dojox /rpc/ /trainingunit

[fw-general] 'cannot redeclare class...' PHP 5.3

2009-09-16 Thread Steven Szymczak
When I upgraded by development environment to OS X 10.6 (Snow Leopard) it also automatically upgraded my PHP install to 5.3, and this seems to have broken something within ZF. Previously, everything was working as expected. The production site code is perfectly in sync with that on the develo

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

2009-09-16 Thread 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 calendar could be very useful. -- Kind Regards, Vladas Dir

Re: [fw-general] Is there anybody from Zend team ?

2009-09-16 Thread Carlton Gibson
aoohralex, On 16 Sep 2009, at 09:16, aoohralex wrote: [...] Carlton: Not everybody needs layout ? :O Then somebody can delete 1 folder + 1 line of code - I think this is faster than create folder + write 1 line. What is more - in Symfony Framework or in ASP.NET - we have layout !! In ZF

Re: [fw-general] SubForm and Element::getId()

2009-09-16 Thread Václav Vaník
I need the full id for javascript, now I have to use (in viewscript) tricky way as $id = $this->form->getSubForm('foo')->getName() . '-' . $this->form->getSubForm('foo')->getElement('myElement')->getId(); I think the right way is to create new method: eg. getFullyQualifiedId() Jurian Sluiman w

Re: [fw-general] Is there anybody from Zend team ?

2009-09-16 Thread Саша Стаменковић
My vote for layout by default! Regards, Saša Stamenković On Wed, Sep 16, 2009 at 10:16 AM, aoohralex wrote: > > Matthew: > ok - I needn't register to download ZF, but I didn't see these links at the > bottom of page and I thought that I must register to download ZF. > > You have given me link:

Re: [fw-general] Is there anybody from Zend team ?

2009-09-16 Thread aoohralex
Matthew: ok - I needn't register to download ZF, but I didn't see these links at the bottom of page and I thought that I must register to download ZF. You have given me link: http://framework.zend.com/wiki/display/ZFDEV/Configuring+Your+URL+Rewriter http://framework.zend.com/wiki/display/ZFDEV/Co