How to transfer data from Controller to View Magento ?

Hello Developer,

today we are Learn How to transfer data from Controller to View Magento.

Magento have a inbuilt function to pass array from controller to Phtml file. You can Pass any Data Like a Array String using this Method.

First You have to Store a Value in one variable.

$cars =array("Volvo","BMW","Toyota");


Its You array You want to pass a result in phtml file from controller Magento. then You can use Mage::register method to pass array in controller.

Now Set this value in Your Controller.

Mage::register('cars_data',$cars);


In this line the cars_data name is only name to access the data in phtml file. You can writer here any name as per Your Choice.

Now Get Data in Your View Phtml File.

$car_value = Mage::registry('cars_data');


Now You Can Store the data in a Variable and you can Check the getting data using var_dump($car_value );

 

 

1,590 thoughts on “How to transfer data from Controller to View Magento ?

  1. Hey webmaster
    When you write some blogs and share with us,that is a hard work for you but share makes you happly right?
    yes I am a blogger too,and I wanna share with you my method to make some extra cash,not too much
    maybe $100 a day,but when you keep up the work,the cash will come in much and more.more info you can checkout my blog.
    http://bit.ly/makemoneymethod2018
    good luck and cheers!

  2. Right here is the right site for anyone who wants to find out about this topic.
    You know a whole lot its almost hard to argue with you (not that I actually will need to…HaHa).
    You certainly put a brand new spin on a subject that’s been written about for many years.
    Wonderful stuff, just great! http://pokemongo-wsh.sakura.ne.jp/wp/2018/03/18/%e3%80%90%e3%83%9d%e3%82%b1%e3%83%a2%e3%83%b3go%e6%94%bb%e7%95%a5%e3%80%91%e5%88%9d%e3%82%b2%e3%83%83%e3%83%88%ef%bc%81/comment-page-1/

  3. “Nice post. I used to be checking constantly this blog and I’m impressed! Very helpful information specifically the last section 🙂 I maintain such info much. I was seeking this particular information for a very lengthy time. Thank you and best of luck. “

  4. I would like to express my thanks to you just for rescuing me from this type of condition. Just after exploring through the world wide web and getting tips which are not powerful, I was thinking my life was well over. Being alive minus the answers to the problems you’ve fixed through your entire posting is a crucial case, as well as ones which may have adversely damaged my career if I hadn’t encountered your blog post. Your good natural talent and kindness in touching all things was vital. I don’t know what I would have done if I had not come across such a step like this. I can at this time relish my future. Thanks a lot so much for this impressive and effective guide. I will not be reluctant to suggest the sites to any person who will need care about this problem.

  5. I truly wanted to type a brief message so as to say thanks to you for all the stunning facts you are posting here. My time consuming internet look up has at the end been compensated with reputable tips to talk about with my great friends. I ‘d suppose that most of us readers are undeniably endowed to exist in a perfect site with very many awesome individuals with beneficial basics. I feel rather blessed to have encountered your entire weblog and look forward to so many more awesome moments reading here. Thanks once again for all the details.

  6. I’m typically to running a blog and i actually appreciate your content. The article has really peaks my interest. I’m going to bookmark your website and hold checking for brand spanking new information.

  7. I intended to write you this very small note so as to say thanks once again relating to the striking principles you’ve shared on this site. It is certainly remarkably open-handed with people like you to supply openly what many of us would have distributed as an electronic book to get some money on their own, most notably seeing that you might well have tried it if you decided. The basics likewise acted to be the good way to be sure that other people online have the same fervor like my own to realize many more when considering this matter. I know there are millions of more pleasant times in the future for individuals who looked over your blog.

  8. Thank you a lot for giving everyone a very wonderful chance to read critical reviews from this website. It really is so pleasing plus packed with amusement for me and my office co-workers to visit your site at the least three times in one week to read through the latest secrets you will have. And of course, I am usually fulfilled concerning the gorgeous tips and hints you give. Selected 2 facts in this article are ultimately the most impressive we have all ever had.

  9. I intended to post you a very little remark so as to give thanks the moment again about the stunning solutions you have shown in this article. It’s really unbelievably generous of you to convey publicly what most of us would’ve offered for sale for an e-book in order to make some money for themselves, principally considering that you could possibly have done it if you wanted. Those suggestions likewise served as the good way to fully grasp that other people have the identical keenness just as my very own to know the truth way more regarding this condition. I’m sure there are many more pleasurable occasions ahead for people who take a look at your website.

  10. I simply wanted to write down a brief note to thank you for the nice tips and tricks you are giving at this website. My extended internet research has now been rewarded with good strategies to talk about with my family and friends. I ‘d admit that we readers are undoubtedly fortunate to be in a notable place with so many perfect professionals with good strategies. I feel quite privileged to have come across your entire web pages and look forward to many more fabulous moments reading here. Thank you again for all the details.

  11. An fascinating dialogue is value comment. I feel that you should write extra on this topic, it might not be a taboo topic but typically persons are not enough to speak on such topics. To the next. Cheers

  12. Aw, this was a very nice post. In concept I want to put in writing like this moreover ?taking time and actual effort to make a very good article?but what can I say?I procrastinate alot and under no circumstances appear to get something done.

  13. After research just a few of the blog posts on your web site now, and I really like your approach of blogging. I bookmarked it to my bookmark website checklist and can be checking back soon. Pls take a look at my site as properly and let me know what you think.

  14. I happen to be commenting to let you know of the fabulous encounter my wife’s princess encountered going through your site. She mastered numerous issues, not to mention what it’s like to have an awesome giving style to have many people effortlessly learn selected multifaceted things. You actually did more than my desires. Thanks for producing the necessary, safe, informative and also easy tips about the topic to Gloria.

  15. I really wanted to jot down a brief message so as to appreciate you for all of the amazing techniques you are writing on this website. My rather long internet search has now been compensated with reasonable concept to write about with my partners. I would believe that we website visitors actually are undeniably blessed to be in a fine website with very many brilliant individuals with valuable guidelines. I feel extremely privileged to have encountered your entire webpage and look forward to many more thrilling times reading here. Thank you once again for all the details.

  16. Needed to write you the tiny word so as to thank you so much once again with the splendid opinions you’ve shown above. It has been extremely open-handed with people like you to allow extensively precisely what a few individuals could possibly have distributed as an ebook to help with making some profit for themselves, certainly given that you could have tried it in the event you wanted. Those good ideas also worked to be the great way to fully grasp other people online have similar dreams just like my very own to grasp somewhat more with respect to this issue. I’m certain there are some more enjoyable sessions in the future for folks who find out your blog post.

  17. Needed to compose you the little bit of word to finally say thanks the moment again about the pleasant tricks you have shared here. This has been quite pretty generous of people like you to grant extensively exactly what a lot of folks could possibly have distributed for an ebook to earn some cash for themselves, especially considering the fact that you might have tried it in the event you desired. These guidelines also served like the great way to fully grasp that most people have the identical desire like my personal own to grasp very much more in respect of this matter. I’m certain there are many more fun times up front for those who browse through your blog.

  18. That is the suitable blog for anybody who desires to find out about this topic. You understand a lot its nearly arduous to argue with you (not that I actually would want匟aHa). You definitely put a brand new spin on a topic thats been written about for years. Nice stuff, just great!

  19. I just wanted to make a small comment to thank you for some of the fantastic strategies you are sharing at this site. My rather long internet lookup has now been recognized with awesome strategies to go over with my relatives. I ‘d express that most of us website visitors are unequivocally blessed to be in a magnificent place with so many perfect people with useful concepts. I feel extremely happy to have seen your entire website and look forward to some more entertaining moments reading here. Thanks a lot once again for everything.

  20. I am typically to blogging and i actually admire your content. The article has really peaks my interest. I am going to bookmark your website and preserve checking for new information.

  21. I抎 should check with you here. Which isn’t one thing I usually do! I get pleasure from studying a put up that can make folks think. Additionally, thanks for allowing me to remark!

  22. My wife and i have been now cheerful that Albert managed to finish off his inquiry with the ideas he obtained through the blog. It’s not at all simplistic to just possibly be giving freely tips that the rest might have been trying to sell. We really recognize we have got you to give thanks to for that. All of the illustrations you’ve made, the simple website menu, the relationships your site aid to create – it is all terrific, and it is aiding our son in addition to us reckon that this concept is satisfying, and that is really vital. Thanks for all!

  23. The subsequent time I read a blog, I hope that it doesnt disappoint me as much as this one. I imply, I know it was my option to read, however I actually thought youd have one thing attention-grabbing to say. All I hear is a bunch of whining about something that you could fix if you happen to werent too busy on the lookout for attention.

  24. An fascinating dialogue is worth comment. I believe that it’s best to write more on this topic, it won’t be a taboo subject but typically individuals are not enough to talk on such topics. To the next. Cheers

  25. I am just commenting to let you know what a great discovery my daughter found browsing your site. She came to find a lot of details, with the inclusion of what it’s like to have an ideal coaching style to get folks clearly learn specific multifaceted topics. You truly surpassed her desires. Many thanks for presenting these warm and helpful, healthy, revealing and as well as fun guidance on this topic to Ethel.

  26. ปั้มไลค์เพจ, การเพิ่ม Like เป็นการเพิ่มโอกาสทางการขายสินค้าของคุณนั่นเอง ด้วยงานบริการเพิ่มไลค์แฟนเพจระดับมืออาชีพ ประสบการณ์การทำงานหลายปี, ไลค์คนไทย 100%, รับเพิ่มไลค์แฟนเพจเฟสบุ๊ค, เพิ่มไลค์เพจ ราคาถูก, รับไลค์ครบวงจรทั่วไทย, รับทำไลค์แฟนเพจจำนวนมาก, ไลค์แฟนเพจราคาถูก, ปั้มเพจ, ซื้อไลค์แฟนเพจ, กดไลค์รูป, รับสร้างแฟนเพจพร้อมยอดไลค์, ไลค์แฟนเพจได้สูงสุดหนึ่งล้านไลค์, บริการเพิ่ม Like ให้แฟนเพจของคุณ โดยทีมงานระดับมืออาชีพ ในระยะเวลาอันสั้นและราคาถูก รับประกันไลค์จากคนไทย 100%, จ้างกดไลค์, ปั้มไลค์ครบวงจร, จ้างไลค์รูป, รับจ้างปั้มไลค์, ปั้มไลค์เพจ Facebook, ปั้มไลค์มือถือ, กด Like, รับจ้างเพิ่มไลค์, ปั้มยอดไลค์เป็นคนไทย 100%, บริการปั้มไลค์แฟนเพจฟรี, รับทำเพจสินค้าพร้อมยอดไลค์, รับเพิ่ม Like Fanpage Facebook ราคาพิเศษ เหมาะสำหรับผู้ที่ต้องการเพิ่ม Like Fanpage ให้ดูเป็นความน่าเชื่อถือของร้าน, ปั้มไลค์ฟรี, ปั้มไลค์แฟนเพจ, ปั้มโพสต์, เพิ่มไลค์, Add Like Fanpage, เพิ่มไลค์คนไทย, ไลค์แฟนเพจ, ปั้มรูป, ปั้มไลค์ ในโทรศัพท์, ปั้มไลค์ Facebook, บริการเพิ่มไลค์เฟสบุ๊คให้แฟนเพจ, ปั่นไลค์, รับทำเพจเฟสบุ๊ค, ปั้มไลค์เพจฟรี, โกงไลค์, กดไลค์แฟนเพจ, Like Fanpage, รับทำไลค์ครบวงจร, ปั้มเพจ เหมาะสำหรับผู้ที่ต้องการยอดไลค์เพจเพจเยอะๆ, เพิ่ม Like, จ้างปั้มไลค์, รับไลค์แฟนเพจ, ไลค์เพจ, ไลค์แฟนเพจเฟสบุ๊ค, รับปั้มไลค์รูป, บริการปั้มไลค์ฟรี, ปั้มเพจเฟสบุ๊ค, ปั้มไลค์, ปั้มไลค์รูปเฟส, ปั้มไลค์สถานะ, แฟนเพจพร้อมยอดไลค์, บริการเพิ่มไลค์แฟนเพจฟรี, เพิ่มไลค์ฟรี, เพิ่มไลค์แฟนเพจ, ปั้มไลค์รูป, ปั้มไลค์เฟสบุ๊ค, ปั้มไลค์รูป Facebook, ปั้มไลค์ง่ายๆ, Up Like Fanpage, กดไลค์, ปั้มไลค์ทั่วไป, เพิ่มไลค์แฟนเพจ ราคาถูก, จ้างเพิ่มไลค์, เพิ่มไลค์เพจ, Auto Like, รับ Like Fanpage, รับปั้มไลค์เพจ, ปั้มไลค์เพจคนไทย, รับจ้างกดไลค์, ปั้มไลค์ราคาถูก, รับเพิ่มไลค์, Pump Like, จ้างไลค์, รับเพิ่มไลค์แฟนเพจ เป็นการโปรโมทแฟนเพจ เพื่อเพิ่มยอดขายสินค้าได้, ปั้ม Like ฟรี

  27. Needed to write you one very little note to help thank you very much again for these amazing information you’ve documented on this site. It was simply incredibly generous of you to supply freely what numerous people could possibly have made available as an ebook to generate some profit on their own, and in particular since you could have done it in case you desired. The pointers in addition served to become a good way to be sure that some people have similar dream similar to my own to find out whole lot more on the subject of this matter. I think there are numerous more enjoyable occasions up front for people who browse through your blog.

  28. ปั้มไลค์.com แหล่งแลกไลค์สำหรับคนไทย ระบบแลกไลค์ที่ดีและเสถียรที่สุด ในปัจจุบัน! ปั๊มไลค์ ปั๊มไลค์บนมือถือ แลกไลค์ โกงไลค์ แฮกไลค์ รูป โพส สเตตัส วีดีโอ คอมเม้น แฟนเพจ ผู้ติดตาม Like Hacklike Pumplike Instagram Youtube Twitter และอีกมากมาย ฟรี!

  29. Youre so cool! I dont suppose Ive read anything like this before. So nice to search out anyone with some authentic thoughts on this subject. realy thank you for beginning this up. this web site is something that’s needed on the web, somebody with a bit originality. helpful job for bringing something new to the web!

  30. รับกดไลค์แฟนเพจ, ซื้อไลค์คนไทยราคาถูก, บริการเพิ่มไลค์เพจ, รับปั้มไลค์เพจ, ซื้อไลค์แฟนเพจ

  31. I wish to express appreciation to you for bailing me out of this condition. Because of scouting throughout the world-wide-web and seeing principles that were not beneficial, I thought my life was done. Living without the presence of strategies to the problems you’ve sorted out all through this short article is a serious case, and the ones that could have badly damaged my career if I had not encountered your blog post. Your main training and kindness in maneuvering all areas was invaluable. I’m not sure what I would’ve done if I hadn’t encountered such a step like this. I’m able to at this point relish my future. Thanks so much for the reliable and results-oriented help. I won’t hesitate to recommend your web site to any person who needs and wants tips about this issue.

  32. Incredible update of captchas breaking package “XRumer 16.0 + XEvil 4.0”:
    captchas recognition of Google (ReCaptcha-2 and ReCaptcha-3), Facebook, BitFinex, Bing, Hotmail, SolveMedia, Yandex,
    and more than 8400 another types of captchas,
    with highest precision (80..100%) and highest speed (100 img per second).
    You can use XEvil 4.0 with any most popular SEO/SMM software: iMacros, XRumer, GSA SER, ZennoPoster, Srapebox, Senuke, and more than 100 of other programms.

    Interested? You can find a lot of demo videos about XEvil in YouTube.

    FREE DEMO AVAILABLE!

    Good luck 😉

    http://xn—-8sbigoaaphfr2c5a1j.xn--p1ai/viewtopic.php?f=19&t=2749

  33. Perfect update of captchas solution software “XRumer 16.0 + XEvil 4.0”:
    captchas solving of Google (ReCaptcha-2 and ReCaptcha-3), Facebook, BitFinex, Bing, Hotmail, SolveMedia, Yandex,
    and more than 8400 another types of captchas,
    with highest precision (80..100%) and highest speed (100 img per second).
    You can use XEvil 4.0 with any most popular SEO/SMM software: iMacros, XRumer, GSA SER, ZennoPoster, Srapebox, Senuke, and more than 100 of other software.

    Interested? There are a lot of demo videos about XEvil in YouTube.

    FREE DEMO AVAILABLE!

    See you later!

    http://XEvil.net/

  34. Absolutely NEW update of captchas recognition package “XEvil 4.0”:
    captchas solution of Google (ReCaptcha-2 and ReCaptcha-3), Facebook, BitFinex, Bing, Hotmail, SolveMedia, Yandex,
    and more than 8400 another size-types of captcha,
    with highest precision (80..100%) and highest speed (100 img per second).
    You can use XEvil 4.0 with any most popular SEO/SMM software: iMacros, XRumer, GSA SER, ZennoPoster, Srapebox, Senuke, and more than 100 of other software.

    Interested? There are a lot of impessive videos about XEvil in YouTube.

    FREE DEMO AVAILABLE!

    Good luck 😉

    http://forum.tepli4ka.com/viewtopic.php?f=22&t=9326

  35. Incredible update of captchas recognition software “XRumer 16.0 + XEvil 4.0”:
    captcha regignizing of Google (ReCaptcha-2 and ReCaptcha-3), Facebook, BitFinex, Bing, Hotmail, SolveMedia, Yandex,
    and more than 8400 another categories of captchas,
    with highest precision (80..100%) and highest speed (100 img per second).
    You can use XEvil 4.0 with any most popular SEO/SMM software: iMacros, XRumer, GSA SER, ZennoPoster, Srapebox, Senuke, and more than 100 of other programms.

    Interested? You can find a lot of demo videos about XEvil in YouTube.

    FREE DEMO AVAILABLE!

    Good luck!

    http://XEvil.net/

  36. Status Auto Liker, Auto Like, Status Liker, Facebook Auto Liker, Photo Auto Liker, facebook auto liker, auto like, autoliker, autolike, Facebook Autoliker, Autoliker, Facebook Liker, Photo Liker, Fb Autoliker, Auto Liker, Increase Facebook Likes, Autoliker Facebook, auto liker, Working Auto Liker, Autoliker