Comments (7)
@diemuzi you don't really need multiple adapters, but probably just setting up different collectors/toolbar listeners (one per connection)
from zend-developer-tools.
Is there any documentation on how to make this work? Each of my databases have their own custom adapter and each database is located on another server. Looking into the code this doesn't appear to be easy to setup or pointed in any direction which would help one make this happen.
from zend-developer-tools.
@diemuzi DoctrineORMModule defines one profiler and one view per connection:
https://github.com/doctrine/DoctrineORMModule/blob/0.8.0-beta1/config/module.config.php#L271-L284
The thing you must be careful about is only to have the profiler's getName
return the same name as the toolbar entry key.
from zend-developer-tools.
I should have stated this earlier, my fault... but do you have any examples when using Zend\Db? Doctrine is not my cup of tea to use. The Doctrine example gave me a starting place to look but I'm not understanding how to associate this with Zend\Db. Thanks for sticking with me on this.
from zend-developer-tools.
No, sorry, I don't have any Zend\Db examples at all :\
Marco Pivetta
On 30 June 2013 16:06, Sammie S. Taunton [email protected] wrote:
I should have stated this earlier, my fault... but do you have any
examples when using Zend\Db? Doctrine is not my cup of tea to use. The
Doctrine example gave me a starting place to look but I'm not understanding
how to associate this with Zend\Db. Thanks for sticking with me on this.—
Reply to this email directly or view it on GitHubhttps://github.com//issues/109#issuecomment-20247579
.
from zend-developer-tools.
Here is what I've come up with so far -> https://gist.github.com/diemuzi/5895328
I see a new icon on the toolbar but it's giving the error of:
- Unable to fetch or create an instance for slave.
I simply copied the DbCollector and renamed it to SlaveCollector and changed db to slave inside the file (renaming the class name too of course). I also copied the db.phtml to slave.phtml. Then added the configuration in the 2 files.
from zend-developer-tools.
@Ocramius Thanks for helping me out in IRC. Working like a charm now =)
from zend-developer-tools.
Related Issues (20)
- ZendDeveloperTools is not installable with new skeleton application HOT 3
- Argument 1 passed to ZendDeveloperTools\Exception\SerializableException::__construct() must be an instance of Exception HOT 7
- Show all routing parameters HOT 2
- Plugin ZendDeveloperToolsTime have no alias HOT 3
- ZF 3 with DeveloperTools HOT 10
- Type Error thrown in ZF3 HOT 1
- Use with ZF2 HOT 1
- Add support for throwables HOT 1
- ZF3 support HOT 2
- Blog guide- ZF2, An exception was raised while creating "Blog\Controller\List"; no instance returned HOT 1
- Support for zend-expressive HOT 1
- add support for php 7.2 please HOT 1
- Problem with zend-eventmanager 3.x HOT 2
- 1.2.0 release causes ServiceNotFoundException for ZendDeveloperTools\Listener\ProfilerListener HOT 2
- Exception on php 7.2 HOT 2
- var_dump in request.phtml HOT 1
- In HTML5, the <head> element can be omitted. The zend-developer-tools css requires it. HOT 1
- The ZendDeveloperTools module issues a warning HOT 1
- <redacted> HOT 2
- Zend-Debug has been archived HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from zend-developer-tools.