include(DOMDocument.php) [<a href='function.include'>function.include</a>]: failed to open stream: No such file or directory

When I set :html in a CDetailView I get this error, is it a bug or am i missing a file in the framework (1.1.3) ? :P


<?php

$this->widget('zii.widgets.CDetailView', array(

	'data'=>$model,

	'attributes'=>array(

		'id',

		'name',

		'description:html',

		array(

            'label' => 'Books',

            'value' => $books_value,

        ),

        'price',

		'created',

		'modified',

	),

)); ?>



Maybe Dom is not installed.

Is a php library, not a framework file.

Is a problem of your php installation. Try to set up dom library.

sorry to jump on an old thread, but I’m getting this error (in Yii 1.1.10) on a standard zii.widgets.CDetailView just like the OP.

Does Yii use DOM to render parts of the framework?