Magento2: Block Controller IssueHow to change save path of PDF files in magento 2Pass data from block to controllerCall a block from a controllermagento 2 custom module layout issueMagento 2 - controller block not displaying templateAJAX login, how to pass data response from controller to jQuery with AjaxMagento2 : Restful Web service Calls - controller is not showingMagento 2.2.5: Overriding Admin Controller sales/orderMagento 2: I Want to add multiple product using checkboxMagento 2.3 Can't view module's front end page output?

Did Stalin kill all Soviet officers involved in the Winter War?

Earliest example of double planets in science fiction?

Why do Martians have to wear space helmets?

Is there a minimum amount of electricity that can be fed back into the grid?

Do I need transit visa for Dublin?

How can I use my cell phone's light as a reading light?

How would a sea turtle end up on its back?

Do intermediate subdomains need to exist?

Who goes first? Person disembarking bus or the bicycle?

How do I check that users don't write down their passwords?

Does the sensor of a dslr count the number of photons that hits it?

Why do people prefer metropolitan areas, considering monsters and villains?

What is the maximum amount of diamond in one Minecraft game?

How do resistors generate different heat if we make the current fixed and changed the voltage and resistance? Notice the flow of charge is constant

What's the big deal about the Nazgûl losing their horses?

Minor differences between two recorded guitars

What is the meaning of "prairie-dog" in this sentence?

An easy way to solve this limit of a sum?

How to reclaim personal item I've lent to the office without burning bridges?

What is this airplane with small wings at different angles seen at Paphos Airport?

Examples of fluid (including air) being used to transmit digital data?

Are "confidant" and "confident" homophones?

What happens if the limit of 4 billion files was exceeded in an ext4 partition?

Why would "dead languages" be the only languages that spells could be written in?



Magento2: Block Controller Issue


How to change save path of PDF files in magento 2Pass data from block to controllerCall a block from a controllermagento 2 custom module layout issueMagento 2 - controller block not displaying templateAJAX login, how to pass data response from controller to jQuery with AjaxMagento2 : Restful Web service Calls - controller is not showingMagento 2.2.5: Overriding Admin Controller sales/orderMagento 2: I Want to add multiple product using checkboxMagento 2.3 Can't view module's front end page output?






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








1















When I call to controller first time showing my data on page after some seconds data not showing on page. page is showing blank.



Controller



public function execute()

$itemid = $this->getRequest()->getParam('itemid');
$this->_coreRegistry->register('itemid', $itemid);
$resultPage = $this->_resultPageFactory->create();
return $resultPage;
//$this->_redirect('csr/index/find');



After some time $itemid not getting me.










share|improve this question
























  • You mean after some times page load automatically, and after reload page will become blank.

    – Ravi Soni
    Jun 27 at 11:54












  • No, Some time page not reload but I taking product data from block. Product id have taken blank after some time. @Ravi

    – Masud Shaikh
    Jun 27 at 12:06












  • I think second time block not found. @Ravi

    – Masud Shaikh
    Jun 27 at 12:12











  • I have debugged getting $tempBlock = null @Ravi

    – Masud Shaikh
    Jun 27 at 12:28











  • You should add your custom code here so everyone can understand.

    – Ravi Soni
    Jun 27 at 12:34

















1















When I call to controller first time showing my data on page after some seconds data not showing on page. page is showing blank.



Controller



public function execute()

$itemid = $this->getRequest()->getParam('itemid');
$this->_coreRegistry->register('itemid', $itemid);
$resultPage = $this->_resultPageFactory->create();
return $resultPage;
//$this->_redirect('csr/index/find');



After some time $itemid not getting me.










share|improve this question
























  • You mean after some times page load automatically, and after reload page will become blank.

    – Ravi Soni
    Jun 27 at 11:54












  • No, Some time page not reload but I taking product data from block. Product id have taken blank after some time. @Ravi

    – Masud Shaikh
    Jun 27 at 12:06












  • I think second time block not found. @Ravi

    – Masud Shaikh
    Jun 27 at 12:12











  • I have debugged getting $tempBlock = null @Ravi

    – Masud Shaikh
    Jun 27 at 12:28











  • You should add your custom code here so everyone can understand.

    – Ravi Soni
    Jun 27 at 12:34













1












1








1








When I call to controller first time showing my data on page after some seconds data not showing on page. page is showing blank.



Controller



public function execute()

$itemid = $this->getRequest()->getParam('itemid');
$this->_coreRegistry->register('itemid', $itemid);
$resultPage = $this->_resultPageFactory->create();
return $resultPage;
//$this->_redirect('csr/index/find');



After some time $itemid not getting me.










share|improve this question
















When I call to controller first time showing my data on page after some seconds data not showing on page. page is showing blank.



Controller



public function execute()

$itemid = $this->getRequest()->getParam('itemid');
$this->_coreRegistry->register('itemid', $itemid);
$resultPage = $this->_resultPageFactory->create();
return $resultPage;
//$this->_redirect('csr/index/find');



After some time $itemid not getting me.







magento2 controllers custom-block






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Jun 27 at 12:36







Masud Shaikh

















asked Jun 27 at 11:50









Masud ShaikhMasud Shaikh

4111 silver badge11 bronze badges




4111 silver badge11 bronze badges












  • You mean after some times page load automatically, and after reload page will become blank.

    – Ravi Soni
    Jun 27 at 11:54












  • No, Some time page not reload but I taking product data from block. Product id have taken blank after some time. @Ravi

    – Masud Shaikh
    Jun 27 at 12:06












  • I think second time block not found. @Ravi

    – Masud Shaikh
    Jun 27 at 12:12











  • I have debugged getting $tempBlock = null @Ravi

    – Masud Shaikh
    Jun 27 at 12:28











  • You should add your custom code here so everyone can understand.

    – Ravi Soni
    Jun 27 at 12:34

















  • You mean after some times page load automatically, and after reload page will become blank.

    – Ravi Soni
    Jun 27 at 11:54












  • No, Some time page not reload but I taking product data from block. Product id have taken blank after some time. @Ravi

    – Masud Shaikh
    Jun 27 at 12:06












  • I think second time block not found. @Ravi

    – Masud Shaikh
    Jun 27 at 12:12











  • I have debugged getting $tempBlock = null @Ravi

    – Masud Shaikh
    Jun 27 at 12:28











  • You should add your custom code here so everyone can understand.

    – Ravi Soni
    Jun 27 at 12:34
















You mean after some times page load automatically, and after reload page will become blank.

– Ravi Soni
Jun 27 at 11:54






You mean after some times page load automatically, and after reload page will become blank.

– Ravi Soni
Jun 27 at 11:54














No, Some time page not reload but I taking product data from block. Product id have taken blank after some time. @Ravi

– Masud Shaikh
Jun 27 at 12:06






No, Some time page not reload but I taking product data from block. Product id have taken blank after some time. @Ravi

– Masud Shaikh
Jun 27 at 12:06














I think second time block not found. @Ravi

– Masud Shaikh
Jun 27 at 12:12





I think second time block not found. @Ravi

– Masud Shaikh
Jun 27 at 12:12













I have debugged getting $tempBlock = null @Ravi

– Masud Shaikh
Jun 27 at 12:28





I have debugged getting $tempBlock = null @Ravi

– Masud Shaikh
Jun 27 at 12:28













You should add your custom code here so everyone can understand.

– Ravi Soni
Jun 27 at 12:34





You should add your custom code here so everyone can understand.

– Ravi Soni
Jun 27 at 12:34










0






active

oldest

votes














Your Answer








StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "479"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);

else
createEditor();

);

function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);



);













draft saved

draft discarded


















StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f279917%2fmagento2-block-controller-issue%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown

























0






active

oldest

votes








0






active

oldest

votes









active

oldest

votes






active

oldest

votes















draft saved

draft discarded
















































Thanks for contributing an answer to Magento Stack Exchange!


  • Please be sure to answer the question. Provide details and share your research!

But avoid


  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.

To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f279917%2fmagento2-block-controller-issue%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

Category:9 (number) SubcategoriesMedia in category "9 (number)"Navigation menuUpload mediaGND ID: 4485639-8Library of Congress authority ID: sh85091979ReasonatorScholiaStatistics

Circuit construction for execution of conditional statements using least significant bitHow are two different registers being used as “control”?How exactly is the stated composite state of the two registers being produced using the $R_zz$ controlled rotations?Efficiently performing controlled rotations in HHLWould this quantum algorithm implementation work?How to prepare a superposed states of odd integers from $1$ to $sqrtN$?Why is this implementation of the order finding algorithm not working?Circuit construction for Hamiltonian simulationHow can I invert the least significant bit of a certain term of a superposed state?Implementing an oracleImplementing a controlled sum operation

Magento 2 “No Payment Methods” in Admin New OrderHow to integrate Paypal Express Checkout with the Magento APIMagento 1.5 - Sales > Order > edit order and shipping methods disappearAuto Invoice Check/Money Order Payment methodAdd more simple payment methods?Shipping methods not showingWhat should I do to change payment methods if changing the configuration has no effects?1.9 - No Payment Methods showing upMy Payment Methods not Showing for downloadable/virtual product when checkout?Magento2 API to access internal payment methodHow to call an existing payment methods in the registration form?