/blog/zend-framework-2-controllers-and-dependency-injection-with-zend-di/
Cheers,
Marco Pivetta
http://twitter.com/Ocramius
http://ocramius.github.com/
ZfcAdmin is pretty much stable - it does only provide a standard navigation
container where to attach items, not much more...
Marco Pivetta
http://twitter.com/Ocramius
http://ocramius.github.com/
On 5 February 2014 08:28, dolphin pochta.dolp...@gmail.com wrote:
Hi. I would like to know
know that there may
be
objections, clarify, proposals. Therefore, I propose my module as a
prototype.
What does your module do? And why would it replace ZfcAdmin?
What do you think?
Well, I honestly don't know, because your questions are not very clear.
Marco Pivetta
http://twitter.com
navigation container
by name.
Marco Pivetta
http://twitter.com/Ocramius
http://ocramius.github.com/
.
Cheers,
Marco Pivetta
http://twitter.com/Ocramius
http://ocramius.github.com/
balanced tree
of machines or a dedicated micro-service built with C or something like
that :P
Marco Pivetta
http://twitter.com/Ocramius
http://ocramius.github.com/
/reference/second-level-cache.html
If you cannot use 2.5 (master) right now, you may check
http://stackoverflow.com/questions/15661296/doctrine-2-and-orm-how-to-cache-every-query-for-some-entity-
yes, that's a lot of manual work.
Marco Pivetta
http://twitter.com/Ocramius
http://ocramius.github.com
On 6 February 2014 14:59, Greg dev...@gmail.com wrote:
My first impression is that the route event should only return a route
matched (SRP?); its simpler and would allow the route match to be retrieved
from the service manager without needing a route event (or if there is no
matched route).
Hi Mat,
Does your module also work with the normal view helpers? Didn't check in
depth, but it seems to me like you are using only custom plugins with your
own interface.
Cheers,
Marco Pivetta
http://twitter.com/Ocramius
http://ocramius.github.com/
On 14 February 2014 18:06, mtymek [via
You can probably just use the standard view structure for ZF2 - you would
just need a different template resolver instance for it.
Marco Pivetta
http://twitter.com/Ocramius
http://ocramius.github.com/
On 19 February 2014 19:11, dennis-fedco dmatve...@fedco-usa.com wrote:
Say I have
an exact reasoning on
why you are trying to do that.
Marco Pivetta
http://twitter.com/Ocramius
http://ocramius.github.com/
--
View this message in context:
http://zend-framework-community.634137.n4.nabble.com/customize-ZF2-tp4661729p4661731.html
Sent from the Zend Framework mailing list
a motivation behind having per-repo packages, and that's
maintainability, upgrades and security.
Why are you trying to move your repo to `/usr/`?
Marco Pivetta
http://twitter.com/Ocramius
http://ocramius.github.com/
--
View this message in context:
http://zend-framework-community.634137.n4
.
Cheers,
Marco Pivetta
http://twitter.com/Ocramius
http://ocramius.github.com/
--
View this message in context:
http://zend-framework-community.634137.n4.nabble.com/customize-ZF2-tp4661729p4661736.html
Sent from the Zend Framework mailing list archive at Nabble.com.
that ZF2 comes from somewhere inside `vendor`. You can't really edit
ANYTHING without `vendor`, since that's composer's domain (no touching!).
Instead, customize your `autoload_namespaces.php` by registering your own
autoloader manually. You can just edit that file, no problems.
Marco Pivetta
Argh, sorry, my mistake.
I meant to tell you to customize init_autoloader.php (
https://github.com/zendframework/ZendSkeletonApplication/blob/2f60f8af002e6b7afc9f47a5e79e038e0baf5e3a/init_autoloader.php),
and instead I wrote autoload_namespaces.php.
Do not edit ANYTHING within vendor ;-)
Marco
it as it pleases you.
I still miss your point though - why is this being done? What's the
rationale? The current structure comes from a lot
Marco Pivetta
http://twitter.com/Ocramius
http://ocramius.github.com/
--
View this message in context:
http://zend-framework-community.634137.n4
/df6fa23483c990f3ac47400f7191a337d979b5ac/library/Zend/Mvc/Service/ConfigFactory.php
The factory is registered in the ServiceListenerFactory:
https://github.com/zendframework/zf2/blob/df6fa23483c990f3ac47400f7191a337d979b5ac/library/Zend/Mvc/Service/ServiceListenerFactory.php#L44
Cheers,
Marco Pivetta
http://twitter.com
On 27 February 2014 21:01, Philip G guice...@gmail.com wrote:
On Thu, Feb 27, 2014 at 11:48 AM, Marco Pivetta ocram...@gmail.comwrote:
On 27 February 2014 20:37, Philip G guice...@gmail.com wrote:
I'm creating a new ServiceManager instance and a abstract_factory
instance
is failing
listeners during
`Application::init()`, and not during module loading.
I'd actually say that we can make that optional by allowing end users to
redefine their `index.php` (instead of using dirty hacks)
Cheers,
Marco Pivetta
http://twitter.com/Ocramius
http://ocramius.github.com/
On 10 March 2014 18
/Application/Entity/articles.php
on line 8
This looks like a typo of some kind. The information provided is
insufficient to debug the problem, though.
Could you provide a gist with the file paths, autoloader config and file
contents of the class?
Marco Pivetta
http://twitter.com/Ocramius
http
` or just increase the timeout if your connection
is slow.
This is surely not a ZF issue
Marco Pivetta
http://twitter.com/Ocramius
http://ocramius.github.com/
This is generated via gource - you can usually run it against any vcs ;-)
On 12 Mar 2014 11:27, jmleroux jmleroux@gmail.com wrote:
A little bit off topic...
I don't know how to do this for ZF2, but this could be a good publicity
https://www.youtube.com/watch?v=NMjA5N7kbEQ
--
View
As reported in https://github.com/zendframework/zf2/issues/5963, the
subtree split script is NOT working correctly. I'd suggest avoiding
upgrades until this isn't fixed.
Marco Pivetta
http://twitter.com/Ocramius
http://ocramius.github.com/
On 13 March 2014 11:50, Norbert Máté mt.norb
The fastest way to see if your cache is set, is checking your ORM
configuration:
$entityManager-getConfiguration() contains all the details that you want
to check.
Marco Pivetta
http://twitter.com/Ocramius
http://ocramius.github.com/
On 18 March 2014 12:09, LEROUX Jean-Marie jmleroux
QueryCacheProfile(10));' which cache my results, but it seems the lifetime
is not taken into account by my Zend\Storage\Memcached.
This was actually tested/implemented in
https://github.com/doctrine/DoctrineModule/pull/345 - maybe a bug?
Marco Pivetta
http://twitter.com/Ocramius
http
Did you try using BjyProfiler? https://github.com/bjyoungblood/BjyProfiler
Marco Pivetta
http://twitter.com/Ocramius
http://ocramius.github.com/
On 18 March 2014 18:53, Julian Vidal jul...@julianvidal.com wrote:
I'm looking for a way to get a list of queries that my app executes. I'm
As discussed on #6001, ZF2 can't have per-item TTL by default. It is
trivial to implement a small wrapper for it, as I've written at
https://github.com/zendframework/zf2/pull/5386#issuecomment-29386320
Marco Pivetta
http://twitter.com/Ocramius
http://ocramius.github.com/
On 19 March 2014 16
Doesn't really matter, to be honest
Marco Pivetta
http://twitter.com/Ocramius
http://ocramius.github.com/
On 21 March 2014 23:02, dennis-fedco dmatve...@fedco-usa.com wrote:
https://github.com/ZF-Commons/ZfcBase/tree/master/test, but
https://github.com/ZF-Commons/ZfcUser/tree/master/tests
Did you verify that you are not having any double submit?
What is the offending code?
Marco Pivetta
http://twitter.com/Ocramius
http://ocramius.github.com/
On 27 March 2014 01:17, donatello [via Zend Framework Community]
ml-node+s634137n466191...@n4.nabble.com wrote:
Hi!
I’m a very
: `php -S localhost:8080 -t public public/index.php` will do.
Marco Pivetta
http://twitter.com/Ocramius
http://ocramius.github.com/
On 27 March 2014 01:33, donatello [via Zend Framework Community]
ml-node+s634137n4661921...@n4.nabble.com wrote:
THank you Marco! Are you Italian! :) I'm
::DEBUG, 'Wrote a db record!' . var_export($_SERVER,
true));
That will let you see what is going on and why.
Marco Pivetta
http://twitter.com/Ocramius
http://ocramius.github.com/
On 28 March 2014 15:46, donatello [via Zend Framework Community]
ml-node+s634137n4661929...@n4.nabble.com wrote
Hey Donatello,
I have no idea why you have that redirect, but I'd suggest trying out the
project just with the internal PHP server to cut out problems with XAMPP if
there are any.
Cheers,
Marco Pivetta
http://twitter.com/Ocramius
http://ocramius.github.com/
On 28 March 2014 16:51, donatello
,
Marco Pivetta
http://twitter.com/Ocramius
http://ocramius.github.com/
On 2 May 2014 22:26, Jonathan Sundquist jsundqu...@gmail.com wrote:
Good afternoon.
I'm working on a project where we have a lot of modules. We are looking to
have each module contain the css, images, and javascript
directory within
the module that contains them.
That is also a good practice, as it allows you to namespace assets to
avoid collisions with secondary modules that may provide their own.
Cheers,
Marco Pivetta
http://twitter.com/Ocramius
http://ocramius.github.com/
That's how AM was designed.
AssetManager will cycle through configured resolvers and find (by priority)
the first asset that is a hit.
That way, multiple modules can map same paths, and the assets will
basically be an union of all modules (depending on priority).
Marco Pivetta
http://twitter.com
about what
you are doing. I won't take responsibility for any security issues
introduced by doing that.
Marco Pivetta
http://twitter.com/Ocramius
http://ocramius.github.com/
On 22 May 2014 07:15, David Muir davidkm...@gmail.com wrote:
The security fix broke our javascript templates
controller logic, and I'd like to
further extend these concepts to DTOs.
If you find a good way of passing parameters to action controllers without
being too opinionated, then please do share: I'd love to see more
development in this direction.
Marco Pivetta
http://twitter.com/Ocramius
http
.
I'd check if you can use the FormElementManager coming from the main
ServiceManager instance to build your forms (or a form factory).
Marco Pivetta
http://twitter.com/Ocramius
http://ocramius.github.com/
--
View this message in context:
http://zend-framework-community.634137.n4.nabble.com
to
the warning message ... there are a lot:
Here are the message numbers:
41759
0.o
We could really need a migration to google groups, this thing is getting
very annoying over time (also the various spam messages in the list) :P
Marco Pivetta
http://twitter.com/Ocramius
http
layer takes a LOT of time to run. It depends on the app, but you
should really profile it first.
Marco Pivetta
http://twitter.com/Ocramius
http://ocramius.github.com/
be careful.
Additionally, move your modules' autoloading to `composer.json` and use a
classmap via `./composer.phar dump-auoload --optimize`.
HHVM is also a neat suggestion, but don't expect miracles from it: it just
makes repeated operations faster.
Marco Pivetta
http://twitter.com/Ocramius
http
/modules.zendframework.com/issues/183
Kthxbai.
Marco Pivetta
http://twitter.com/Ocramius
http://ocramius.github.com/
On Thu, Jul 17, 2014 at 10:35 AM, Ralf Eggert r.egg...@travello.de wrote:
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
.
Probably the worst hosting solution around right now (in my own personal
opinion, given their awesome upgrade strategy), but I can understand why
this choice was made :-(
You really want to move to your own VPS where you can setup services as you
like.
Marco Pivetta
http://twitter.com/Ocramius
. Modules just
work with it, as they do with normal zf2 apps.
Marco Pivetta
http://twitter.com/Ocramius
http://ocramius.github.com/
by
some package maintainers.
Marco Pivetta
http://twitter.com/Ocramius
http://ocramius.github.com/
On 18 August 2014 08:21, Ralf Eggert r.egg...@travello.de wrote:
Hi,
I am looking for an up-to-date ZF2 ruleset for PHP CodeSniffer. I would
like to integrate it in PhpStorm which only offers
the application and not the module itself. Is there a
way to accomplish this task?
Inject the service that will give you the data you need into the
aggregate GoodService, then do the decision by fetching the data at
runtime.
Marco Pivetta
http://twitter.com/Ocramius
http://ocramius.github.com/
(only exceptions).
Marco Pivetta
http://twitter.com/Ocramius
http://ocramius.github.com/
? Is there a good point to start from to
achieve this?
Did you look at the modules system? And composer? That's pretty much all
you need :-)
Marco Pivetta
http://twitter.com/Ocramius
http://ocramius.github.com/
--
View this message in context:
http://zend-framework-community.634137.n4.nabble.com
can just keep different configs for admin and frontend views. You don't
need to replace URLs in your application to make them admin or
frontend depending on a config setting: just use different URIs.
Marco Pivetta
http://twitter.com/Ocramius
http://ocramius.github.com/
--
View this message
\MvcEvent::EVENT_DISPATCH with a
high priority
- is attached only to event identifiers representing those marker
interfaces
Greets,
Marco Pivetta
http://twitter.com/Ocramius
http://ocramius.github.com/
On 7 November 2014 23:33, Emmanuel Bouton got...@gmail.com wrote:
Or should I simply check
to
be reassured by his shepherd ;)
You're not the first to ask about this situation, nor I think you will be
the last, so no need to worry, nobody is being offended by perfectly legit
questioning.
Greets,
Marco Pivetta
http://twitter.com/Ocramius
http://ocramius.github.com/
the door.
Greets,
Marco Pivetta
http://twitter.com/Ocramius
http://ocramius.github.com/
though my
pc has plenty of ram.
I tried to find out what caused it, but no luck. I suspect that it is the
Disqus-integration that is to blame, but I'm not sure.
I also see a bunch of trackers on that page: are you sure that it is none
of them?
Marco Pivetta
http://twitter.com/Ocramius
http
I strongly suggest that you look at https://github.com/Bacon/BaconQrCode
Marco Pivetta
http://twitter.com/Ocramius
http://ocramius.github.com/
On 12 December 2014 at 08:25, calosteward [via Zend Framework Community]
ml-node+s634137n4662403...@n4.nabble.com wrote:
ZF is good. But I'm
Heya,
I don't think the ZF2 logger has such a feature, and maybe the docs are
simply out of sync because they were ported when ZF2 was released.
I suggest digging in the existing test suite to see if anything suggests
usage of non-standard log levels.
Marco Pivetta
http://twitter.com/Ocramius
Why would you want to use the redirect helper in a module?
Anyway, the redirect helper code is trivial:
https://github.com/zendframework/zf2/blob/8615f24ebdfa905cc719be3c57649e93ea40ef20/library/Zend/Mvc/Controller/Plugin/Redirect.php#L62-L65
Marco Pivetta
http://twitter.com/Ocramius
http
provided an example with what you have so far:
the information provided in this post seems insufficient to discover what
is going on.
Consider creating a gist about what you have right now at
https://gist.github.com/
Marco Pivetta
http://twitter.com/Ocramius
http://ocramius.github.com/
The filter parameter accepts regular expressions, as far as I know. Look
at the code, please.
Marco Pivetta
http://twitter.com/Ocramius
http://ocramius.github.com/
On 14 January 2015 at 11:23, Arvind Jha [via Zend Framework Community]
ml-node+s634137n4662418...@n4.nabble.com wrote:
Thanks
The `orm:convert-mapping` command supports a `filter` optional parameter.
See
https://github.com/doctrine/doctrine2/blob/9c3cb579313ae01cdd3467b9f89fc15e9677b46c/lib/Doctrine/ORM/Tools/Console/Command/ConvertMappingCommand.php#L55-L58
for reference.
Marco Pivetta
http://twitter.com/Ocramius
Awesome news!
Nice to see that the hard work paid off - the amount of solved issues is
just ginormous!
Marco Pivetta
http://twitter.com/Ocramius
http://ocramius.github.com/
On 31 March 2015 at 19:37, Matthew Weier O'Phinney matt...@zend.com wrote:
Hi, all!
We've just released version
that reflects your production environment.
Marco Pivetta
http://twitter.com/Ocramius
http://ocramius.github.com/
--
View this message in context:
http://zend-framework-community.634137.n4.nabble.com/ZF2-Custom-View-Helper-problem-tp4662444p4662445.html
Sent from the Zend Framework mailing
to either scrap code or code that is actually
doing some location job.
Marco Pivetta
http://twitter.com/Ocramius
http://ocramius.github.com/
On 5 August 2015 at 10:52, automatix i...@automatix.info wrote:
Hello Community!As is generally known injecting the ServiceManager as
dependency is a bad
the cap for any of those on any of the machines, it chokes
and gets to a grinding halt (typically dropping connections or being very
very slow).
Marco Pivetta
http://twitter.com/Ocramius
http://ocramius.github.com/
On 19 October 2015 at 13:01, sreejith_y [via Zend Framework Community] <
ml-n
Hi Ralf,
I don't think there is a scheduled release atm.
ServiceManager and EventManager v3 are being finalized though, and various
components are being upgraded to consume those versions.
Marco Pivetta
http://twitter.com/Ocramius
http://ocramius.github.com/
On 20 October 2015 at 22:45, Ralf
I doubt that an interface file has any functional logic in it: check the
file contents, please.
Marco Pivetta
http://twitter.com/Ocramius
http://ocramius.github.com/
On 1 October 2015 at 09:45, aloksdubey [via Zend Framework Community] <
ml-node+s634137n4662700...@n4.nabble.com>
You'd just install it and enable it in the modules list. EdpSuperluminal
doesn't need configuration.
On Sep 22, 2015 19:34, "sreejith_y [via Zend Framework Community]" <
ml-node+s634137n4662683...@n4.nabble.com> wrote:
> Hi,
>
> Am very new to Zend 2 and I have a zend project with me. How Do I
You may want to read about OpCache:
-
https://tideways.io/profiler/blog/fine-tune-your-opcache-configuration-to-avoid-caching-suprises
-
https://tideways.io/profiler/blog/dodge-the-thundering-herd-with-file-based-opcache-in-php7
Marco Pivetta
http://twitter.com/Ocramius
http
my custom ViewHelpers without loading Zend's. ¡That's a hell of
> task! But if I wish to maintain control over my output there seems to be
> no other solution. Atleast sticking to Zend Framework.
> I really don't understand the reason to enforce attribute escaping.
I repeat: that's wh
There is no problem (from an SEO perspective) in having escaped attributes.
Also, UTF-8 is big and scary: don't disable escaping, it's just like asking
for trouble ;-)
Marco Pivetta
http://twitter.com/Ocramius
http://ocramius.github.com/
On 18 January 2016 at 07:51, Juan Pedro Gonzalez
t the escaping matches your data, if that's what you fear.
Also see https://jsfiddle.net/5toL1c5r/ (proper escaping)
Also see https://3v4l.org/PE8hk (proper parsing via DOM compliant APIs)
Hope that helps
Marco Pivetta
http://twitter.com/Ocramius
http://ocramius.github.com/
ss
requirements, regardless which ones.
> ...but allowing to have non-escaped strings in the attributes. or even a
> general configuration key to disable escaping attributes and leave it
> active by default but being able to disable it if you don't wish to use it.
>
There is no "wi
I am a bit confused by the original question:
* what are we talking about? (link to code/documentation relevant to your
question)
* what do you expect ZendFramework 1.x to do?
* what is it doing instead?
Cheers,
Marco Pivetta
http://twitter.com/Ocramius
http://ocramius.github.com/
On 15
What is library/data.php?
On Jan 29, 2016 6:08 AM, "pfalllay [via Zend Framework Community]" <
ml-node+s634137n4662830...@n4.nabble.com> wrote:
> i am newbie in zend.how to pass array variable to library/data.php?
>
> --
> If you reply to this email, your message will
Heya,
You don't need any wrapper for an API: just write a factory for the service
and use it :-)
Marco Pivetta
http://twitter.com/Ocramius
http://ocramius.github.com/
On 22 February 2016 at 16:04, losorio30 [via Zend Framework Community] <
ml-node+s634137n4662846...@n4.nabble.com>
ull);` callable: implementing your own is the way to go ;-)
Cheers,
Marco Pivetta
http://twitter.com/Ocramius
http://ocramius.github.com/
t simply moving it into your codebase as a first
attempt, and abstract only when there is solid ground for doing so.
Marco Pivetta
http://twitter.com/Ocramius
http://ocramius.github.com/
Remi's repository is Remi's repository, not Zendframework's :-)
Marco Pivetta
http://twitter.com/Ocramius
http://ocramius.github.com/
On 19 February 2016 at 09:25, <tanaka.akif...@probinds.co.jp> wrote:
> Hello.
>
> I would like to install a set of php-ZendFramework 1.
It's still working, but moderation is kinda meh, so there's loads of spam
posts by bots :-(
I would suggest posting questions directly on Github for easier
cross-referencing and discoverability.
Marco Pivetta
http://twitter.com/Ocramius
http://ocramius.github.com/
On Mon, Jan 30, 2017 at 3:01
301 - 379 of 379 matches
Mail list logo