public function actionGenerateSeoUrl($title)
    {
        $newSeoUrl = Inflector::slug($title);
        $seoUrl = SeoData::find()
            ->where(['entity_name' => ProductTranslation::className(), 'seo_url' => $newSeoUrl])
            ->one();
        if (!empty($seoUrl)) $newSeoUrl = $newSeoUrl . '-' . date("d-m-y-H-i-s");

        return $newSeoUrl;
    }
public function actionGenerateSeoUrl($title)
    {
        $newSeoUrl = Inflector::slug($title);
        $seoUrl = SeoData::find()
            ->where(['entity_name' => ProductTranslation::className(), 'seo_url' => $newSeoUrl])
            ->one();
        if (!empty($seoUrl)) $newSeoUrl = $newSeoUrl . '-' . date("d-m-y-H-i-s");

        return $newSeoUrl;
    }
public function actionGenerateSeoUrl ( $ title ) { $ newSeoUrl = Inflector :: slug ( $ title ) ; $ seoUrl = SeoData :: find ( ) -> where ( [ 'entity_name' => ProductTranslation :: className ( ) , 'seo_url' => $ newSeoUrl ] ) -> one ( ) ; if ( ! empty ( $ seoUrl ) ) $ newSeoUrl = $ newSeoUrl . '-' . date ( "d-m-y-H-i-s" ) ; return $ newSeoUrl ; }
Generates seo Url from title on add-basic page

@param string $title
@return string
Generates seo Url from title on add - basic page