Zend Framework 2.0 Acl Library - php

Ok i already started out this new project for 2 weeks and so far so good.
Up till today i just realize there is no Acl component in Zend 2.0.Is it true? Or im missing something.
So currently im clueless with my application acl.
Did you guys have any suggestion of any acl component that work well with Zend 2.0 that i did not aware of or should i just download Zend 1.x instead.
Any input greatly appreciated.

The ACL component in Zend Framework 2.0 is now called Zend\Permissions\Acl.
I highly recommend reviewing the reference manual. A simple search for the term on that page brought it up right away.

Related

Using Codeigniter in Zf2

I have an project that is used by many users and it's written in Codeigniter. I'm very happy with my application but I'm getting lost with Codeigniter because of the functionality of the framework and my application is getting too big for Codeigniter (that is what I think).
I want to go from Codeigniter to Zend, but the application is too big to begin all over again because there is still more functionality to come.
I don't know if someone has experienced or tried it, but does anybody know if it is possible to integrate Codeigniter into Zend as an module and migrate in steps to the Zend Framework 2?
Sorry for my bad english by the way :-)
Having experience with small and medium-scale projects with both CodeIgniter (CI) and Zend Framework (ZF), I can tell you that using one framework over the other will not solve any problem you might be having.
If you are looking for the added functionality provided by the ZF components, such as a ready-made class for Date or the Form verification class, know that you can use ZF components in Code Igniter. You will need to create a special class in CI that will jumpstart the ZF class autoloader. From there you can simply include ZF classes and use them as if you were inside a ZF application.
See http://www.beyondcoding.com/2008/02/21/using-zend-framework-with-codeigniter/ and http://fr.slideshare.net/samsonasik/codeigniter-using-third-party-components-zend-framework-components for more details.
"Integrate" means you want to put your app running on CodeIgniter withing ZendFramework. So basically you changed nothing and there's no much sense of doing so.
You perhaps could consider porting your app from CI to ZF, but that will require rewriting of your code. But I'd first try to find out what the bottleneck in your app really is and ensure that you will benefit from the switch

Zend_Di (Zend 2.0 beta) and Zend Framework 1.11

I was wondering if any one had any kind of success integrating a Zend Framework 2.0 beta in a Zend Framework 1.11 project.
I am currently building a project using ZF 1.11. I don't want to use ZF 2.0 yet since they say on the developpers blog that backward compatibility isn't guaranteed. The project developpement will span over a few months and I don't want to fix a lot of stuff when I update to the newest release (which will resolve bugs and vulnerabilities).
Is there a quick tutorial, or did anybody include a Zend Framework 2.0 module (using PHP namespaces) in a "vintage" Zend Framework release using includes?
An alternative possibility, if what you want is to introduce Dependency Injection in your ZF 1.11 project, is to use the Symfony DI component. I worked fine for me.
There are some web resources about the details, most notably this one: http://losohome.wordpress.com/2010/01/22/integrating-symfony-dependency-injection-service-container-with-zend-framework/
Hope that helps,
My advice at this stage is to develop your project with ZF 1.11. 2 will not be backwards compatible with ZF ZF 1.11, but there is talk of some tools / tutorials that will help to update, but I am very skeptical about it!

Getting started with Doctrine for Zend

I'm trying to get started with Doctrine for Zend. There doesn't seem to be a lot out there to help me with this. I find the website and documentation a bit useless.
I'm currently looking at this webpage.
There are a few options. I can checkout from subversion or github. Install via PEAR. or download a package.
What should I be doing with the lines of code in the black boxes?
What do I do with a package once I've extracted it?
As an aside
Am I a little out of my depth? Is there anything I should be learning before I start tackling Doctrine?
You really should have a look at the Zend Framework webinars, and more specifically the one called Zend Framework v1 + Doctrine v2. It's got detailed instructions and links to GitHub where you can download the source presented in the webinar.
The presentation slides can be found at http://static.zend.com/topics/Zend-Framework-1-+-Doctrine-2.pdf.
Presentation summary :
Zend Framework (version 1) is an
enterprise grade, full stack MVC
framework and component library.
Doctrine (version 2) is an enterprise
grade, ORM (object-relational mapping)
framework for PHP 5.3. In this
webinar, the ZF and Doctrine teams
join forces to demonstrate how best to
integrate these two frameworks and
produce a ZF powered MVC application
where in which the "M" is powered by
Doctrine2. Familiarity of PHP 5.3
features is suggested. Presenter –
Ralph Schindler, Jonathan Wage and
Guilherme Blanco (87min) Dec 15 2010
You will have to register with Zend though (but that's free, so shouldn't pose any problems I guess).
Actually, there are some resources you could use to integrate Zend Framework and Doctrine. In example, you could follow this screencasts:
ZendCasts - Doctrine
I've followed these screencasts, with a few corrections, and I was able to use Doctrine 1.x with Zend Framework applications. You can also view the generated screencasts' code; this option is available in the most of these screen casts.
You will want to use Doctrine 2, not version 1.2. The two are not compatible. Here is a presentation that explains why:
http://www.slideshare.net/ralphschindler/zend-framework-1-doctrine-2-6177485
Here are example sources for Zend Framework + Doctrine 2 integration:
https://github.com/fierycode/ZendFramework1-Doctrine2
https://github.com/marsbomber/zf1-doctrine2/tree/modular_setup (with modules)
I have already pointed someone in the right direction to integrate Doctrine 1.2 into ZF, my post can be found here.
I hope this helps you out.

Migrating custom coded/developed php project to CAKE php framework

My client wants to Migrating their custom developed php project to cake php framework. But, as of now i have only a bit of knowledge in CAKE. can anyone please let me know where do i get started CAKE php. i have already installed CAKE in my system
Where do you get started? Probably on the CakePHP website?
Seriously, watch some screencasts, download some example apps and mess around with them.
CakePHP has a sweet steep learning curve. I recommend to go with the new 1.3 version.
It is easy to start with the CakePHP Book and the API documentation. When in doubt, just look into the source code, it's all just PHP! Google should be also a good friend of yours. However CakePHP is "just" a programming framework, you must know PHP, ORM, MVC and similar concepts in advance.

RESTful WebServices with Kohana 3 PHP

Is it possible to make restful services with kohana 3 , i reviewed the source and found an abstract class Kohana_Controller_REST, how to use it ? If someone can post a snippet with routing as Example code, it will be very appreciated.
Also, the lack of documentation on KO3 is making me crazy, if someone knows a well documented, fast and proven PHP framework to use with an 100% javascript Frontend, just let me know, but i would like to stick with Kohana because of the powerful ORM lib.
Thanks.
This looks like the most promising module for 3.2 (current stable)
https://github.com/morgan/kohana-restify
I have been very happy using CodeIgniter REST Server, which is an extension to the CodeIgniter framework. One of the nice things about CI is the excellent documentation when compared to Kohana. Then again, Kohana is an "improved" fork of CI; for example, CI does not have an out-of-the-box ORM library.

Categories