Quantcast
Channel: parse error in the following php code - Stack Overflow
Viewing all articles
Browse latest Browse all 2

parse error in the following php code

$
0
0

while using the below code i am getting error like thisParse error: in C:\wamp\www\magento3\app\code\local\Envato\Recentproducts\Block\Recentproducts.php on line 7

<?php// app/code/local/Envato/Recentproducts/Block/Recentproducts.phpclass Envato_Recentproducts_Block_Recentproducts extends Mage_Core_Block_Template {  public function getRecentProducts() {    // call model to fetch data    $arr_products = array();    $products = Mage::getModel("recentproducts/recentproducts")­>getRecentProducts();    foreach ($products as $product) {      $arr_products[] = array('id' => $product->getId(),'name' => $product­>getName(),'url' => $product­>getProductUrl(),      );    }    return $arr_products;  }}

Viewing all articles
Browse latest Browse all 2

Latest Images

Trending Articles





Latest Images