Replace variable on templates before rendering

Hello all!

1. Let's say we have the template variable $post.User.username.

On $post I have a getEditedUsername() getter.

Is that possible via php / class extension (without modification of the template) etc. when on the templates called the $post.User.username, in reality to give as result the $post.getEditedUsername()? I mean to look backward, bypass the .User.

2. Another question: is that possible via a class extension and a method...

Read more

Читать далее...
 
Активность
Пока что здесь никого нет

Похожие темы

Назад
Верх Низ