English 中文(简体)
如何获取所有可以应用到 Magento 对象/ 项的函数?
原标题:How to retrieve all the functions that we can apply to an object/item In Magento?

我实际上在我的网站上设置了一个网站地图, 我已经有一个网站地图. xml, 但我想知道如何建立这样的网页: < a href="http://beta.brickhousesecurity.com/ancillary/sitemap.do" rel=“nofollow” >http://beta.brickhousesecurity.com/ancillary/sitemap.do

所以,我进入了模板/ 猫头鹰/ 电视/ sho/ shectap. phtml, 试图找出如何检索所有分类的子类( 及其子类) 。

所以我就得到

<?php $_items = $this->getCollection(); 
    $token=1;
?>
<?php if($_items->getSize()): ?>
    <ul class="sitemap">
        <?php foreach ($_items as $_item): ?>
            <li><a href="<?php echo $this->getItemUrl($_item) ?>"><?php echo $_item->name ?></a></li>
    </ul>

但我不知道如何把它组织起来 就像我上面给出的连结里一样。

因此,我想知道,我怎么会知道 我能申请到$项目的所有功能?

谢谢!

最佳回答

尝试打印_ r( get_ class_ ethods ($_ item)) 。 您的意思是这个吗?

问题回答

暂无回答




相关问题
Magento addFieldToFilter allow NULLs

When using the Magento collection method addFieldToFilter is it possible to allow filtering by NULL values? I want to select all the products in a collection that have a custom attribute even if no ...

Get product link from Magento API

I am new to Magento and using their API. I need to be able to get the product url from the API call. I see that I can access the url_key and url_path, but unfortunately that s not necessarily what ...

magento extension installation

I want to install a Magento extension in WAMP, but not from the Magento connect system. How can I do this? I have the module (extension) code and I already installed the sample data in the Magento ...

Link to a specific step in onepage checkout

Is it possible to redirect the browser to nth step in the onepage checkout? If so, how would one go about doing it? I m working on a payment module and have a sort of "cancel" action that i would ...

How do I filter a collection by a YesNo type attribute?

I have a ‘featured’ attribute, which has a Yes/No select-list as the admin input. I presume that the values for Yes and No are 1 and 0, as they are for every other Yes/No list. However, if I try and ...

热门标签