controllers/DictionaryController.php
public function actionHeadwords($class = null)
    {
        try {
            foreach (Yii::$app->rhoone->dic->getHeadwords($class) as $headword) {
                echo $headword->word . "\n";
            }
        } catch (\Exception $ex) {
            throw new Exception($ex->getMessage());
        }
        return 0;
    }
public function actionHeadwords($class = null)
    {
        try {
            foreach (Yii::$app->rhoone->dic->getHeadwords($class) as $headword) {
                echo $headword->word . "\n";
            }
        } catch (\Exception $ex) {
            throw new Exception($ex->getMessage());
        }
        return 0;
    }
public function actionHeadwords ( $ class = null ) { try { foreach ( Yii :: $ app -> rhoone -> dic -> getHeadwords ( $ class ) as $ headword ) { echo $ headword -> word . "\n" ; } } catch ( \ Exception $ ex ) { throw new Exception ( $ ex -> getMessage ( ) ) ; } return 0 ; }
List all headwords.
@param string $class
@return int
List all headwords .