vBulletin icin bir eklenti yazıyorum. Admincpdeki forum yoneticisi kısmında her forumun altına yeni bir secenek ekliyor (yes/no olarak) ve buna bağlı olarak forumdisplayde sorguyu calıştırıyor veya calıştırmıyor ama aşağıdaki kodu ekleyince "Using $this when not in object context in...." diye hata veriyor.
PHP:
if ($this->forum['lpthread'] AND xxxxxx) ( sogu kodları )
oradaki $this->forum['lpthread'] kodunu cıkartınca eklentide bi sorun olmuyor.
aşağıdaki kodda ekli
PHP:
$this->validfields['showlpthread'] = array(TYPE_STR, REQ_NO);
Boyle bir ozelliği olan bir kac eklenti inceledim hepsinde aynıu yontem kullanılmış fakat benimkinde calışmıyor ne hikmetse.
not: showlpthread eklenti yuklenirken dbye ekleniyor.
Using $this when not in object context in
PHP & PHP Framework0 Mesaj
●3 Görüntüleme
- ReadBull.net
- Programlama ve Yazılım
- Server-Side Programlama
- PHP & PHP Framework
- Using $this when not in object context in