Search type Search syntax
Tags [tag]
Exact "words here"
Author user:1234
user:me (yours)
Score score:3 (3+)
score:0 (none)
Answers answers:3 (3+)
answers:0 (none)
isaccepted:yes
hasaccepted:no
inquestion:1234
Views views:250
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Favorites infavorites:mine
infavorites:1234
Status closed:yes
duplicate:no
migrated:no
wiki:no
Types is:question
is:answer
Exclude -[tag]
-apples
For more details on advanced search visit our help page
Results tagged with Search options answers only user 3326

The folder that contains all the `phtml` files used to display at frontend or backend.

11
votes
> tag inside a template (.phtml file) and include that as a core/template block: <reference name="footer"> <block type="core/template" name="fabric_controller_tool_js" template="fabric …
answered Mar 6 '15 by 7ochem
4
votes
I found out how to do this. You can use mage/template to use these x-magento-template JS templates and render them. define([ "jquery", "mage/template", "mage/translate", "domReady … !" ], function($, mageTemplate) { $("button#js-add-more").click(function(e) { e.preventDefault(); var num = $('form#myform input[id^=field-]').length + 1, template
answered Nov 30 '16 by 7ochem
2
votes
. There are multiple ways to change the behaviour of template from a controller. Solution 1: Passing variables You can pass variables to a block that represent the result of your logic. Controller … > 0 ); } Template: <?php if ($this->getHasConversation()): ?> <!-- Do conversation stuff --> <?php else: ?> <!-- Do other stuff --> <?php endif; ?> Solution 2: Unset one of the blocks …
answered Nov 26 '15 by 7ochem
5
votes
/Block/Template.php on line 241 inside the method Mage_Core_Block_Template::fetchView($fileName). The method takes the template $fileName and runs this through realpath() and then does the include … . if the file does not exist. So the passed template in $fileName does not exist and $includePath holds an empty string How to solve? To solve this, you have to find which template it is that does …
answered Jul 27 '16 by 7ochem
1
vote
TL;DR ->escapeHtml() or ->escapeJs() belong in the PHTML template and not in the block class. I think you would have to look at what the responsibilities are of 1. the block class and 2. the PHTML … template. And specifically the separation of responsibilities. Block Class The block class exists to provide the template (or the people that work with the template) with additional processed data …
answered Jul 19 '18 by 7ochem
13
votes
and change their template. <layout> <sales_order_view> <reference name="sales.order.view"> <action method="setTemplate"> <template>mymodulename/sales/order … /view.phtml</template> </action> </reference> </sales_order_view> <sales_order_print> <reference name="sales.order.print"> <action method="setTemplate …
answered Mar 27 '15 by 7ochem