Attack
Forum Üyesi
- Katılım
- 4 Şub 2023
- Mesajlar
- 2,618
- Puanları
- 0
Yesterday I have learned how to manipulate $post->message.
Today I have learned how to add a getter to $post;
and now i found out:
to use the getter as a var like the table_fields with set and not only get, we use the cache.
add getter to structure:
$structure->getters['pager'] = ['getter' => 'getPager', 'cache' => true];
**getter => getPager is not neccessary, but i let it to remember that i can have other names also.
public function getPager()
{
return $this->_getterCache['pager']...
Today I have learned how to add a getter to $post;
and now i found out:
to use the getter as a var like the table_fields with set and not only get, we use the cache.
add getter to structure:
$structure->getters['pager'] = ['getter' => 'getPager', 'cache' => true];
**getter => getPager is not neccessary, but i let it to remember that i can have other names also.
public function getPager()
{
return $this->_getterCache['pager']...
Misafirler için gizlenen link, görmek için
Giriş yap veya üye ol.