Use of exit language construct is discouraged [closed]Magento2 with Nginx and PHP7: cannot access the adminObserver: Use of die language construct is discouragedHow does Magento determine the route / getting 404 behind proxyoauth/token/request not getting parameter from thirdparty applicationHow to manage multiple store in Magento2How to solve Front controller reached 100 router match iterations in magento2Magento 2 add products to cart by using code?Use of protected class members is discouragedGet browser URL magento 2Magento 2 : Use of echo language construct is discouraged

Should I prioritize my 401(k) over my student loans?

How would modern naval warfare have to have developed differently for battleships to still be relevant in the 21st century?

Can any NP-Complete Problem be solved using at most polynomial space (but while using exponential time?)

Why do some professors with PhDs leave their professorships to teach high school?

How do I set an alias to a terminal line?

How convert text to hex value?

Can ADFS connect to other SSO services?

Swapping rooks in a 4x4 board

Unusual mail headers, evidence of an attempted attack. Have I been pwned?

How can I politely work my way around not liking coffee or beer when it comes to professional networking?

Can White Castle?

Links to webpages in books

How do I professionally let my manager know I'll quit over smoking in the office?

What was the Shuttle Carrier Aircraft escape tunnel?

Why do textbooks often include the solutions to odd or even numbered problems but not both?

Why doesn't a marching band have strings?

Require advice on power conservation for backpacking trip

Sci fi short story, robot city that nags people about health

How do I turn off a repeating trade?

Has there been any indication at all that further negotiation between the UK and EU is possible?

Do I have any obligations to my PhD supervisor's requests after I have graduated?

What is the origin of Scooby-Doo's name?

Long term BTC investing

What's currently blocking the construction of the wall between Mexico and the US?



Use of exit language construct is discouraged [closed]


Magento2 with Nginx and PHP7: cannot access the adminObserver: Use of die language construct is discouragedHow does Magento determine the route / getting 404 behind proxyoauth/token/request not getting parameter from thirdparty applicationHow to manage multiple store in Magento2How to solve Front controller reached 100 router match iterations in magento2Magento 2 add products to cart by using code?Use of protected class members is discouragedGet browser URL magento 2Magento 2 : Use of echo language construct is discouraged






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;








-1















if (sizeof($storeIds) > 0) 
if (strpos($actual_link, 'store') === false)
$actual_link = "http://$_SERVER[HTTP_HOST]$_SERVER[REQUEST_URI]store/".$storeIds[0]."/";
header('Location: ' . $actual_link);
exit();
else
$urlStore=$request->getParam('store');
$isValid=0;
foreach ($storeIds as $key => $id)
if ($id==$urlStore)
$isValid=1;


if ($isValid==0)
$actual_link = "http://$_SERVER[HTTP_HOST]$_SERVER[REQUEST_URI]store/".$storeIds[0]."/";
header('Location: ' . $actual_link);
exit();














share|improve this question















closed as unclear what you're asking by Jai, Shoaib Munir, Marius Jun 14 at 11:24


Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, it’s hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.


















  • i have use to exit(); header location then error show coding standared

    – milan
    Jun 14 at 13:51

















-1















if (sizeof($storeIds) > 0) 
if (strpos($actual_link, 'store') === false)
$actual_link = "http://$_SERVER[HTTP_HOST]$_SERVER[REQUEST_URI]store/".$storeIds[0]."/";
header('Location: ' . $actual_link);
exit();
else
$urlStore=$request->getParam('store');
$isValid=0;
foreach ($storeIds as $key => $id)
if ($id==$urlStore)
$isValid=1;


if ($isValid==0)
$actual_link = "http://$_SERVER[HTTP_HOST]$_SERVER[REQUEST_URI]store/".$storeIds[0]."/";
header('Location: ' . $actual_link);
exit();














share|improve this question















closed as unclear what you're asking by Jai, Shoaib Munir, Marius Jun 14 at 11:24


Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, it’s hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.


















  • i have use to exit(); header location then error show coding standared

    – milan
    Jun 14 at 13:51













-1












-1








-1








if (sizeof($storeIds) > 0) 
if (strpos($actual_link, 'store') === false)
$actual_link = "http://$_SERVER[HTTP_HOST]$_SERVER[REQUEST_URI]store/".$storeIds[0]."/";
header('Location: ' . $actual_link);
exit();
else
$urlStore=$request->getParam('store');
$isValid=0;
foreach ($storeIds as $key => $id)
if ($id==$urlStore)
$isValid=1;


if ($isValid==0)
$actual_link = "http://$_SERVER[HTTP_HOST]$_SERVER[REQUEST_URI]store/".$storeIds[0]."/";
header('Location: ' . $actual_link);
exit();














share|improve this question
















if (sizeof($storeIds) > 0) 
if (strpos($actual_link, 'store') === false)
$actual_link = "http://$_SERVER[HTTP_HOST]$_SERVER[REQUEST_URI]store/".$storeIds[0]."/";
header('Location: ' . $actual_link);
exit();
else
$urlStore=$request->getParam('store');
$isValid=0;
foreach ($storeIds as $key => $id)
if ($id==$urlStore)
$isValid=1;


if ($isValid==0)
$actual_link = "http://$_SERVER[HTTP_HOST]$_SERVER[REQUEST_URI]store/".$storeIds[0]."/";
header('Location: ' . $actual_link);
exit();











magento2






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Jun 14 at 10:24









fmsthird

3,3884 gold badges7 silver badges31 bronze badges




3,3884 gold badges7 silver badges31 bronze badges










asked Jun 14 at 10:20









milanmilan

213 bronze badges




213 bronze badges




closed as unclear what you're asking by Jai, Shoaib Munir, Marius Jun 14 at 11:24


Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, it’s hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.









closed as unclear what you're asking by Jai, Shoaib Munir, Marius Jun 14 at 11:24


Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, it’s hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.














  • i have use to exit(); header location then error show coding standared

    – milan
    Jun 14 at 13:51

















  • i have use to exit(); header location then error show coding standared

    – milan
    Jun 14 at 13:51
















i have use to exit(); header location then error show coding standared

– milan
Jun 14 at 13:51





i have use to exit(); header location then error show coding standared

– milan
Jun 14 at 13:51










0






active

oldest

votes



















0






active

oldest

votes








0






active

oldest

votes









active

oldest

votes






active

oldest

votes

Popular posts from this blog

Grendel Contents Story Scholarship Depictions Notes References Navigation menu10.1093/notesj/gjn112Berserkeree

Area configuration aggregation error after install Porto themeMagento 2.1 CE Installed but front/backend not loading/workingCSS not loading on page within Magento 2 pageCannot install module in Magento 2no commands defined in the “setup” namespace. in Magento2Magento 2: Static files are present but shows 404Why do i have to always run the commands to clean cache in Magento 2.1.8?Failure reason: 'Unable to unserialize value.'Error 500 after magento migrationIn production mode the site does not loadMagento 2 : Error 500 after installing

Middle Expansion Olielle Resaix Definition: Uttering songs of triumph shouting with joy triumphant exulting Sejunction Journal 붙다 달 고급 품목 외출 The stretch trades the screeching tin. Definition: The act of speaking with a drawl a drawl Cough Sand Definition: An uproar a quarrel a noisy outbreak Shake Iron Publicize Horse House Baby 사과 Resaix Flaggy Jelly Temporary Unequaled Puppet A drop in the bucket Shrew 성격 회원 성질 미팅 The burn frames the tacky quality. Materialistic The smoke reduces the way. Yammoe Nondescript Cheek 얼굴 배 약하다 날리다 타다 The illegal country shows the iron. Help Rule Drearien Smoke Teaching Meaty Wasp Abraham Lincoln Jaws 진심 수리하다 Size Cork Idea Convert Think Lark John Lennon 거울 청소 군 추천하다 아이스크림