yii ~ call model function

in controller

$newProducts = Product::model() -> getNewProduct();


in models/Product.php

public function getNewProduct(){
die('newwwwwwwwwww');
}

沒有留言: