1

In my Local Below Url works fine & Displaying

  <a class="product-item-photo" href="<?php $this->getBaseUrl() . 'trade/buyingList'; ?>" title="<?php /* @escapeNotVerified */ echo __('View All'); ?>"><span><?php /* @escapeNotVerified */ echo __('View All'); ?></span></a>

On Server it's only displaying <?php $this->getBaseUrl()

I can access abc.com/trade/buyingList on my Server. Camelcase won't be issue i think. Cach

3
  • 2
    <?php $this->getBaseUrl().'trade/buyingList'; ?> try this one. Oct 19 '16 at 9:33
  • if @SHPatel solution not work then try to replace : href="<?php echo echo Mage::getBaseUrl().'trade/buyingList'; ?>" Oct 19 '16 at 9:39
  • Ahh my Bad. Forgot echo La...... Silly one
    – Jackson
    Oct 19 '16 at 10:24
3

you forgot "echo"

must be : <?php echo $this->getBaseUrl().'trade/buyingList'; ?>

OR

<?php echo $this->getUrl('trade/buyingList'); ?>
2

Use <?php echo $this->getBaseUrl() or Better Use echo $this->getUrl('trade/buyingList');

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.