This forum has moved to a new location and is in read-only mode. Please visit talk.octobercms.com to access the new location.

enricoeur
enricoeur

Hello,

i followed step by step tutorial and result is that this code:

   $this->page->title = $this->category->name;

Give me back October error page. This is the error: Trying to get property of non-object.

Any idea ?

They give this code on installation instructions but it doesnt work...

joseph.w.crowell30463
joseph.w.crowell30463

I think category is an array

daftspunky
daftspunky

Code looks fine. You might need to add some exception handling, if you are not sure category will always be there

if ($this->category) {
    $this->page->title = $this->category->name;
}

1-3 of 3

You cannot edit posts or make replies: the forum has moved to talk.octobercms.com.