Skip to content

Instantly share code, notes, and snippets.

@brandonkelly
Created March 10, 2014 18:55
Show Gist options
  • Select an option

  • Save brandonkelly/9471806 to your computer and use it in GitHub Desktop.

Select an option

Save brandonkelly/9471806 to your computer and use it in GitHub Desktop.

Revisions

  1. brandonkelly created this gist Mar 10, 2014.
    8 changes: 8 additions & 0 deletions FieldsVariable.php
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,8 @@
    <?php

    // ...

    public function getFieldByHandle($handle)
    {
    return craft()->fields->getFieldByHandle($handle);
    }