I have recently started development on a new application with Zend Framework 2 rc7 but I have been unable to find any reference to a DB2 Adapter.
does anyone know if there are plans to develop one?
So far I have written my own custom DB2 adapter extending many of the Zend Db classes but this is not as full featured as I would like it to be.
Thanks
See if it helps to use the adapter Pdo_Mssql with the option pdoType = dblib (http://fr2.php.net/pdo-dblib)
See http://framework.zend.com/manual/en/zend.db.adapter.html#zend.db.adapter.adapter-notes.pdo-mssql
Related
I've got a few applications running on ZF1, all of them share the same ZF Libs, for the last week I've been studying ZF3 to check if I could update my old apps... For the last 3 days, I've been trying to run multiple applications with the same ZF3 Libs without any luck. I'm new to Zend 3 structure and as far as I can tell it seems that the ZF3 Libs are entangled with the application itself, it seems that I can't run multiple applications using the same lib...
Is it possible and I'm too dumb to figure it out or what I want to do it not possible?
The last test I've made was to crate zend Framework on /var/zf3 and my application was created on /var/www/html/testeApp, I can set the public/index.php to look for the zf3, everything seems to work fine until trying to load the basic Application inside /var/www/html/testeApp/model, its trying to find it inside /var/zf3... I also tried to work with module paths var but it doesn't work, any ideas?
Thanks in advance!!!
Since I am already implementing the old version of mongodb from alexbilbie, but the current mongoDB driver newer than 1.3 for php is not compatible anymore except I am migrating to alexbilbie’s new library called mongoQB, anyone has experience with that or could give a sample procedure to integrate this mongoQB to codeigniter? I am scratching my head currently…
I know I could also use a native implementation of mongoDB to php but I have already made many models based on alexbilbie’s old version and it would be better for me to change syntax names than to rewriting all the models
I have forked mongoqb and modified it a bit to integrate it with codeigniter. You can find the library here mongoci
Can anybody get ASP.NET Dynamic Data Entities Web project working under EF 6.0.2 and .NET 4.5 in Visual Studio 2013?
I find problems in ManyToMany_Edit.ascx.cs and Global.asax.cs all relating to the switch in namespace for ObjectContext. Changing the using statements in the generated files is not enough. In other words, following this guide is not enough.
System.Web.DynamicData.dll doesn't seem to be aware of System.Data.Entity.Core.Objects.ObjectContext.
Have you read this post? http://blogs.msdn.com/b/webdev/archive/2014/02/28/announcing-the-release-of-dynamic-data-provider-and-entitydatasource-control-for-entity-framework-6.aspx , this works for me
I am converting a active profile STS to the new .NET 4.5 System.IdentityModel framework. My code using the UserNameWSTrustBinding which doesn't seem to exist in the new framework. Any suggestions.
Although this is an old question, I couldn't find any non-third-party answer on the internet, so here it is:
To replace UserNameWSTrustBinding in .NET 4.5, use the following:
var binding = new WS2007HttpBinding(SecurityMode.{what it was before});
binding.Security.Message.ClientCredentialType = MessageCredentialType.UserName;
I ported the WCF bindings to thinktecture identity model:
https://github.com/thinktecture/Thinktecture.IdentityModel.45
I also had a hard time finding something that for .NET 4.5 that was not a third party library. But I came across this link for code you can include in your project.
I know that there are many examples but this is my problem, because now I don't know which is the best and I don't understand every samples. This before I used doctrine 1.x and that was more simple for me, because there was only few steps to connect to database with doctrine and use it:
1.) Created User.yml file into application/doctrine/schema folder
2.) Run generate-models-yaml in cli which generated php classes into application/models/generated folder
3.) Again in cli run: create-db, create-tables
4.) In IndexController / IndexAction I can use it:
$newUser = new User();
$newUser->name = 'Demo';
$newUser->save;
And that's all. But with 2.0 I have some question:
- Where is the best place for mapping yaml files?
- How can I generate Entities from yaml? (Depending from the first answer)
- How can I create/drop db and tables?
- Which solution is the best EntitiyManager?
So I just want the most simple sample like my doctrine 1.x sample. Thanks!
For me best integration Bisna from Guilherme Blanco https://github.com/guilhermeblanco/ZendFramework1-Doctrine2
Step by step video tutorial using Bisna integration
http://www.zendcasts.com/unit-testing-doctrine-2-entities/2011/02/
Another very good example of ZF1 and Doctrine 2 with fully tested code (PHPUnit & Ant):
https://github.com/eddiejaoude/Zend-Framework--Doctrine-ORM--PHPUnit--Ant--Jenkins-CI--TDD-
They try to work best practice. Always.
Here is my two cents, I've wrote a Zend Framework 1.x resource for Doctrine 2.0
The source code is available on github.
This is another sample about zf1 and D2
https://github.com/marsbomber/zf1-doctrine2/tree/modular_setup
I used it and I think it was useful.