Page 1 of 1
CodeIgnitor and Kohana
Posted: Mon Jul 27, 2009 3:17 am
by hcamelion
I am looking at the code for this cart and I have to say it is excellent and looks very much like my favorite framework CodeIgnitor. Was this cart built with Kohana or CI or was your framework inspired by those projects? Excellent job!
Re: CodeIgnitor and Kohana
Posted: Mon Jul 27, 2009 3:52 am
by Daniel
the loader class was a little inspired.
For the rest I just went around looking for examples of the most simplest of each class needed to create a basic framework.
Remember keeping things simple is harder than writing complex code.
Re: CodeIgnitor and Kohana
Posted: Mon Jul 27, 2009 5:07 am
by hcamelion
Cool, yes it is very clean and simple which is what I love about CI. I also love small footprints and loose coupling.
I'm actually thinking of creating a payment library for CI and was looking at the carts out there to see if I can create a wrapper for them. This way I can simultaneously create payment modules for an open source cart and a loosely coupled payment library. Each project would benefit form each other
Your cart is the best so far but I'm not sure it is loose enough. I have to take a closer look. Right now It looks like your payment modules have controllers, models and views and and the user is passed to the correct controller based on the payment method choice. Then the controller handles everything...the business logic. Get Order gets everything the payment module needs Also at first glance I think your doing a little ajax for payment processing or atleast confirmation. These are the things Im looking for:
- Losely Coupled
Standardized...standard methods, standard input and standard output of each payment module.
Simple Code
Able to install payment modules via uploading a zip or placing in directories and that's it...uninstall just as easy
Is there any information around the forums to learn more about the payment system in open cart. Doesnt really matter I can just take a closer look when I have time.
Also what do you think of modular separation. I have implemented a custom library in CI to do that....none of the existing ones were efficient. I am a big fan of code organization and feel things are a lot easier and neater when they are located in MVC triads.
Would that ever be a possibility for open cart? I have already decided to use it on my next shopping cart client. They could not afford Interspire, the cart I usually use, so this is my new favorite open source cart even though it doesn't have as many features as bloated and convoluted Magento cart.