<p>An entry's <code>title</code> is stored on the <a href="https://craftcms.com/classreference/models/ContentModel" rel="nofollow">ContentModel</a>, so you'd need to do:</p>

<pre><code>$content = $entry-&gt;getContent();
$content-&gt;attributeConfigs['title'];
</code></pre>

CC BY-SA 3.0
2016-05-05T16:41:33.113Z
2016-05-05T16:41:33.113Z
Brad Bell
<p>I am attempting to read out the entry field attributes by using the attributeConfigs array of the <a href="https://craftcms.com/classreference/models/EntryModel" rel="nofollow">EntryModel</a>.</p>

<p>When I review the EntryModel object, using id and title as an example. I request the attribute configs like this:</p>

<pre><code>    $entry-&gt;attributeConfigs['id'] // Works
    $entry-&gt;attributeConfigs['title'] // Undefined index error
</code></pre>

<p>All though the index exists in the array </p>

<pre><code>    [_attributeConfigs:Craft\ContentModel:private] =&gt; Array
    (
        [id] =&gt; Array
            (
                [maxLength] =&gt; 11
                [min] =&gt; -2147483648
                [max] =&gt; 2147483647
                [decimals] =&gt; 0
                [type] =&gt; number
                [unsigned] =&gt; 
                [length] =&gt; 10
                [column] =&gt; integer
            )

        [title] =&gt; Array
            (
                [required] =&gt; 
                [maxLength] =&gt; 255
                [label] =&gt; Title
                [type] =&gt; string
            )
</code></pre>

<p>Is there any way I can access these configurations? </p>

<entrymodel>
EntryModel attributeConfigs method throwing undefined index
# EntryModel attributeConfigs method throwing undefined index

(Asked by: username_0 on 2016-05-05)

I am attempting to read out the entry field attributes by using the attributeConfigs array of the EntryModel.
When I review the EntryModel object, using id and title as an example. I request the attribute configs like this:
    $entry->attributeConfigs['id'] // Works
    $entry->attributeConfigs['title'] // Undefined index error

All though the index exists in the array 
    [_attributeConfigs:Craft\ContentModel:private] => Array
    (
        [id] => Array
            (
                [maxLength] => 11
                [min] => -2147483648
                [max] => 2147483647
                [decimals] => 0
                [type] => number
                [unsigned] => 
                [length] => 10
                [column] => integer
            )

        [title] => Array
            (
                [required] => 
                [maxLength] => 255
                [label] => Title
                [type] => string
            )

Is there any way I can access these configurations?

**Tags:** entrymodel


---

## 1 answers

### Answer by username_1 on 2016-05-05. Score: 0 | Accepted answer

An entry's title is stored on the ContentModel, so you'd need to do:
$content = $entry->getContent();
$content->attributeConfigs['title'];


---

