


11. Interfejs API |
![]() |
![]() |
11. Interfejs APImosLoadComponentLoads (executes) the specified component. This function loads the specified component by including the file in the component’s directory bearing the name of the component with the extension .php. This function does not return a value. The file is included with ’include’, and not ’require’. Therefore, if the file is not found, a warning will be generated, but Joomla! will continue to execute. The specified component will be loaded. Before including the file for the component, the $Database and $mainframe global variables are declared so that they will be in scope within the component being loaded. Składniavoid mosLoadComponent ( string $name )
Defined inincludes/template.php PrzykładyPrzykład: Loading the newsfeeds component mosLoadComponent( 'newsfeeds' ); This will load the newsfeeds component. More specifically, it will include the file /components/com_newsfeeds/newsfeeds.php. Please report any errors on this page to the Developer Documentation Forum. |
|
Zmieniony ( 05.02.2006. ) |
następny artykuł » |
---|