magento 2 세션으로 어려움을 겪고 있습니다. 아래 컨트롤러 파일을 샘플 코드로 만들었습니다.
<?php
namespace vendor_name\module_name\Controller\SetGetSession;
use Magento\Framework\App\Action\Action;
class SetGetSession extends Action
{
protected $customerSession;
public function _construct(
\Magento\Customer\Model\Session $customerSession
) {
$this->customerSession = $customerSession;
}
public function execute()
{
}
}
누구든지 데이터를 할당하고 세션 변수에서 데이터를 검색하는 방법을 도와 줄 수 있습니까?
감사합니다.