سلام من بعد از ساختن Tag Cloud Portlet
هر کاری که میخوام بکنم این ارور میاد
The table "{{tag}}" for active record class "Tag" cannot be found in the database.
components/TagCloudPortlet
کد PHP:
php?>
Yii::import(’zii.widgets.CPortlet’);
class TagCloud extends CPortlet {
public $title=’Tags’;
public $maxTags=20;
protected function renderContent() {
$tags=Tag::model()->findTagWeights($this->maxTags);
foreach($tags as $tag=>$weight) {
} }
}
postcontroller
کد PHP:
/**
* Suggests tags based on the current user input.
* This is called via AJAX when the user is entering the tags input.
*/
public function actionSuggestTags()
{
if(isset($_GET['q']) && ($keyword=trim($_GET['q']))!=='')
{
$tags=Tag::model()->suggestTags($keyword);
if($tags!==array())
echo implode("\n",$tags);
}
}