Magento Forum

   
Help & Reading Suggestions for Overall Framework/Architecture
 
HiThere
Jr. Member
 
Total Posts:  4
Joined:  2007-12-20
 

Hey folks.

I’m trying to get up and running with Magento. I’m excited by this open source alternative and am very grateful to Varien’s crew for sharing this with the world.

When I crack open the code, I can’t help having this overall “what the?!?!?” feeling. It’s been a little while since I did PHP development, but am familiar enough to at least get up and running while old the PHP brain cells warm up. I have CF, RoR, SQL etc experience and have tinkered my fair share with Java.

Having said all that, does anyone have any recommendations on what to read to familiarize myself with the architecture of this application? I gotta say, this puppy seems pretty hyper-engineered, and I’m certain there was good reason for the architectural choices made by the development staff. The problem is, I for one am not familiar with most of the tactics they’re using, and I’m feeling a wee bit lost.

Primarily, I’d love to get my head wrapped around why the app was set up this way (xml config, conventions and structure), and I’d like to learn enough to start creating my own modules.

Any and all help would be greatly appreciated. Thanks!

 
Magento Community Magento Community
Magento Community
Magento Community
 
HiThere
Jr. Member
 
Total Posts:  4
Joined:  2007-12-20
 

hey Ron, thanks! Not very helpful tho.

I skimmed through those a while back and thought they were a good explanation for the *design* aspect of customizing Magento. Creating a new design package and modifying the templates has been easy and straightforward.

What I’m more interested in, however, is more back-end customization and extension--*not* merely design modification.

 
Magento Community Magento Community
Magento Community
Magento Community
 
Mark_Kimsal
Sr. Member
 
Total Posts:  186
Joined:  2007-09-12
Michigan, USA
 

HiThere,

Maybe my wiki pages can help you start to decipher the code

http://www.magentocommerce.com/wiki/groups/174/custom_sized_products

http://www.magentocommerce.com/wiki/groups/174/changing_and_customizing_magento_code

Also, there’s a graphic of the request cycle as an attachment on this post:
http://www.magentocommerce.com/boards/viewthread/1704/

Don’t feel bad, I really don’t understand the code either.  I like the term “hyper-engineered”. 

Here are a couple nuggets that I’ve found out over the past few months:

* Lots of magic set/get calls stuff data in $var->_data array, look at lib/Varien/Object.php

* Mage/Module/controllers/*Controller.php usually kick-off most of the logic in various “Model/*” files.

* The database looks sort of “sideways” at first glance, this is for maximum flexibility.

* EAV is very important, don’t know what it does, but almost everything subclasses something from it.

* The main.xml under design/frontend/default/default/layout/ can configure more stuff than you realize (allowing you to embed method calls for certain pages, etc), but it is highly un-finalized as of right now.

* Templates (*.phtml) files are executed under the scope of a “Block” object, Mage/Module/Block/*

Things that I don’t understand yet

* calls to “getResource()”

* EAV

* a good way to debug/print_r/var_dump/look at SQL 0.o

 
Magento Community Magento Community
Magento Community
Magento Community
 
HiThere
Jr. Member
 
Total Posts:  4
Joined:  2007-12-20
 

Mark_Kimsal,

you, kind sir, are the man. THANK YOU for sharing this info. I have to admit, I have passed by some of the wiki posts and forum threads thinking they were lessons on how to do things using the GUI. I’ll have to go back again and make sure I’m not skipping anything important (like your Custom Sized Products entry).

Thanks again, and Happy Holidays!

 
Magento Community Magento Community
Magento Community
Magento Community
 
beowax
Sr. Member
 
Total Posts:  94
Joined:  2007-12-17
Lille, France
 
Mark_Kimsal - 24 December 2007 08:36 AM

HiThere,

Maybe my wiki pages can help you start to decipher the code

http://www.magentocommerce.com/wiki/groups/174/custom_sized_products

http://www.magentocommerce.com/wiki/groups/174/changing_and_customizing_magento_code

Also, there’s a graphic of the request cycle as an attachment on this post:
http://www.magentocommerce.com/boards/viewthread/1704/


Don’t feel bad, I really don’t understand the code either.  I like the term “hyper-engineered”. 

Here are a couple nuggets that I’ve found out over the past few months:

* Lots of magic set/get calls stuff data in $var->_data array, look at lib/Varien/Object.php

* Mage/Module/controllers/*Controller.php usually kick-off most of the logic in various “Model/*” files.

* The database looks sort of “sideways” at first glance, this is for maximum flexibility.

* EAV is very important, don’t know what it does, but almost everything subclasses something from it.

* The main.xml under design/frontend/default/default/layout/ can configure more stuff than you realize (allowing you to embed method calls for certain pages, etc), but it is highly un-finalized as of right now.

* Templates (*.phtml) files are executed under the scope of a “Block” object, Mage/Module/Block/*

Things that I don’t understand yet

* calls to “getResource()”

* EAV

* a good way to debug/print_r/var_dump/look at SQL 0.o

Thanks for sharing this ! smile

 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
    Back to top