[fw-general] ZF3 release date

2015-10-20 Thread Ralf Eggert
Hi, since I wasn't in Las Vegas yesterday, I could not attend the ZendCon keynote from Andi and Zeev. I tried to follow the Twitter messages and I notices that ZF3 and Zend\Expressive was mentioned as well. Zend\Expressive was officially announced yesterday which is really, reelly great news! I al

[fw-general] Projects based on Zend Framework

2015-10-17 Thread Ralf Eggert
you could add some sentences about the project background. Thanks and best regards, Ralf -- Ralf Eggert - Travello GmbH - An der Eiche 15 - 25421 Pinneberg Tel 04101/8529401 - Fax 04101/8529402 - Web http://de.travello.com Geschäftsführer: Ralf Eggert - Amtsgericht Pinneberg: HRB

Re: [fw-general] Writing Zend\Validator Rules in config files

2015-03-30 Thread Ralf Eggert
Hi Philip, you can note your validation (and filter) rules in an file in the array format and pass it to the Zend\InputFilter\Factory::createInputFilter() method. Here is an example (fourth listing on this page) http://framework.zend.com/manual/current/en/modules/zend.input-filter.intro.html Th

Re: [fw-general] Bypasses the MVC bootstrapping

2015-03-23 Thread Ralf Eggert
Hi George, > How to use a standalone php file in the public folder that bypasses the > MVC bootstrapping, because I want to use Zend\ProgressBar adapter for > upload files. The simplest setup could look like this. The file needs to be placed in the public folder and the framework should be ins

Re: [fw-general] \Zend\Db and what to do?

2014-11-26 Thread Ralf Eggert
Hi Marc, first of all, I have no idea about informix at all. But this is what I would do to start informix support for ZF2. First, you need the driver. You must decide if you want to use PDO or the native ifx extension. If you want to use PDO the driver part is quite simple, because you can use t

Re: [fw-general] @ZendTeam : ping

2014-11-11 Thread Ralf Eggert
Hi again, as an addition to the discussion, here are the very concrete plans for Symfony 3. Becoming just an evolutional update rather that a revolutional update looks quite the same as the plans for ZF3. http://symfony.com/blog/symfony-3-0-the-roadmap Would be really nice to see a roadmap like

Re: [fw-general] @ZendTeam : ping

2014-11-11 Thread Ralf Eggert
Hi Marco, > Not really kicked, just all components would be exploded into smaller > libs, as they should be. Ok, I mistunderstood the suggestion then. If that is the case it is almost the same what I would see the ZF3 to go like. > Waiting for that as well. As mentioned in my previous response t

Re: [fw-general] @ZendTeam : ping

2014-11-10 Thread Ralf Eggert
Hi, while I think that no 3 is an interesting idea, I'm afraid it will piss off a lot of people if components like Zend\Config, Zend\Db, Zend\Console, or Zend\Permissions get kicked for a ZF3 release. I am doing a lot of ZF2 beginner trainings these days and most of my attendees are planning to u

Re: [fw-general] ZF2 Code Sniffer Ruleset

2014-08-19 Thread Ralf Eggert
Dear Marco and Xander, thanks for your replies. That helped a lot. Thanks and best regards, Ralf -- List: fw-general@lists.zend.com Info: http://framework.zend.com/archives Unsubscribe: fw-general-unsubscr...@lists.zend.com

[fw-general] ZF2 Code Sniffer Ruleset

2014-08-17 Thread Ralf Eggert
version of PSR-2, or is that wrong? Thanks and best regards, Ralf -- Ralf Eggert - Travello GmbH - An der Eiche 15 - 25421 Pinneberg Tel 04101/8529401 - Fax 04101/8529402 - Web http://de.travello.com Geschäftsführer: Ralf Eggert - Amtsgericht Pinneberg: HRB 6112 PI Ralf Eggert

Re: [fw-general] Reduce basic request time of an ZF2 application

2014-07-17 Thread Ralf Eggert
Hi Marco, > Is there a varnish instance in front of it? Are you stripping cookies? Nope. Just a good old LAMP. > Another thing to try is using a dedicated `EventManager` instance that has > no `SharedEventManager` for instances that are not requiring that kind of > flexibility. This *may* break

Re: [fw-general] zfmodules

2014-07-17 Thread Ralf Eggert
Hi Marco, > 2 drives on RAID 1 failed simultaneously (yay! thank you, luck!) while we > were at DPCON (can't remember if it was the first conference day). > We assumed it was a RAID controller failure, so Evan checked the machine at > the DC as soon as he got back. > The drives were sent to a whit

Re: [fw-general] zfmodules

2014-07-17 Thread Ralf Eggert
Hi Marco, Marco Pivetta schrieb am 17.07.2014 09:48: > Why is everyone re-iterating the same question over, and over, and over, > and over, and over, and over, and over again? > > There is an issue: > https://github.com/zendframework/modules.zendframework.com/issues/183 Sorry, I did not know tha

Re: [fw-general] zfmodules

2014-07-16 Thread Ralf Eggert
Hi, tonystamp schrieb am 14.07.2014 21:38: > What happened to the website zfmodules (was it modules.zendframework.com)? > Doesn't seem to be online anymore. I still get an "Service Temporarily Unavailable" error. Who can setup the website again? Thanks and best regards, Ralf -- List: fw-genera

Re: [fw-general] Reduce basic request time of an ZF2 application

2014-07-07 Thread Ralf Eggert
Hi Marco, thanks for your ideas. > Did you consider caching at HTTP level first? Yep. I have set the following: Cache-Control: cache, store Expires: Thu, 01 Dec 1983 20:00:00 GMT Etag: 2e922b7d992758b1ee143aa70cf2ab05 Pragma: cache But with no effect. > The view manager can probably completel

[fw-general] Reduce basic request time of an ZF2 application

2014-06-28 Thread Ralf Eggert
Hi, I have an application that returns only JSON data (not built on Apigility). A normal request has a basic request time of about 25ms. Config cache is already turned on. I know that it is not much. But still I wonder if I can reduce this even more. Speed is a major requirement. For example I th

[fw-general] Deploy an ZF2 app

2014-05-07 Thread Ralf Eggert
Hi, I wonder how all of you deploy your ZF2 applications to both staging and production servers. I used a couple of different approaches and have seen others in projects respectively: - Use Git and Composer for deployment - Use https://github.com/zfcampus/zf-deploy - Use Jenkins CI for deployment

Re: [fw-general] Almost ready for 2.3.0!

2014-03-12 Thread Ralf Eggert
Hi Matthew, > As such, the above example would not have worked at any time in the 2.2 > series. Sorry, my mistake. The code snippet had the wrong use statement. It should have been: use Zend\Mvc\I18n\Translator; Thanks and best regards, Ralf -- List: fw-general@lists.zend.com Info: http://f

Re: [fw-general] Almost ready for 2.3.0!

2014-03-12 Thread Ralf Eggert
Hi Matthew, I found another one: use Zend\I18n\Translator\Translator; AbstractValidator::setDefaultTranslator( Translator::factory($this->config['translations']['validator']) ); Does not work, since AbstractValidator::setDefaultTranslator() expects the implementation of the Zend\Valid

Re: [fw-general] Almost ready for 2.3.0!

2014-03-12 Thread Ralf Eggert
Hi Matthew, Matthew Weier O'Phinney schrieb am 12.03.2014 00:29: > That's a good point, and I'll make sure to point it out in the release > notes. That will be ok for me if it is added to the release notes... :-) Thanks and best regards, Ralf -- List: fw-general@lists.zend.com Info: http://

Re: [fw-general] Almost ready for 2.3.0!

2014-03-11 Thread Ralf Eggert
Hi Matthew, Matthew Weier O'Phinney schrieb am 11.03.2014 18:45: > This is now addressed -- Norbert and Ralf -- can you each test again for me? > :) I get this message: Fatal error: Call to undefined method Zend\Mvc \I18n\Translator::factory() in /home/devhost/v3.travello.com/vendor /Ralf

[fw-general] Test the ViewModel with AbstractHttpControllerTestCase not possible, right?

2013-10-26 Thread Ralf Eggert
her use a normal PHPUnit_Framework_TestCase and test a controller like a unit on its own? Is this correct? Thanks and best regards, Ralf -- Ralf Eggert - Travello GmbH - An der Eiche 15 - 25421 Pinneberg Tel 04101/8529401 - Fax 04101/8529402 - Web http://de.travello.com Geschäftsfüh

[fw-general] Has anyone combined PHPUnit_Extensions_Database_TestCase with Zend\Db\Adapter\Adapter?

2013-10-24 Thread Ralf Eggert
Hi, with ZF1 we had the Zend_Test_PHPUnit_DatabaseTestCase class for database integration tests. There is no such class for ZF2 yet. Has anyone succeeded to combine PHPUnit_Extensions_Database_TestCase with an Zend\Db\Adapter\Adapter instance yet? Thanks and best regards, Ralf -- List: fw-gene

Re: [fw-general] Does this Unit Test for a TableGateway class make sense?

2013-10-24 Thread Ralf Eggert
Hi Franz, thanks for your reply. > I don't think its misleading. For unit test purposes and i emphasize the > "unit" it serves the purpose of the mocked object, the TableGateway in this > case. > It really all depends on what you are trying to accomplish. If you just > want to unit test your sing

Re: [fw-general] Does this Unit Test for a TableGateway class make sense?

2013-10-24 Thread Ralf Eggert
Hi Franz, franz de leon schrieb am 24.10.2013 15:35: > sounds like you are looking more of an integration test and data fixtures. Ok, need to look into that. By the way, I got my inspiration from this little tutorial which has a quite different setup. In the tutorial the AlbumTable uses a TableGa

[fw-general] Does this Unit Test for a TableGateway class make sense?

2013-10-24 Thread Ralf Eggert
Hi, I have the following unit test, which uses quite some mocked objects to test a method of a CustomerTable which extends TableGateway. http://pastebin.com/d1try7YZ This is the CustomerTable with its fetchList() method that should be tested by the unit test. http://pastebin.com/qT2P7GuD The u

[fw-general] And now for something completely different

2013-09-02 Thread Ralf Eggert
Hi, has anyone heard anything about these little green fellas? http://elephpants.dasprids.de/ Thanks and best regards, Ralf -- List: fw-general@lists.zend.com Info: http://framework.zend.com/archives Unsubscribe: fw-general-unsubscr...@lists.zend.com

Re: [fw-general] Has anyone got EdpSuperluminal to work?

2013-08-28 Thread Ralf Eggert
Hi, found the solution myself. It was a memory_limit issue. After rising the memory_limit cache file creation worked. Thanks and best regards, Ralf -- List: fw-general@lists.zend.com Info: http://framework.zend.com/archives Unsubscribe: fw-general-unsubscr...@lists.zend.com

[fw-general] Has anyone got EdpSuperluminal to work?

2013-08-28 Thread Ralf Eggert
Hi, I just tried to get EdpSuperluminal to run for my app. But unfortunately, the page is always aborted, when adding the EDPSUPERLUMINAL_CACHE param to an url. I already filed an issue for this but I wonder if anyone got it to run with ZF 2.2.2? https://github.com/EvanDotPro/EdpSuperluminal/issu

Re: [fw-general] Translate routes

2013-08-05 Thread Ralf Eggert
Hi again, with this little test script I just figured out that the TranslatorAwareTreeRouteStack is not working as I expected. It really seems only to work when I want to translate literal segments in a route and it cannot translate a placeholder. I need to find another solution to solve my probl

Re: [fw-general] Translate routes

2013-08-05 Thread Ralf Eggert
Hi Daniel, > I don't have answer but maybe this will shed some light?: > > http://zend-framework-community.634137.n4.nabble.com/Fwd-About-Translatable-segments-td4660214.html Thanks for your answer, but that thread is all about how to setup the TranslatorAwareTreeRouteStack for translating route

Re: [fw-general] Translate routes

2013-08-05 Thread Ralf Eggert
Hi, > 1. Can I configure the translator in the module.config.php as well or >do I need to do it in the Module::onBootstrap() all the time? I solved this issue by using my I18nListener which implements the ListenerAggregateInterface. So don't worry about that. > 2. Is the translation only wor

[fw-general] Translate routes

2013-08-03 Thread Ralf Eggert
Hi, I want to use the new feature for translating routes but I am lacking proper documentation. I found this, but still have some questions: http://stackoverflow.com/questions/17395634/zend-framework-2-translating-routes 1. Can I configure the translator in the module.config.php as well or do

[fw-general] FormElementManager with Factories to pass select options

2013-08-01 Thread Ralf Eggert
Hi, I am using the FormElementManager to handle my forms. My forms are set up in the init() method which is called by the FormElementManager on instantiation. So far so good. I have some forms which need additional setup, so I created factories for them and configured these factories for the Form

Re: [fw-general] Initializer is called twice for each instance

2013-06-17 Thread Ralf Eggert
Yep. Marco Pivetta schrieb am 17.06.2013 21:56: > See > https://github.com/zendframework/zf2/blob/release-2.2.0/library/Zend/InputFilter/InputFilterPluginManager.php#L33-L38 It took me two hours to figure that out and to understand why this is done. Just forgot to mention it here, sorry. Regards

Re: [fw-general] FormElementManager

2013-06-17 Thread Ralf Eggert
Hi, now I tried to set up the FormElementManager for my custom forms and form elements and I feel a little lost. Here is my configuration for a simple form: 'form_elements' => array( 'invokables'=> array(

[fw-general] FormElementManager

2013-06-17 Thread Ralf Eggert
Hi, I am trying to understand the FormElementManager. From the name of it I first thought, that it is used to define all available form elements (standard ZF2 form elements and custom form elements). So I added my custom form element and tried to use it without success. I think the configuration i

[fw-general] Initializer is called twice for each instance

2013-06-17 Thread Ralf Eggert
Hi, I added an initializer for the InputFilterPluginManager like this: - return array( 'input_filters' => array( 'initializers'=> array( 'CsrfInput' => 'MyLib\InputFilter\CsrfInputInitializer', ),

Re: [fw-general] How to use Zend\Session\Service\SessionConfigFactory

2013-06-12 Thread Ralf Eggert
Hi Matthew, > So, typically, you'll grab the session and inject it into services > that interact with it (flash messenger, controllers, auth, etc.) -- > that way, the session is only initialized when you actually need to > interact with it. This is, of course, why we haven't integrated it > entire

Re: [fw-general] How to use Zend\Session\Service\SessionConfigFactory

2013-06-12 Thread Ralf Eggert
Hi Matthew, > Take a look at the original PR that contains the new factories, as it > has examples showing how to use the various Session factories: > > - https://github.com/zendframework/zf2/pull/4268 Actually, that PR was the only piece of documentation I found which I used to set up the Sessi

Re: [fw-general] How to use Zend\Session\Service\SessionConfigFactory

2013-06-12 Thread Ralf Eggert
Hi, ok, it does work like this: == class Module implements BootstrapListenerInterface, ConfigProviderInterface, AutoloaderProviderInterface { public function onBootstrap(EventInterface $e) { // con

[fw-general] How to use Zend\Session\Service\SessionConfigFactory

2013-06-12 Thread Ralf Eggert
Hi, I wonder how I can use Zend\Session\Service\SessionConfigFactory to configure my sessions. My module.config.php looks like this: == return array( 'service_manager' => array( 'factories' => array( '

Re: [fw-general] ZendDeveloperTools and BjyProfiler not showing database profiling

2013-06-09 Thread Ralf Eggert
Hi, I hate this situation when I figure out the solution of a problem just after sending a mail to the list. Of course this went wrong since I use the $db->query() in this way. When combined with table-gateway it works as expected. So, forget about my mail please. Regards, Ralf -- List: fw-g

[fw-general] ZendDeveloperTools and BjyProfiler not showing database profiling

2013-06-09 Thread Ralf Eggert
>getArrayCopy()); } What am I missing? I used to get this combination run without any hassle so I wonder what is going wrong. Thanks and best regards, Ralf -- Ralf Eggert Geschäftsführer Travello GmbH An der Eiche 15 25421 Pinneberg Geschäftsführer: Ralf Eggert Amtsgericht Pinneberg HRB 6112 PI Te

Re: [fw-general] FilterManager & ValidatorManager

2013-05-10 Thread Ralf Eggert
Hi Daniel, Daniel Gimenes schrieb am 03.05.2013 18:31: > These injections are made after construction, then you need to define > your filters/validators in init() method. > InputFilterManager will call init() for you after everything is injected. Ok, so I should use the InputFilterManager for In

Re: [fw-general] FilterManager & ValidatorManager

2013-05-03 Thread Ralf Eggert
Hi Daniel, Daniel Gimenes schrieb am 03.05.2013 18:09: > If you use InputFilterManager to construct your InputFilter, then > InputFilterManager will inject FilterManager and ValidatorManager in > your chains. > See > https://github.com/zendframework/zf2/blob/master/library/Zend/InputFilter/Inpu

[fw-general] FilterManager & ValidatorManager

2013-05-03 Thread Ralf Eggert
Hi, I really like the idea of the FilterManager & ValidatorManager to add custom filters and validators. This can be configured for filters with implementing Zend\ModuleManager\Feature\FilterProviderInterface in my Module.php or using the 'filters' configuration key within my module.config.php fil

Re: [fw-general] Sort the namespace use statements?

2013-04-21 Thread Ralf Eggert
Hi Andreas, > I sort them alphabetically and that's how PhpStorm does it, too. > > Otherwise, as far as I can tell, PHP FIG does not give a recommendation. > > However, I believe that sorting them alphabetically gives you a good > overview. Thanks. Unfortunately Zend Studio 10 does not sort

Re: [fw-general] Sort the namespace use statements?

2013-04-21 Thread Ralf Eggert
Hi Marco, Marco Pivetta schrieb am 20.04.2013 16:11: > Sort them and group them by meaning :) Well, normally sorting them alphabetically does group them by meaning as well in most cases... ;-) Regards, Ralf -- List: fw-general@lists.zend.com Info: http://framework.zend.com/archives Unsubscrib

[fw-general] Sort the namespace use statements?

2013-04-20 Thread Ralf Eggert
Hi, I wonder if there is any best practice or recommendation on how to sort the namespace use statements on top of each file. Should they be sorted: a) by name b) by usage order in the file c) by importance d) not at all e) Thanks for your comments / ideas / links. Best regards, Ralf --

Re: [fw-general] Inject translator into an entity: good or bad?

2013-03-18 Thread Ralf Eggert
Hi Marco, > I think that injecting anything in an entity is a bad practice. > An entity (for me) is more similar to a value object with an identifier, so > you should not move logic to it. > Instead, consider using a wrapper for the entity: > > class MyEntity > { > // ... > } > > class MyTra

Re: [fw-general] Inject translator into an entity: good or bad?

2013-03-17 Thread Ralf Eggert
Hi, I missed an important point. My entity class have a method to pass back an array with all possible values for the status. This array needs to be translated as well, so having the translator injected to an entity would make it rather simple. Otherwise a form needs to handle the translations whe

[fw-general] Inject translator into an entity: good or bad?

2013-03-17 Thread Ralf Eggert
Hi, I have a couple of entity classes, like user, article, product. These have some properties that can have a defined set of options, for example the status could be "new", "approved" or "blocked". These options need to be translated some where and some how. For translation texts I always use pa

Re: [fw-general] Would you use the Event-Manager for caching purposes?

2013-03-15 Thread Ralf Eggert
LOL, Just found, that the docs show a nicely example for using the Event Manager for caching... http://zf2.readthedocs.org/en/latest/modules/zend.event-manager.event-manager.html#examples I should go to bed. Never mind my mail. Good night. Ralf -- List: fw-general@lists.zend.com Info: http:/

[fw-general] Would you use the Event-Manager for caching purposes?

2013-03-15 Thread Ralf Eggert
Hi, I have a couple of model services which handle all the stuff for a model. For example the user model service can fetch data from the TableGateway, handles forms (for registration) and connects to the authentication service. So my controllers just correspond to this user model service. Works ni

[fw-general] ZF2 radio buttons with images

2013-03-12 Thread Ralf Eggert
Hi, I want to create a set of radio buttons with images as the labels. But the images are escaped by default. How can I disable the escaping for a radio button form element? Regards, Ralf -- List: fw-general@lists.zend.com Info: http://framework.zend.com/archives Unsubscribe: fw-general-unsubs

Re: [fw-general] ZF2: Chaining authentication adapters?

2013-02-19 Thread Ralf Eggert
Hi Pierre, thanks for your suggestion. I decided to just create one adapter which can handle both types of a password. Regards, Ralf -- List: fw-general@lists.zend.com Info: http://framework.zend.com/archives Unsubscribe: fw-general-unsubscr...@lists.zend.com

[fw-general] ZF2: Chaining authentication adapters?

2013-02-18 Thread Ralf Eggert
adapter should be used. Is it possible to chain authentication adapters or should I write my own adapter which is implementing this szenario? I already have a custom authentication adapter for the Bcrypt authentication anyway. Thanks and regards, Ralf -- Ralf Eggert Geschäftsführer Travello GmbH

Re: [fw-general] How to handle 404 with action controller

2013-02-09 Thread Ralf Eggert
Thanks for that hint, though the docs look a little incomplete at then moment. Regards, Ralf -- List: fw-general@lists.zend.com Info: http://framework.zend.com/archives Unsubscribe: fw-general-unsubscr...@lists.zend.com

Re: [fw-general] How to handle 404 with action controller

2013-02-08 Thread Ralf Eggert
Nice and clean solution! I just wonder if there is any problem when I just redirect after file creation to the new file. Regards and good night, Ralf -- List: fw-general@lists.zend.com Info: http://framework.zend.com/archives Unsubscribe: fw-general-unsubscr...@lists.zend.com

Re: [fw-general] How to handle 404 with action controller

2013-02-08 Thread Ralf Eggert
Hi Marco, currently the requests look like /pictures/2013/02/05/44155.o.jpg <= original existing file /pictures/2013/02/05/44155.l.jpg <= large thumbnail /pictures/2013/02/05/44155.m.jpg <= medium thumbnail /pictures/2013/02/05/44155.s.jpg <= small thumbnail But you got m

[fw-general] How to handle 404 with action controller

2013-02-08 Thread Ralf Eggert
Hi, My application is mainly just delivering images. Each image exists for a minimum size of 800x600 pixel on disk. When a thumbnail is requested for the first time, this file does not exist. So my action controller should check if the current url is a request for a thumbnail version of an image.

Re: [fw-general] Weird problem with Rbac for ZF 2.1.0

2013-02-04 Thread Ralf Eggert
Hi Matthew, thanks for clarification. The solution for this change is quite simple if I want to get the same result as before. I only need to change the setParent() calls to addChild() calls. Then the "guest" is a child of "customer" and the "customer" inherits the rights from the "guest". So it i

[fw-general] Weird problem with Rbac for ZF 2.1.0

2013-02-03 Thread Ralf Eggert
Hi, a couple of weeks ago, I wrote a little test script to demonstrate the Zend\Permissions\Rbac component. It worked as expected with the 2.1.0-dev version I used. After rechecking the script with 2.1.0 now, the results have changed. Here is the script for copy / pasting: ===

Re: [fw-general] Good or bad practice for view helpers

2013-01-26 Thread Ralf Eggert
Hi Marco, > Write operations and generally changes deriving from logic in views is > really to be avoided. Except, if these changes affect the view logic itself, like changing the layout script. That helps a lot for the discussion. :-) Regards, Ralf -- List: fw-general@lists.zend.com Info: ht

Re: [fw-general] Good or bad practice for view helpers

2013-01-26 Thread Ralf Eggert
Hi Marco, Thanks for your comment. > I'd say this is a good practice! The view should not know that there is a > pizza service, but the helper can have that. In fact, many helpers have > references to more complex services like the router or generally things > that are not view-specific. But all

[fw-general] Good or bad practice for view helpers

2013-01-26 Thread Ralf Eggert
Hi, in a discussion an issue came up regarding good or bad practice for ZF2 view helpers. Is it good or bad practice to inject other objects, especially model services, into a view helper to call methods to get some data fetched? For example within the __invoke() method I could get the data from

Re: [fw-general] [zf2] Class Map Generator utility write path with //

2013-01-21 Thread Ralf Eggert
Hi, what happens if you move to the Album path first: cd /home/fb/public_html/gs/module/Album php /home/fb/public_html/gs/vendor/bin/classmap_generator.php Do you still encounter the double slash? Regards, Ralf -- List: fw-general@lists.zend.com Info: http://framework.zend.com/archives Unsub

Re: [fw-general] Working example for Zend\Authentication\Adapter\Http

2013-01-13 Thread Ralf Eggert
Hi again, Ok, I sorted this out myself now. First of all, my basic password file was wrong. It should look like this with the unencrypted password and the realm in it: luigi:Luigis Pizza-Service:luigi francesca:Luigis Pizza-Ser

Re: [fw-general] Working example for Zend\Authentication\Adapter\Http

2013-01-07 Thread Ralf Eggert
Hi again, has anyone any idea how to solve this? Regards, Ralf Ralf Eggert schrieb am 21.12.2012 15:08: > Hi, > > I am trying to build a full working example for the usage of > Zend\Authentication\Adapter\Http. The following is located in a view > script (for demonstration purp

Re: [fw-general] Re: File upload with Post/Redirect/Get Plugin

2013-01-03 Thread Ralf Eggert
Hi Matthew, > Removed, as it was completely broken, and Chris Martin (cgmartin) was > able to do the work it handled via a combination of filters and > validators (which is what Zend\File\Transfer primarily relied upon > anyways). See the examples from Chris that others posted above to see > how t

Re: [fw-general] Re: File upload with Post/Redirect/Get Plugin

2013-01-02 Thread Ralf Eggert
Thanks. > check the ZF2FileUploadExamples > repository for > examples I repeat my question: where is Zend\File\Transfer gone? Regards, Ralf -- List: fw-general@lists.zend.com Info: http://framework.zend.com/archives Unsubscribe: fw-genera

Re: [fw-general] File upload with Post/Redirect/Get Plugin

2013-01-02 Thread Ralf Eggert
Hi, Matthew Weier O'Phinney schrieb am 02.01.2013 14:43: > As Bas noted, this feature will be available starting in 2.1; Chris > Martin has provided a nice solution for it, as part of a more > comprehensive set of features around handling file uploads within > forms. I just installed 2.1.0-dev an

Re: [fw-general] Zend\Soap\Server method calls return null

2013-01-02 Thread Ralf Eggert
Hi Matthew, don't worry about it anymore. I had an issue in my server handling part. -- use Zend\Http\PhpEnvironment\Request; use Zend\Soap\AutoDiscover; use Zend\Soap\Server; $url = $this->serverUrl() . '/listing/listing1403';

Re: [fw-general] Zend\Soap\Server method calls return null

2013-01-02 Thread Ralf Eggert
Hi Matthew, Matthew Weier O'Phinney schrieb am 02.01.2013 14:22: > Sorry for the late reply -- I've been on winter vacation. No problem at all, I thought something like that. I added the docblock now: --- namespace Pizza\So

Re: [fw-general] File upload with Post/Redirect/Get Plugin

2012-12-31 Thread Ralf Eggert
Hi Bas, no, I cannot find any. Anyway, now I really like it, that the file upload validation is separated from the form validation. When it comes to form validation the file is already validated and received. Regards, Ralf -- List: fw-general@lists.zend.com Info: http://framework.zend.com/arch

Re: [fw-general] File upload with Post/Redirect/Get Plugin

2012-12-31 Thread Ralf Eggert
Hi Marco, ok, but since the Zend\File\Transfer\Adapter\Http is using the $_FILES array in its prepareFiles() method, I need to handle the file upload before I sent the redirect of the Post/Redirect/Get Plugin. After the redirect has been done I need to process the other input from the form... Reg

[fw-general] File upload with Post/Redirect/Get Plugin

2012-12-30 Thread Ralf Eggert
Hi, I like the Post/Redirect/Get Plugin very much. But when it comes to file uploads I get problems. After the redirect the file uploads are gone again. Of course they are. Is there a proper way to solve this? Regards, Ralf -- List: fw-general@lists.zend.com Info: http://framework.zend.com/ar

[fw-general] Multi-Insert with Zend\Db\Sql\Insert

2012-12-30 Thread Ralf Eggert
Hi, I wonder if it is possible to do a multi-insert with Zend\Db\Sql\Insert or not? From reading the code, it is not possible, I think. Would be a nice feature, wouldn't it? Regards, Ralf -- List: fw-general@lists.zend.com Info: http://framework.zend.com/archives Unsubscribe: fw-general-unsubs

Re: [fw-general] Adding full stops at the end of validation messages - trouble?

2012-12-30 Thread Ralf Eggert
Hi Andreas, here you go: - namespace Application; use Application\Listener\ApplicationListener; use Zend\EventManager\EventInterface; use Zend\ModuleManager\Feature\BootstrapListenerInterface; class Module implements Bootst

Re: [fw-general] Adding full stops at the end of validation messages - trouble?

2012-12-27 Thread Ralf Eggert
Hi Andreas, currently I use this code in a ListenerAggregate class to add the translations for validators: $baseDir = APPLICATION_ROOT . '/module/Application/language'; $translator = Translator::factory(array( 'locale'=> 'de', 'translat

Re: [fw-general] Adding full stops at the end of validation messages - trouble?

2012-12-25 Thread Ralf Eggert
Hi Andreas, Andreas Möller schrieb am 11.12.2012 16:27: >> Yes -- the plan is to roll out 2.1 the first or second week of >> January. As such, getting it in in the next two to three weeks would >> be necessary if you want to hit that release. > > I'll try my best! I know its xmas but do you have

[fw-general] Zend\Soap\Server method calls return null

2012-12-22 Thread Ralf Eggert
Hi, I am trying to setup a SOAP server with Zend\Soap\Server and want to test it with Zend\Soap\Client. Here is my server class: namespace Pizza\Soap; class Server { protected $pizzaList = array( '1' => 'Pizza Salami',

[fw-general] Working example for Zend\Authentication\Adapter\Http

2012-12-21 Thread Ralf Eggert
Hi, I am trying to build a full working example for the usage of Zend\Authentication\Adapter\Http. The following is located in a view script (for demonstration purpose): http://pastebin.com/6tPXf8yA When I run the script the authentication prompt pops up and askes for user and password. When I e

[fw-general] Combine Zend\Form with fieldsets/collections and InputFilter

2012-12-19 Thread Ralf Eggert
Hi, I currently have a form. This form has a fieldset "data" with the three elements "name", "price" and "category". The form also has a submit element called "save". When I want to set the data I need to pass such an array. $form->setData(array( 'data' => array( 'name' => 'Pizza

Re: [fw-general] Why is there no formFieldset() view helper?

2012-12-13 Thread Ralf Eggert
Hi Matthew, > The default behavior was requested as part of the RFC process. You can > disable it on a given form by setting the wrapElements flag to a > boolean false. Played around a little with WrapElements but did not quite get what changes when set to true. > Whether or not you want it pers

Re: [fw-general] Why is there no formFieldset() view helper?

2012-12-13 Thread Ralf Eggert
Marco Pivetta schrieb am 13.12.2012 16:21: > Why would fieldsets in the form component represent HTML fieldsets? HTML > fieldsets have no meaning at all IMO... They could be replaced by if > it wasn't a question of semantics. Well, the -Tag is connected to a -Tag. Ask any webdeveloper what a fiel

Re: [fw-general] Why is there no formFieldset() view helper?

2012-12-13 Thread Ralf Eggert
Hi Matthew, >> I wonder, why there is no formFieldset() view helper? > > Simple oversight, and nobody's bugged us for one before now. :) Just another question for understanding. When I use fieldsets with a form these fields are always grouped together when echoed with a view helper: I am used

[fw-general] Why is there no formFieldset() view helper?

2012-12-13 Thread Ralf Eggert
Hi, I wonder, why there is no formFieldset() view helper? I can use the formCollection() view helper, but is it really supposed to do the job for a form with fieldsets that correspond to the same domain object? Regards, Ralf -- List: fw-general@lists.zend.com Info: http://framework.zend.com/ar

Re: [fw-general] Combine TableGateway, RowGateway and Entity classes

2012-12-13 Thread Ralf Eggert
Hi Ralph, here is the script: http://pastebin.com/3tqn1RiM It uses this entity class: http://pastebin.com/6c6fy8UK And this is the database dump for the SQLite3 database: http://pastebin.com/PFKadDu4 I hope you can reproduce it. It is tested with 2.0.5 release. Regards, Ralf -- List: fw-

Re: [fw-general] Adding full stops at the end of validation messages - trouble?

2012-12-11 Thread Ralf Eggert
Hi, > Thoughts? Would it be possible to use the constants in the translation files rather than the text messages? Instead of "Invalid type given. String, integer or float expected" => "..." use Zend\I18n\Validator\Alnum::INVALID => "..." So, when a text in the validator class is changed, then

Re: [fw-general] Adding full stops at the end of validation messages - trouble?

2012-12-11 Thread Ralf Eggert
Hi Andreas, > Seems that the translation files need a big update, then, in the first place. > I'll have a look into this later. Yep. Would be great if youn could sort that out. Anyway, why is the file called Zend_Validate.php and not Zend_Validator.php? Regards, Ralf -- List: fw-general@list

Re: [fw-general] Adding full stops at the end of validation messages - trouble?

2012-12-10 Thread Ralf Eggert
Hi Andreas, I personally have now problems with that full stop. But there is another issue which makes the messages translations useless currently. https://github.com/zendframework/zf2/issues/2536 For example look at this file at the text for Alpha::NOT_ALPHA: https://github.com/localheinz/zf2/

Re: [fw-general] Use Zend\Paginator with DbSelect adapter and Zend\Cache

2012-12-09 Thread Ralf Eggert
Done: https://github.com/zendframework/zf2/issues/3190 -- List: fw-general@lists.zend.com Info: http://framework.zend.com/archives Unsubscribe: fw-general-unsubscr...@lists.zend.com

Re: [fw-general] Use Zend\Paginator with DbSelect adapter and Zend\Cache

2012-12-09 Thread Ralf Eggert
Hi Marc, > To make it cacheable the stream needs to be completely read and only the > read data have to be handled by the paginator. > -> This could be done by Zend\Paginator\Adapter\DbSelect::getItems > but it could break BC and generate side effects. > > I'm trying to discuss this @ IRC first.

Re: [fw-general] Use Zend\Paginator with DbSelect adapter and Zend\Cache

2012-12-09 Thread Ralf Eggert
Hi Marc, Fatal error: Uncaught exception 'PDOException' with message 'You cannot serialize or unserialize PDOStatement instances' in /home/devhost/zf2-buch-listings/zf2-buch-chapter11/vendor/zendframework/zendframework/librar

[fw-general] Use Zend\Paginator with DbSelect adapter and Zend\Cache

2012-12-09 Thread Ralf Eggert
Hi, I am just trying to use the DbSelect adapter with Zend\Paginator which works as expected. But when I want to add Zend\Cache to the mix, I get some problems. When I add the serializer plugin I get this error: You cannot serialize or unserialize PDOStatement instances When I remove the ser

[fw-general] Zend\I18n\Translator translation formats

2012-12-06 Thread Ralf Eggert
Hi, the docs say that Zend\I18n\Translator supports a couple of translation formats. http://zf2.readthedocs.org/en/latest/modules/zend.i18n.translating.html#supported-formats I only find loaders for PHP Arrays and Gettext, but not for Tmx and Xliff. Am I missing something or should I send a PR f

Re: [fw-general] Combine TableGateway, RowGateway and Entity classes

2012-12-06 Thread Ralf Eggert
Hi Matthew, thanks for your reply. Unfortunately, I can not get it to work. > It actually _is_ supported. The way to make it happen is to inject a > HydratingResultSet into the table gateway object; this object will > then be used when results are returned. The HydratingResultSet allows > you to

[fw-general] Combine TableGateway, RowGateway and Entity classes

2012-12-06 Thread Ralf Eggert
Hi, when I use TableGateway on its own I can use a ResultSetPrototype which can use my own Entity class rather than an ArrayObject instance. I can also combine TableGateway and RowGateway with the RowGatewayFeature. But unfortunately RowGateway does not support an own Entity class for representing

  1   2   3   4   >