Componentsused when you want to include a block in different parts of the site (for example, "Top 10 sales" or something like that) - this requires some controller code. You include component output in another action template / partial / other component with
include_component ($ module_name, $ component_name, array ('var1' => $ var1));the action should be called directly by the browser, so you cannot include its output in another template (without any hacking) Think of the components as a reusable html block that can be included anywhere, as well as the actions that appear on the page in general and sent to the browser. matei source
share