Howw to allow basic mysql funcs

Hi @ all !

I would like to display a small forum (PunBB) into my Yii blog.

I first created a controller I called ForumController that contains the following :


class ForumController extends Controller


	public $layout='column2';

	public function ActionIndex() {




And a corresponding view into ‘views/forum/forum.php’ that contains the following :



But the forum uses mysql functions like mysql_connect() or mysql_query() which are not allowed in a Yii environnment.

So, how can I allow these "quick" queries ?

Yii doesn’t “forbid” anything. So there must be another reason for your issue. Not sure, if you can connect to MySQL with PDO and mysql_* functions simultaniously. But i think that shouldn’t be a problem either.