Code
Explorer
You are a developer and looking for Shopware projects?
Apply Now!
ControllerBase example
/** @var Shopware_Plugins_Frontend_Statistics_Bootstrap $plugin */
$plugin
=
Shopware
(
)
->
Plugins
(
)
->
Frontend
(
)
->
Statistics
(
)
;
$plugin
->
updateLog
(
$request
,
$response
)
;
}
/** * Get cms menu */
public
function
menuAction
(
)
: void
{
$this
->
View
(
)
->
assign
(
'sGroup',
$this
->
Request
(
)
->
getParam
(
'group'
)
)
;
$plugin
=
Shopware
(
)
->
Plugins
(
)
->
Core
(
)
->
ControllerBase
(
)
;
$this
->
View
(
)
->
assign
(
'sMenu',
$plugin
->
getMenu
(
)
)
;
}
/** * Get shop menu */
public
function
shopMenuAction
(
)
: void
{
$shop
=
Shopware
(
)
->
Shop
(
)
;
$main
= DetachedShop::
createFromShop
(
$shop
->
getMain
(
)
??
$shop
)
;