Author Topic

Daniel Guerrier

Wednesday 10 August 2005 10:27:45 am

Comment19643

I've looked for information on this is many places, including that book which really needs some updating.

Can someone please give me a clear example on how to use the ez framework to fetch the instances of a certain content class and edit the attributes?

I tried the following but nothing is returned. Again there is no clear concise example or explanation on using ez for backend processing of content. Everything deals with retrieve data via templates and template code.

$contentClassIdentifier = 'mycontentclass';
$class =& eZContentClass::fetchByIdentifier( $contentClassIdentifier );
$contentClassID = $class->attribute( 'id' );

I am getting an error that $class is not an object so I am assuming that nothing is getting returned.

Thank you very much.