Timeline for Send data from the controller to phtml
Current License: CC BY-SA 3.0
5 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Sep 16, 2013 at 9:52 | comment | added | Marius♦ | @shathish maybe you would ask an other question and hope it doesn't get marked as duplicate. | |
Sep 16, 2013 at 9:32 | comment | added | Shathish | Yes I am using JSON to return the block (something.phtml) content and update the div with these details in list page, how can I pass the variable from my controller to something.phtml? actually I do this currently using $block->assign() method, which I feel isn't the right way (as it is tight coupling - correct me if i'm wrong) or shall I post this as a question? | |
Sep 16, 2013 at 8:43 | comment | added | Marius♦ | @Shathish. This is a different issue. You can rend the response as JSON and use the values in the AJAX response handler. | |
Sep 16, 2013 at 5:44 | comment | added | Shathish | this doesn't work for me :(, I have a controller which returns the product id through AJAX, for quickview of products. | |
Sep 3, 2013 at 12:30 | history | answered | Marius♦ | CC BY-SA 3.0 |