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

Get product attribute by attribute group code in magento 2get product attribute by product attribute group in magento 2Magento 2 Log Bundle Product Data in List Page?How to get all product attribute of a attribute group of Default attribute set?Magento 2.1 Create a filter in the product grid by new attributeMagento 2 : Get Product Attribute values By GroupMagento 2 How to get all existing values for one attributeMagento 2 get custom attribute of a single product inside a pluginMagento 2.3 How to get all the Multi Source Inventory (MSI) locations collection in custom module?Magento2: how to develop rest API to get new productsGet product attribute by attribute group code ( [attribute_group_code] ) in magento 2

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

Magento 2.3: How do i solve this, Not registered handle, on custom form?How can i rewrite TierPrice Block in Magento2magento 2 captcha not rendering if I override layout xmlmain.CRITICAL: Plugin class doesn't existMagento 2 : Problem while adding custom button order view page?Magento 2.2.5: Overriding Admin Controller sales/orderMagento 2.2.5: Add, Update and Delete existing products Custom OptionsMagento 2.3 : File Upload issue in UI Component FormMagento2 Not registered handleHow to configured Form Builder Js in my custom magento 2.3.0 module?Magento 2.3. How to create image upload field in an admin form