Creating and Managing Zend Framework Modules

In one of my previous blog posts, there was a question related to the modular structure of the Zend Framework. Later the comments moved to the email and I suppose it will be nice to share what we talked in this blog too, so it becomes common knowledge :)
Continue reading Creating and Managing Zend Framework Modules

Creating Your Own Payment Gateway For Magento – Part 3

Well, after nearly a year, here comes the third part for the Magento payment gateway. If you have already forgotten about the previous two parts, go check here and here. What I will discuss here is how you can save your custom fields to the database and show them on the admin order page. Still I won’t get into the details of the payment as it’s pretty domain specific.
Continue reading Creating Your Own Payment Gateway For Magento – Part 3

Creating Doctrine adapter for Zend_Auth

Hi, as you know I have put a lot effort to integrate Doctrine and Zend Framework together and I have written quite a lot about them recently. So it’s one of them. As you may know, Zend Framework has a component called Zend_Auth which is used to authenticate and authorize people. It contains lots of different adapters like Digest, Http or DbTable. However it does not have a Doctrine adapter yet. And this blog will mention you about it.
Continue reading Creating Doctrine adapter for Zend_Auth

Creating a Doctrine CLI and Adding it to Zend_Tool

i will try to explain you how you can create a command which you can use on your command line to execute doctrine commands. This is the first part of the post. The second part is a bit fantasy. I have tried to integrate doctrine to Zend_Tool and wanted to call it like:

zf.sh generate doctrine sql

Actually, you don’t need such a thing. First part is pretty much enough for you. Second part is just for fun.
Continue reading Creating a Doctrine CLI and Adding it to Zend_Tool

Integrating Zend Framework with Doctrine ORM

Yet another how-to for Zend Framework. You can find a lot of integration how-tos around the web with googling and I maybe the just one of them. I’m trying to find the wheel again. This one is like my subversion how-tos, a self reminder first. So let’s cut the crap and get down to the business.
Continue reading Integrating Zend Framework with Doctrine ORM

Creating Your Own Payment Gateway For Magento – Part 2

So in my previous blog, I had mentioned about an admin panel and basic configuration for creating a simple module. This is the second part and I will try to explain you how you can implement your own payment gateway and getting the values we have set on the database. If you have not read the first part, go take a look.
Continue reading Creating Your Own Payment Gateway For Magento – Part 2

NetBeans 6.8 Has Symfony Support, Why Not Zend!

If you have not heard yet, NetBeans PHP developer team has just finished their support for PHP framework Symfony. You can read the whole stroy here. NetBeans PHP guys are really working hard for it!

So why I blog about this?! Because I see this as an opportunity. It’s great that NetBeans now has a great support for a PHP framework (even thought it’s experimental and “beta”) and since this was the most voted PHP framework, I hope the next release (6.9 maybe 6.8.5) of NetBeans will contain a support for Zend Framework too with as much vote as it can have! If you have read the whole article (jump to action! That’s cool!), you will notice that the first comment is when we will be able to see the ZF support in NetBeans. I second that!

So if you are interested on to see ZF becomes the second supported framework by NetBeans, just go the Zend Framework Support issue on NetBeans issue tracker and vote for it. It currently contains 87 (I hope it’s counting:) votes and if we can reach 100 or something it might be enough to a support for ZF too!

By the way, NetBeans 6.8 Milestone was quite a success for me and with Netbeans 6.8 Beta is on the way, wait for another review too. The most important asset for me is to be able to select a configuration file for phpunit runs (not much huh?) and of course PHP 5.3 support too (I wonder if it contains a migration assistant or a function like find backward incompatible functions in the project or shows a notification or something).

Just don’t forget to vote! :)

Optimizing Zend_Db_Table SQL Query Count for Multiple Reference Tables

Recently I have started to use Zend Framework for a new project in the company. I have designed my database tables and then created some models for my MVC with Zend_Db_Table. When I wanted to show a detail page for a row in a table which had 4 foreign keys, I needed to make some joins in the sql which I was unable to do and used findParentRow() method which was a huge miskate. That’s where the story begins.
Continue reading Optimizing Zend_Db_Table SQL Query Count for Multiple Reference Tables

Setting Up a Zend Framework Project From Scratch

I’m finally back with yet another tutorial about Zend Framework. It has been a long time since I last written because of the work load I currently have. So with the release of the Zend Studio 7.0 (or The Rise of Zend_Application and Zend_Tool), I have created a new Zend Framework Project with it. Just to see how the Zend_Application and Zend_Tool duo is working. And I can say that it’s pretty good.
Continue reading Setting Up a Zend Framework Project From Scratch

Working on Ruby and Ruby on Rails

As you know I have recently had an idea on what is Ruby and how this Rails and Trains works. I did not had enough time to work on them but I got a book to read. Instead of starting from Pragmatic’s Guide to Ruby, I have started with RoR book for a hands-on experience with real time apps. I guess that’s pretty good way, because you learn the best when you read some else’s code.
Continue reading Working on Ruby and Ruby on Rails