Magento Forum

the link doesn’t work, help
 
abosalam
Jr. Member
 
Avatar
Total Posts:  13
Joined:  2008-04-25
 

I created a new phtml site for customer named subscriptions. I am trying to add a link to dashboard.phtml in customer/account/dashboard.phtml by using a function getBookklubbUrl() that I added to Mage/Customer/Block/Account/Dashboard/Address.php

public function getBookklubbUrl()
    
{
        
return $this->getUrl('customer/bookklubb/');
    
}

In the layout map in customer.xml I added the following block:

<customer_bookklubb>
        <
update handle="customer_account"/>
        <
reference name="content">
            <
block type="customer/account_dashboard" name="customer_account_dashboard_subscriptions" template="customer/account/dashboard/subscriptions.phtml"/>
        </
reference>
    </
customer_bookklubb>

I am trying to refer to the site by calling the function getBookklubbUrl() as following:

<a href="<?php echo $this->getBookklubbUrl() ?>"><?php echo $this->__('Dina klubbgrenar'?></a>

But it doesn’t work, the subscriptions.phtml is not found. Can someone tell me what I am missing and how should I do to get it work.
Thanks

 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
Back to top