public function slugify($sourceField = 'form #title', $targetField = 'form #slug')
    {
        $this->Asset->script('MeTools.slugify', ['block' => 'script_bottom']);

        $this->output[] = sprintf('$().slugify("%s", "%s");', $sourceField, $targetField);
    }
public function slugify($sourceField = 'form #title', $targetField = 'form #slug')
    {
        $this->Asset->script('MeTools.slugify', ['block' => 'script_bottom']);

        $this->output[] = sprintf('$().slugify("%s", "%s");', $sourceField, $targetField);
    }
public function slugify ( $ sourceField = 'form #title' , $ targetField = 'form #slug' ) { $ this -> Asset -> script ( 'MeTools.slugify' , [ 'block' => 'script_bottom' ] ) ; $ this -> output [ ] = sprintf ( '$().slugify("%s", "%s");' , $ sourceField , $ targetField ) ; }
Through `slugify.js`, it provides the slug of a field.

It reads the value of the `$sourceField` field and it sets its slug in
the `$targetField`.
@param string $sourceField Source field
@param string $targetField Target field
@return void
@uses Assets\View\Helper\AssetHelper::script()
@uses output
Through slugify . js it provides the slug of a field .