Re: [fw-general] Current Module in Application Resource

2009-12-03 Thread takeshin
W dniu 2009-12-04 01:59, Ben Scholzen 'DASPRiD' [via Zend Framework Community] pisze: > finished. You may want to do you logic in a controller plugin: > $front->getRequest()->getModuleName(); > > Thank you. That's the way I do it for now. -- regards takeshin -- View this message in conte

Re: [fw-general] Current Module in Application Resource

2009-12-03 Thread Ben Scholzen 'DASPRiD'
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 You mean you want to access the current module in you bootstrap? The module is only known after the dispatcher was started and the routing finished. You may want to do you logic in a controller plugin: $front->getRequest()->getModuleName(); takeshin

[fw-general] Help with Zend Rest Route

2009-12-03 Thread AJ McKee
hi All, I seem to be running into a PEBKAC issue with Zend_Rest_Route I've initialized the rest route with the following (See http://framework.zend.com/manual/en/zend.controller.router.html#zend.controller.router.basic ) $front = Zend_Controller_Front::getInstance(); $router = $front->getRouter(

[fw-general] Zend_Amazon_Service_DevPay

2009-12-03 Thread Wil Sinclair
The Zend_Amazon_Service_DevPay proposal is ready for review at http://framework.zend.com/wiki/display/ZFPROP/Zend_Service_Amazon_DevPay +-+Wil+Sinclair. This proposal should be interesting to any developer that is looking to make a buck on the cloud. The DevPay service takes care of all billing, f

Re: [fw-general] Doctrine - default directory structure

2009-12-03 Thread takeshin
And what about structure like this: + application |+ configs | application.ini | schema.yml (one for all models, or each model in separate file? Maybe in /data/ ?) |+ models |+ Db |+ generated |+ controllers |+ modules |+ other

Re: [fw-general] Doctrine - default directory structure

2009-12-03 Thread Matthew Weier O'Phinney
-- Jon Lebensold wrote (on Thursday, 03 December 2009, 04:39 PM -0500): > I think that in the architecture you're suggesting, it makes a lot of sense, > however I wonder how many apps need per-module models since you're essentially > creating two resource layers: one "system-wide" one and one for

Re: [fw-general] Doctrine - default directory structure

2009-12-03 Thread Juozas
Hi. I just recently uploaded my demo-code here: http://github.com/juokaz/php-examples/tree/master/doctrine-application-resource/, you might want to check it out. Usually I have fixtures, migrations and stuff like that in config, but you can easily move it to /data folder as well. The biggest pro

Re: [fw-general] Doctrine - default directory structure

2009-12-03 Thread takeshin
Jon Lebensold wrote: > > takeshin, I believe the sql/ folder is supposed to house SQL that would > run > via the Doctrine CLI and this is exactly the same approach that you would > use with the YAML files. > I'd rather not put anything that requires write access to the /configs/ I would store

Re: [fw-general] Doctrine - default directory structure

2009-12-03 Thread Jon Lebensold
takeshin, I believe the sql/ folder is supposed to house SQL that would run via the Doctrine CLI and this is exactly the same approach that you would use with the YAML files. my 2 cents, j On Thu, Dec 3, 2009 at 4:38 PM, takeshin wrote: > > Happily, Doctrine 1.2 has new additions which allows

Re: [fw-general] Doctrine - default directory structure

2009-12-03 Thread Jon Lebensold
I think that in the architecture you're suggesting, it makes a lot of sense, however I wonder how many apps need per-module models since you're essentially creating two resource layers: one "system-wide" one and one for that particular portion of the application. If you're manipulation of a subset

Re: [fw-general] Doctrine - default directory structure

2009-12-03 Thread takeshin
Happily, Doctrine 1.2 has new additions which allows for easy integrating with ZF models autoloader. But that's not the point of this post. I'm just curious of standard directory tree when working with Doctrine (as proposed for ZF application once). My previous setup was more or less like this:

Re: [fw-general] Doctrine - default directory structure

2009-12-03 Thread Matthew Weier O'Phinney
-- Jon Lebensold wrote (on Thursday, 03 December 2009, 03:34 PM -0500): > not true... I put the Doctrine CLI script in a /scripts folder. All the other > folders (migrations / sql / yaml / data) I believe belong in configs/ since > they are part of setting up an app or migrating releases. > > the

Re: [fw-general] Doctrine - default directory structure

2009-12-03 Thread Jon Lebensold
not true... I put the Doctrine CLI script in a /scripts folder. All the other folders (migrations / sql / yaml / data) I believe belong in configs/ since they are part of setting up an app or migrating releases. the models belong in /model I haven't found a good solution to autoloading /modules/{

[fw-general] Doctrine - default directory structure

2009-12-03 Thread takeshin
Where do you store models, migrations, sql, yaml, cli scripts etc. when using Doctrine (1.2) with ZF. I noticed on zendcasts.com, that Jon puts a lot to /application/configs/ It makes me wonder… -- regards takeshin -- View this message in context: http://n4.nabble.com/Doctrine-default-direct

RE: [fw-general] ZF Open Source Project: Example of Best Practices?

2009-12-03 Thread swilhelm
Thanks Wil. You mentioned Digitalus, http://digitaluscms.com. It seems like it might be the best example open source project running on ZF. They mention version 2.0 is under development and will take advantage of more core ZF components, but I can not find a public source repository containing v

Re: [fw-general] ZendX_JQuery_Form discussion

2009-12-03 Thread Jigal sanders
Hello everyone, Since I want to use some JQuery in my form I installed ZendX_JQuery. But can anyone give example's or tutorials to learn how to use Zend_JQuery_Form? How does it go together wit zend_form? Thanks On Thu, Dec 3, 2009 at 11:32 AM, Саша Стаменковић wrote: > I'm trying now to make ta

Re: [fw-general] Current Module in Application Resource

2009-12-03 Thread takeshin
weierophinney wrote: > >> How to get current module name in application resource? > > You can't. The module is not known until after routing. > Thank you. -- regards takeshin -- View this message in context: http://n4.nabble.com/Current-Module-in-Application-Resource-tp947682p947763.ht

Re: [fw-general] Current Module in Application Resource

2009-12-03 Thread Matthew Weier O'Phinney
-- takeshin wrote (on Thursday, 03 December 2009, 07:00 AM -0800): > How to get current module name in application resource? You can't. The module is not known until after routing. > It is stored in Dispatchers $_curModule member variable, > but it is protected. > > Request object is null. > >

Re: [fw-general] getFrontController() returns null?

2009-12-03 Thread Ralph Schindler
I would check to see if your environment is the same: * PHP Version * ZF Version Then, if you don't see any issues there, try turning error_reporting and display_errors on, just to see if there are some warnings being raised on the production machine. Generally, the code should work exactly

Re: [fw-general] XMheL

2009-12-03 Thread Daniel Latter
Thanks, I'll have a look at Zend_Dom, I was looking for Zend_Xml so missed that one. 2009/12/3 prodigitalson : > > > > Daniel Latter wrote: >> >> Can anyone recommend any XML libs they use with thier ZF app? I need to >> create, parse, request/respond etc.. >> > > I normally use SimpleXML or DO

Re: [fw-general] XMheL

2009-12-03 Thread prodigitalson
Daniel Latter wrote: > > Can anyone recommend any XML libs they use with thier ZF app? I need to > create, parse, request/respond etc.. > I normally use SimpleXML or DOMDocument. Ive also used XMLReader in the past for huge files, but never in conjunction with ZF. There is also Zend_Dom http:

[fw-general] Current Module in Application Resource

2009-12-03 Thread takeshin
How to get current module name in application resource? It is stored in Dispatchers $_curModule member variable, but it is protected. Request object is null. Do I have to dispatch first? How? -- regards takeshin -- View this message in context: http://n4.nabble.com/Current-Module-in-Applica

[fw-general] XMheL

2009-12-03 Thread Daniel Latter
Hi All, Can anyone recommend any XML libs they use with thier ZF app? I need to create, parse, request/respond etc.. Thanks.

Re: [fw-general] "observe" controller action

2009-12-03 Thread Thorsten Suckow-Homberg
>I've written a fairly robust system, Phly_PubSub: > >PHP 5.3 version: >http://github.com/weierophinney/phly/tree/mvcfsm/Phly_PubSub/ > >PHP 5.2+ version: >http://github.com/weierophinney/phly/tree/master/Phly_PubSub/ ...which would follow the traditional MessageBus-approach. +1

Re: [fw-general] "observe" controller action

2009-12-03 Thread Matthew Weier O'Phinney
-- Cameron wrote (on Thursday, 03 December 2009, 10:03 AM +0800): > I've done a similar thing by using an Events and Subscribe system, my > controller abstract has a number of event broadcasts throughout, and it's very > simple to build a subscriber that latches on to whatever it needs to in order

Re: [fw-general] File Upload Progress

2009-12-03 Thread Thomas Weidner
Look into the demos directory. There are 2 demos shipped with ZF which show how file progress works. Greetings Thomas Weidner, I18N Team Leader, Zend Framework http://www.thomasweidner.com - Original Message - From: "Andrei Iarus" To: "Zend Framework" Sent: Thursday, December 03, 200

Re: [fw-general] ZendX_JQuery_Form discussion

2009-12-03 Thread Саша Стаменковић
I'm trying now to make tabs, but with display groups, not subforms like in docs example In my form which extends ZendX_JQuery_Form $this->setDisableLoadDefaultDecorators(true); $this->setDecorators(array( 'FormElements', array('TabContainer', array( 'id' => 'tabContainer'

Re: [fw-general] ZendX_JQuery_Form discussion

2009-12-03 Thread Саша Стаменковић
Is there a way to achieve that in one shot? My form is extends ZendX_JQuery_Form and I want to $this->setElementDecorators() but which one to set UiWidgetElement or ViewHelper? I don't want to set decorators for each element separately. Regards, Saša Stamenković On Thu, Dec 3, 2009 at 10:21 AM,

Re: [fw-general] Return value from controller action

2009-12-03 Thread Jurian Sluiman
Thanks for the answer :) Actually I simplified the example. The real case, the admin module builds an Admin_Form_Page. Based on the request, the blog module can return a form instance, but it's not allways the case. The form is a Blog_Form_Admin (for example, but the admin module doesn't know this

[fw-general] File Upload Progress

2009-12-03 Thread Andrei Iarus
Hello,   How is PHP/the extension ZF aware of the UPLOAD_ID in the code from the documentation:   $adapter = new Zend_ProgressBar_Adapter_Console(); $upload  = Zend_File_Transfer_Adapter_Http::getProgress($adapter); $upload = null; while (!$upload['done']) { $upload = Zend_File_Transfer_Adapt