Zend Framework 1.11 with Doctrine 2 Integration - php

Could someone explain in detail how to integrate Doctrine 2 and Zend Framework 1.11?

There is a great video by Jon Lebensold about integrating D2 and ZF: Unit Testing Doctrine 2 - don't be misleaded by the title :)

I know this is a late inclusion but I just did this following the Zend webinar recording at http://www.zend.com/en/webinar/Framework/70170000000bSrG-webinar-zf-v-1-doctrine-v-2-20101214.flv (you need a (free) Zend account to view it).
Ralph Schindler also has the slides up here http://www.slideshare.net/ralphschindler/zend-framework-1-doctrine-2-6177485
If you're familiar with Doctrine2, you can probably skip the first half.

There are several Github repositories that show you how to do this.
Take a look at the source code and learn from it.
Apart from that, a simple Google search yields plenty of results that should help get you on your way.

Christian Soronellas has an tutorial: http://christian.soronellas.es/2010/12/19/zend-framework-and-doctrine-2/?lang=en

There is nice ZF1+D2 project code example:
https://github.com/dynamicguy/zf1doctrine2

you can download all project from
https://github.com/SpiffyJr/zfd2_tutorial
more info in

Maybe you are still interested in, I just found a Application Resource for Doctrine 2.
Check out my question

Related

Kohana (or straight PHP) OAuth2 implementation

Does anyone have a very clear step-by-step guide for implementing OAuth2 (preferably in Kohana 3.2, but I'll take whatever I can get)?
I would like it to include the tables I need to create, etc. (Hard to implement something without knowing the table structure.)
UPDATE:
I completely forgot to mention that I'm looking for a Provider implementation! Thanks! (and sorry).
You can try to analyze oauth2-php
It seems like, after hours of research, this (http://edin.no-ip.com/comment/348) is about the closest I could get. It takes #mrok's suggestion a step further. (PS - thanks, #mrok)
Maybe this helps: https://github.com/kohana-world (look into https://github.com/kohana-world/kw-accounts and https://github.com/kohana-world/kw-auth modules). Unfortunately, currently we have no time for development :(
PS. Also I've wrote an article about OAuth2 in Kohana, you can try to translate it from russian: http://translate.google.com/translate?hl=ru&ie=UTF8&prev=_t&sl=ru&tl=en&u=http://brotkin.ru/2011/05/24/oauth-v2/

Need an Sample Web Application with code of PHP using MVC

Need an Sample Web Application with code of PHP using MVC with the following functionality and the database is mysql
sample:
add
edit
delete
update
I have searched a lot. but i can't find the exact thing what i need.
Kindly provide your suggestions.
thanks in advance.
The term you can search google with is "CRUD" (Create Read Update Delete), there should be a fair few sample applications, try Netbeans examples, they post quite a few bits of PHP. Or look at the Bakery on CakePHP, this will help you with the MVC side of it
Look at the demo application of any PHP framework.
http://www.symfony-project.org/
http://cakephp.org/
http://codeigniter.com/

Kohana - Authenticating Users?

I would like to get started on a simple project using the Kohana 3 framework (looks very promising), but the docs are a bit lacking in my opinion and would like some direction to get my feet wet and get me started. So I have a simple use-case question one that most every application needs.
How would you present a login form with a username and password, capture this, process it and return either fail or success? And how does it keep a user session (object?) persistent? I am new to Kohana with a Drupal background.
Well, there's an Auth module that you can take a look at to see how it works.
You're right about the docs for Kohana 3 being a bit lacking, but I think the developers expect people picking it up to be a bit more experienced and willing to look under the hood.
A few useful resources I've found for learning more about Kohana 3 are the following:
Unofficial kohana 3 wiki
Userguide
a guide to HMVC pattern
kohana 3 tutorial collection
hmvc widget example
source code for an example website written in kohana 3
a blog module for kohana 3
a cms written in kohana 3
Kohana IRC at freenode #kohana-
Take a look at this tutorial. It is on using Kohana_Auth to authenticate users.

Where can find a very good PHP CMS/BLOG tutorial with objects and classes?

Where can find a very good PHP CMS/BLOG tutorial with objects and classes?
Not sure you will specificaly find a tutorial that'll teach you how to create a blog/CMS and be "good", but you might take a look at least at those links :
How to Create an Object-Oriented Blog Using PHP
Survive The Deep End! : an electronic book about Zend Framework ; still work in progress, but the example is a blog application
Practical symfony : jobeet : not a blog application, but if you want to start using symfony, it's probably the best documentation you'll find.
Classes and Objects : the OOP section of the PHP manual -- not quite a big example, but reading it can absolutly not hurt ;-)
The two links about Zend Framework and symfony are here for a reason : if you do want to develop an application, to learn useful stuff, it might be a good idea to learn using a framework in the same time ; and those two are amongst the best and most used PHP framework out there.
Have fun !
http://www.phpro.org/tutorials/Creating-A-PHP-Application.html
http://www.phpro.org/tutorials/Object-Oriented-Programming-with-PHP.html
http://killerphp.com/

PHP with AWASP framework

Who here is using WASP (http://wasp.sourceforge.net/content/) to in real world applications? What impressions do you have? Good? Bad? If you can provide any inputs, how good it is comparing with rails for example.
I'm really looking for MVC frameworks for PHP
Update: This comparation I found is good.
I downloaded it a while ago and tried it out, but as the documentation is pretty terrible at the moment (consisting of some auto-generated 'documentation' that was useless) I gave up pretty quickly. I think one of the most important things to have in a framework is clear, thorough documentation - if you have to spend time digging through the code of the framework to find out if a class you want exists, the point of using a framework is lost. WASP does not seem to be ready for production environments just yet, as even their website admits that its not ready for enterprise applications.
If you're looking for a PHP framework I would recommend CodeIgniter, which has excellent documentation and a helpful community, or Zend, which is pretty mature.
CakePHP is a great framework with great documentation. Symfony lost me with all the configuration, at the time I was new to both frameworks and CakePHP stood out as being the best for me and I was able to pick it up very quickly
Hey Victor, that comparison is pretty badly out of date. It was done about 1.5 years ago and, at least in the case of the Zend Framework that I use regularly,things have changed greatly since then. I'd say that comparison is so old as to be useless.
Check out symfony, too. Free software, top-notch documentation.
QCodo is great - amazing code generation, full MVC support. The strongest object-relational mapping I've seen; their scaffolding model is so much stronger than CakePHP and Zend... Plus, it's beautifully extensible with community controls. I've been using it for large projects for the last two years, it's great!
Have you tried CodeIgniter?
I tested CakePHP but it's too much a la Rails style and i didn't like it.
CodeIgniter gives you more freedom to do whatever you whant.

Categories