I am new to magento and have no concept of MVC, but i been given a job to work on it, that mean to understand it and implement the specification, now i feel too stressed as i really want to understand the magento "Beast", i have been following Tuts+ Magento Fundamental and i picked up a lot. YEt everything is vague because "Hello World" isn't a cup of tea that goes into real world. I really want more in depth tutorials where i know more of breakdown e.g
- I want to know how Model, controllers and view work together to feed data,function to given html element, how does it know how to map data to the fields.
- How to make extra menu and link to it.
- What is more practical way of using model, controllers, resource etc. besides just a "Hello function".
- How do we know which method to apply or what to ask for when we say
getABC()
etc.
and many more point to make the store with a great functionality.I understand it won't be too quick to get it all down, but I am too much keen to lose my sleep over learning it and making myself proud.I am pretty new to Magento but had a fair knowledge of creating blocks, helpers, controllers etc. I am still fuzzy over example set even by Magento to make a module which just says hello world as explained in "Magento Fundamentals", I want to take a real-life approach to learning Magento e.g displaying users information like a profile, a way to update it, get products which a user order and history etc. How can I map my values to the right field while creation of a form? e.g First name: first name Last name: last name Address: address Etc
Where will they go in, in Blocks, or controllers? How do I make a layout to make a form? I know things like loadLayout
and renderLayout
that produce layout but how to use the fields in that form or layout map out to the fields I require or even display a custom menu which can perform a different action such as
Account summary Account history Order history
Etc. Like I said I been following "Magento Fundamentals" by MagentoU and cannot seem to answer these questions.
Edit : Can it be i am don't have understanding of MVC, i follow Treehouse and Lynda for tuts, but no MVC PHP tuts over there. Only ASP.net tuts. I found this link for MVC but only if it is worth it?
Update : After exploring many links, i am still confused over why Model and controllers are used. How can we map information about a customer or a dashboard to user who has logged in, the example provided have examples like getProduct(1), how will magento know which id to look for and use and work against it. So what i mean to say is, what kind of data is stored in 1. models, 2. controllers, 3. I know references is use to get block already defined in xml but a practical real life example would be good.