Code
Explorer
You are a developer and looking for Shopware projects?
Apply Now!
shouldRedirectToTarget example
$this
->
forward
(
'index', 'account'
)
;
return
;
}
if
(
$this
->
shouldRedirectToCheckout
(
)
)
{
$this
->
forward
(
'confirm', 'checkout'
)
;
return
;
}
if
(
$this
->
shouldRedirectToTarget
(
)
)
{
$this
->
redirect
(
[
'controller' =>
$sTarget
, 'action' =>
$sTargetAction
]
)
;
return
;
}
$this
->
View
(
)
->
assign
(
'isAccountless',
$this
->
get
(
'session'
)
->
get
(
'isAccountless'
)
)
;
$this
->
View
(
)
->
assign
(
'register',
$this
->
getRegisterData
(
)
)
;
$this
->
View
(
)
->
assign
(
'countryList',
$this
->
get
(
'modules'
)
->
Admin
(
)
->
sGetCountryList
(
)
)
;
}
/** * Checks the registration */