protected/extensionsSee the following code example:
public function init() { parent::init( ); if ( $this->mp3Folder === null ) $this->mp3Folder = '{basePath}{/}mp3'; $this->attachBehavior( 'pubMan', #publishManager array( 'class' => 'AiiPublishRegisterBehavior', 'cssPath' => false, 'jsToRegister' => array( 'audio-player.js' ), 'basePath' => dirname( __FILE__ ), 'jsPath' => '{assets}/js', 'otherResToPublish' => array( 'mp3Folder' => $this->mp3Folder ), ) ); $this->publishAll( ); $this->registerAll( ); }
Be the first person to leave a comment
Please login to leave your comment.