I am new in the magento. If anyone have idea how to do this then please let me know. I have two files in different module in in that two .phtml file will be there. From First .phtml file to another .phtml file i want pass array variable I am not getting how to pass that.
First file path as follows with php variable:
In this file i have $transaction variable that i want to send another info.phtml
<?php /** @var \Magento\Customer\Block\Account\Dashboard\Address $block */ $helper = $this->helper("Lof\CustomerMembership\Helper\Data"); $transactions = $block->getTransactions(); $address=$block->getPrimaryBillingAddress(); $objectManager = \Magento\Framework\App\ObjectManager::getInstance(); $customerSession = $objectManager->get('Magento\Customer\Model\Session'); $customerId =$customerSession->getCustomer()->getId(); $activeOrNot=""; ?>
Another file path will be:
In the info.php file i want that $transactions array variable
Anyone have idea how to do this then please let me know