RE: [fw-general] Zend Loader performance - benchmark

2008-05-16 Thread Keith Pope
Thx for the benchmarks :) I think there where earlier discussions on this and the ZF team are working on their own set of benchmarks, it will be interesting to see how all this compares. Looks to me like the performance difference is pretty negligible for most developers to worry about :) I

Re: [fw-general] Example Zend Framework Blog Application Tutorial: Parts 1-8

2008-05-16 Thread Pádraic Brady
Working on it ;). Unlike a client site, my personal ones are the lowest priority on work days. I know it's clearly annoying to have it offline for days but I can't afford to take the time to fix it right now when the weekend is mere hours away ;). My request for a Slicehost VPS is being process

Re: [fw-general] Zend Loader performance - benchmark

2008-05-16 Thread Pádraic Brady
I think the results were inevitable. It seems there is still a lot of developers out there quoting from blog posts and irc discussions that are months, and in some cases, years old. You'd think PHP 5.2 was not being used anywhere ;). We really do need some more benchmarks out there proving this

Re: [fw-general] Dumb Question

2008-05-16 Thread Pádraic Brady
Hi Joseph, What I usually do is three fold: 1. Add is as the default adapter to Zend_Db_Table for use by all my Zend based Models. This also acts as a Registry by the way, since you can call Zend_Db_Table::getDefaultAdapter() anywhere. 2. Add it to a Registry as would be normal practice. 3. Po

Re: [fw-general] noob problem - ZF works on localhost but not on webserver

2008-05-16 Thread oetting
Hi and welcome :) You will have to supply more details about your problem for anyone to be able to help. For instance what kind of error messages do you get? Jacob Oettinger vladimirn wrote: > > First of all i would like to say hello to all in here Tho, if i missed a > topic, please move it

Re: [fw-general] noob problem - ZF works on localhost but not on webserver

2008-05-16 Thread vladimirn
Hello Jacob, thank you :) I will try to explain. I have admin part of site. In administration i added new functionality- adding new banners. I made a BannerController.php(controller), Banner.php(model), and following the example of guy who made whole application i made admin-index.phtml and admi

Re: [fw-general] noob problem - ZF works on localhost but not on webserver

2008-05-16 Thread Vincent
On 5/16/08, vladimirn <[EMAIL PROTECTED]> wrote: > > > Hello Jacob, thank you :) > I will try to explain. > I have admin part of site. In administration i added new functionality- > adding new banners. > I made a BannerController.php(controller), Banner.php(model), and following > the example of gu

Re: [fw-general] noob problem - ZF works on localhost but not on webserver

2008-05-16 Thread oetting
If you are getting "500 Internal Server Error" there must be something wrong with the configuration of the server. It could be problems with a .htaccess file, but also all sorts of other problems. It is probably not directly related to ZF. You may be able to find more information in your servers e

Re: [fw-general] noob problem - ZF works on localhost but not on webserver

2008-05-16 Thread vladimirn
Hello Vincent :) Web site is live and working on web server. if($this->Banner->update()) is called in BannerController.php (currently on webserver is: require_once('Banner.php'); if(Banner::update())) .htaccess is identical on localhost and web server. I got it from web server when got this proje

Re: [fw-general] noob problem - ZF works on localhost but not on webserver

2008-05-16 Thread Vincent
On 5/16/08, vladimirn <[EMAIL PROTECTED]> wrote: > > > Hello Vincent :) > Web site is live and working on web server. > if($this->Banner->update()) is called in BannerController.php > (currently on webserver is: require_once('Banner.php'); > if(Banner::update())) But you said PHP said: no such m

[fw-general] Route with variable parameters

2008-05-16 Thread Cristian Bichis
Hello, I am trying to create a route to "parse" URL's like this: /:text/:page/:lang/:param1/:val1/:param2/:val2/:param3/:val3/:param4/:val4/:param5/:val5.. I have some problems: 1. How can i write the route to allow a potential unlimited number of parameters 2. How can i write the

Re: [fw-general] noob problem - ZF works on localhost but not on webserver

2008-05-16 Thread vladimirn
I misstyped what php said :) actually PHP said that method does not exist, and i know that method exist. But when i include file Banner.php which contain that method, and change in code from $this->Banner->update to Banner::update() then works fine. Original file(which i remake to make banner part

Re: [fw-general] Route with variable parameters

2008-05-16 Thread Vincent
On 5/16/08, Cristian Bichis <[EMAIL PROTECTED]> wrote: > > Hello, > > I am trying to create a route to "parse" URL's like this: > > /:text/:page/:lang/:param1/:val1/:param2/:val2/:param3/:val3/:param4/:val4 > /:param5/:val5.. > > > > I have some problems: > 1. How can i write the route to

Re: [fw-general] noob problem - ZF works on localhost but not on webserver

2008-05-16 Thread Vincent
On 5/16/08, vladimirn <[EMAIL PROTECTED]> wrote: > > > I misstyped what php said :) actually PHP said that method does not exist, > > and i know that method exist. But when i include file Banner.php which > > contain that method, and change in code from $this->Banner->update to > Banner::update() t

Re: [fw-general] noob problem - ZF works on localhost but not on webserver

2008-05-16 Thread vladimirn
curently i am not at this computer. I will reply in hour and half :) Vincent-20 wrote: > > On 5/16/08, vladimirn <[EMAIL PROTECTED]> wrote: >> >> >> I misstyped what php said :) actually PHP said that method does not >> exist, >> >> and i know that method exist. But when i include file Banner.p

Re: [fw-general] Zend Framework 1.5.2 is now available!

2008-05-16 Thread Johannes Schill
Hi, Empty your cache and try again. If that doesnt work, make sure youre not behind a proxy with its own caching. If that doesn't work: http://framework.zend.com/download zip: http://framework.zend.com/releases/ZendFramework-1.5.2/ZendFramework-1.5.2.zip tar.gz: http://framework.zend.com/releases

Re: [fw-general] Route with variable parameters

2008-05-16 Thread Cristian Bichis
I have some problems: 1. How can i write the route to allow a potential unlimited number of parameters IIRC this would be /:text/:page/:lang/* Thanks, What kind of Route is this ? Regex or Static ? Cristian

Re: [fw-general] Route with variable parameters

2008-05-16 Thread Vincent
On Fri, May 16, 2008 at 2:58 PM, Cristian Bichis <[EMAIL PROTECTED]> wrote: > > >> >> I have some problems: >> 1. How can i write the route to allow a potential unlimited number of >> parameters >> > > IIRC this would be /:text/:page/:lang/* > > Thanks, > > What kind of Route is this ? Regex or St

Re: [fw-general] Zend Framework 1.5.2 is now available!

2008-05-16 Thread Thomas Fritz
On Thu, May 15, 2008 at 11:29 PM, Wil Sinclair <[EMAIL PROTECTED]> wrote: > Hi all, > > It is our pleasure to announce the release of Zend Framework 1.5.2! You > can download this new mini release from the ZF download site: > > http://framework.zend.com/download > > A list of all issues resolved i

Re: [fw-general] Zend Loader performance - benchmark

2008-05-16 Thread Matthew Weier O'Phinney
-- Keith Pope <[EMAIL PROTECTED]> wrote (on Friday, 16 May 2008, 08:23 AM +0100): > > Thx for the benchmarks :) I think there where earlier discussions on > this and the ZF team are working on their own set of benchmarks, it > will be interesting to see how all this compares. Just for reference,

Re: [fw-general] Zend_XmlRpc_Server - performance (Zend_XmlRpc_Server_Cache)

2008-05-16 Thread Matthew Weier O'Phinney
-- David Goodwin <[EMAIL PROTECTED]> wrote (on Thursday, 15 May 2008, 10:43 PM +0100): > I've written a (relatively) small Zend_XmlRpc_Server service and I'm > pleased with the architecture of the code itself; however, I now need to > see if I can boost performance. > > The documentation [1] co

[fw-general] Add functions to Zend_Form_Element

2008-05-16 Thread Milchbazi
Hello, I've tried to extend Zend_Form_Element without success. I want to add some functions like class Form_Element extends Zend_Form_Element { protected $_unit = ''; protected $_elementId; /** * Set element unit * * @param string $unit

[fw-general] Zend_Form Date input

2008-05-16 Thread Chris MacPherson
Hi, I'm trying to figure out the easiest way of creating a date input structure to use in my Zend_Forms. Something that will allow the user to select a day, month and year. I can see this becoming a monster if I have to do it using three Zend_Form_Element_Select for every date input as I hav

Re: [fw-general] Zend_XmlRpc_Server - performance (Zend_XmlRpc_Server_Cache)

2008-05-16 Thread David Goodwin
> > Unfortunately, the server cache does not do what I intended it to when I > originally coded it. The problem with performance is due to the fact > that it must both re-instantiate objects as well as perform reflection > on all of them -- but in reverse order (reflection objects are what are >

Re: [fw-general] Zend_Form Date input

2008-05-16 Thread Xavier Vidal Piera
In order to achieve this I've created a Form_Element called DateCombo. This one is associated with a View_Helper called FormDateCombo that renders the 3 selects automatically. If the element is called "birthdate", the 3 selects are called "birthdate_day", "birthdate_month" and "birthdate_year" ins

Re: [fw-general] Zend_Form Date input

2008-05-16 Thread Marcus Bointon
On 16 May 2008, at 15:17, Chris MacPherson wrote: Has anyone covered this ground before at all? Or have any ideas or pointers that I can check out. Several widget projects have good date selectors - take a look at dojo. I also like Zapatec's calendar as it's the only one I've found that

Re: [fw-general] Zend_Form Date input

2008-05-16 Thread Matthew Weier O'Phinney
-- Chris MacPherson <[EMAIL PROTECTED]> wrote (on Friday, 16 May 2008, 03:17 PM +0100): > I'm trying to figure out the easiest way of creating a date input > structure to use in my Zend_Forms. Something that will allow the user to > select a day, month and year. > > I can see this becoming a mo

Re: [fw-general] Zend_Form Date input

2008-05-16 Thread Chris MacPherson
Cool, I was just looking into extending the Zend_Form_Element so I'll take a look at the example you suggested and have a play. Thanks for the quick reply. Xavier Vidal Piera wrote: In order to achieve this I've created a Form_Element called DateCombo. This one is associated with a View_Help

Re: [fw-general] Zend_Form Date input

2008-05-16 Thread Chris MacPherson
That also sounds like a good idea, a lot less work than extending the form element probably. I'' check these both out too. Thanks Marcus. Marcus Bointon wrote: On 16 May 2008, at 15:17, Chris MacPherson wrote: Has anyone covered this ground before at all? Or have any ideas or pointers that I

RE: [fw-general] Zend_Form Date input

2008-05-16 Thread Bagus Nugroho
How about datepicker from jquery.ui, I thought it's the simplest way. Just set id on element text, and one line script on header then finish. Rgds, bn -Original Message- From: Chris MacPherson [mailto:[EMAIL PROTECTED] Sent: Friday, May 16, 2008 9:48 PM To: Marcus Bointon Cc: fw-general@

Re: [fw-general] Zend_Form Date input

2008-05-16 Thread Bart McLeod
http://marcgrabanski.com/code/ui-datepicker/ I actually used this with Zend_Form. It is easy to integrate and comes under MIT license. It has many language files and works very nice. Colors can be customized. Bart Chris MacPherson schreef: That also sounds like a good idea, a lot less work t

Re: [fw-general] Zend_Form Date input

2008-05-16 Thread Bart McLeod
it is the same one as Bagus recommends by the way... Bart McLeod schreef: http://marcgrabanski.com/code/ui-datepicker/ I actually used this with Zend_Form. It is easy to integrate and comes under MIT license. It has many language files and works very nice. Colors can be customized.

Re: [fw-general] noob problem - ZF works on localhost but not on webserver

2008-05-16 Thread vladimirn
BannersController.php - my version of existing method [code] public function adminIndexAction() { if (!$this->is_admin()) $this->_redirect("/admin/login"); $this->view->status_list = array('1' => 'online', '0'=> 'offline'); $this->view->data = Banners::getBanners();

Re: [fw-general] noob problem - ZF works on localhost but not on webserver

2008-05-16 Thread Vincent
On Fri, May 16, 2008 at 5:21 PM, vladimirn <[EMAIL PROTECTED]> wrote: > > BannersController.php - my version of existing method > [code] > public function adminIndexAction() >{ >if (!$this->is_admin()) $this->_redirect("/admin/login"); > >$this->view->status_list = array('1' =>

Re: [fw-general] SVN Repository Reorganization

2008-05-16 Thread Darby Felton
Hello again, So far I've seen some very helpful feedback on the proposed SVN repository reorganization. Thank you to everyone who has posted so far! :) For those of you that haven't commented yet, however, please review and post your thoughts. I'm thinking that we'll stop collecting feedback

Re: [fw-general] noob problem - ZF works on localhost but not on webserver

2008-05-16 Thread vladimirn
this is what i tought :) but BannersController and PopularController have same methods. This is init() public function init() { parent::init(); require_once 'Zend/Filter.php'; // load filters require_once 'Zend/Filter/StripTags.php'; //require_once 'Ze

Re: [fw-general] noob problem - ZF works on localhost but not on webserver

2008-05-16 Thread Vincent
On Fri, May 16, 2008 at 6:08 PM, vladimirn <[EMAIL PROTECTED]> wrote: > > this is what i tought :) > but BannersController and PopularController have same methods. This is > init() > public function init() >{ >parent::init(); > >require_once 'Zend/Filter.php'; > >// loa

[fw-general] Zend_Db_Table_Abstract::insert() issue

2008-05-16 Thread Philip G
I'm looking in the comments here and I ran into a problem: /** * Zend_Db_Table assumes that if you have a compound primary key * and one of the columns in the key uses a sequence, * it's the _first_ column in the compound key. */ According to this, it

[fw-general] Zend_Db in ZFW 1.5 requires hostname?

2008-05-16 Thread Philip G
I'm running into a bit of a two part issue with Zend_Db. The issue is this: initially, we used ZFW 1.0 for different sites. Zend_Db_Adapter_Pdo_Oci created Oracle DSNs using the old format: dsn://host:port/dbname. This works just fine with: dsn://dbname In ZFW 1.5, that took a 180 and used a TNS

[fw-general] Re: Zend_Db_Table_Abstract::insert() issue

2008-05-16 Thread Philip G
Ah ha. Thanks for the insight. I missed that variable. Setting it to 2 worked. Thanks! (PS: Replied to list for archive purposes). Philip On Fri, May 16, 2008 at 12:56 PM, <[EMAIL PROTECTED]> wrote: > That comment is no longer true (and should probably be removed). > > Read the comment for th

Re: [fw-general] noob problem - ZF works on localhost but not on webserver

2008-05-16 Thread vladimirn
Hello, i would like to thanks to Vincent and Jacob for their eforts to help me solve this. With their help i found what causes the problem. If i am calling: $rowset = $this->fetchAll($where, $this->getOrder()); in Banners.php this aint work. also above part of code is working in other model files.

[fw-general] Zend_Paginator... when?

2008-05-16 Thread David Mintz
Off the record, approximately when is Zend_Paginator expected to make its debut? -- David Mintz http://davidmintz.org/ The subtle source is clear and bright The tributary streams flow through the darkness

[fw-general] Re: Zend_Paginator... when?

2008-05-16 Thread David Mintz
I guess I meant Zend_Paginate (not Paginator), as in http://framework.zend.com/wiki/pages/viewpage.action?pageId=43560 On Fri, May 16, 2008 at 3:55 PM, David Mintz <[EMAIL PROTECTED]> wrote: > Off the record, approximately when is Zend_Paginator expected to make its > debut? > -- David Mintz h

Re: [fw-general] Zend_Paginator... when?

2008-05-16 Thread Matthew Weier O'Phinney
-- David Mintz <[EMAIL PROTECTED]> wrote (on Friday, 16 May 2008, 03:55 PM -0400): > Off the record, approximately when is Zend_Paginator expected to make its > debut? We reviewed the proposal this week; once the proposal space is updated and the new SVN layout approved, we can post our official c

Re: [fw-general] Re: Zend_Paginator... when?

2008-05-16 Thread Darby Felton
Hi David, Sorry I can't be more specific, but Zend_Paginate should come to fruition quite soon. We're nearly ready to implement our new proposal process, after which time the proposal can move forward so that commits may begin. I have already reviewed it, and I estimate the likelihood of its

Re: [fw-general] Zend Loader performance - benchmark

2008-05-16 Thread Stanislav Malyshev
Hi! I was thinking about this after the earlier discussions and was wondering what people thought about phar? Would this improve performance if you really needed it? phar is a bit more complicated story... We'll be doing some work on performance-testing phar too, but that'll take some time. F

Re: [fw-general] Zend_XmlRpc_Server - performance (Zend_XmlRpc_Server_Cache)

2008-05-16 Thread David Goodwin
I would like to address this in the future; would you be willing to put an issue in the tracker, so it doesn't get lost, but also so that I can ping you about testing? See http://framework.zend.com/issues/browse/ZF-3280 thanks David. -- David Goodwin Pale Purple

RE: [fw-general] ACL Roles / Resources

2008-05-16 Thread Robert Castley
Hi, I don't know if my simple tutorial will help: http://framework.zend.com/wiki/display/ZFUSER/Using+Zend_Acl+with+a+database +backend - Robert -Original Message- From: Joseph Crawford [mailto:[EMAIL PROTECTED] Sent: 15 May 2008 21:33 To: fw-general@lists.zend.com Subject: [fw-gene

Re: [fw-general] Zend_Paginator... when?

2008-05-16 Thread Matthew Ratzloff
Hi David, Jurriën and I currently hope to have Zend_Paginate ready for Zend Framework 1.6. -Matt On Fri, May 16, 2008 at 12:55 PM, David Mintz <[EMAIL PROTECTED]> wrote: > Off the record, approximately when is Zend_Paginator expected to make its > debut? > > -- > David Mintz > http://davidmintz.