How are url’s mapped to modules?
How does the system know to look at layout/sendmail.xml?
How does the system know to run /app/design/frontend/default/default/template/sendfriend/send.phtml?
I want to make a similar extension - well actually just an alternate rendering of a product view with a different template - this is closest I can find. (in that I know the product id is there) Ideally though I would like to extend the catalog module or create a totally new module, but I just can’t figure out how to register a page url and get it to run?
eg. in layout/catalog.xml if I could just add a
and have this run my view2.phtml instead of view.phtml
with the product registered or product id passed in the url as per view (probably just inherit from view class?)
then that would be all I need.