php - Accessing session variable inside magento files -


I have a custom file in which I am using the session to store the variable and I want to add them to the megentribute files Need to access variables. My custom folder structure: magento / custom / checkmail.php I need to reach the session variable in the Magenta file ie session / calendar / app / design / frontend / base / default / template / continuous / customer / form / login. In the Magento file login.phtml but the values ​​are not going to go near .its near "zero" value how do i go with it

How are you saving the value in the session

  $ Session = Dana :: getSingleton (" core / session ", array (" name "=> gt;" foreground ") ); $ Session- & gt; Set data ("custom_field", 'custom value'); $ YourValue = $ session- & gt; Milladata ("custom_field");    

Comments

Popular posts from this blog

python - Writing Greek in matplotlib labels, titles -

c# - LINQ to Entities does not recognize the method 'Int32 IndexOf(System.String, System.StringComparison)' method -

c# - Call function from DLL -