Smarty Forum Index Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon.

kak opredelit otkuda prixodit peremennaya v shablone ?

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Smarty Forum Index -> Language: Russian
View previous topic :: View next topic  
Author Message
sergiu920
Smarty n00b


Joined: 27 Mar 2016
Posts: 2

PostPosted: Sun Mar 27, 2016 6:14 pm    Post subject: kak opredelit otkuda prixodit peremennaya v shablone ? Reply with quote

Приветствую Всех! Скажите пожалуйста как определить место (php файл) где присваивается переменная, которая выводится в html файл через smarty ?
Например, у меня есть html файл catalog.html и в нем выводится переменная {$products}. Проблема в том что я не знаю откуда (из какого php файла) идет эта переменная. То есть где присвается значение этой переменной.
Back to top
View user's profile Send private message
AnrDaemon
Administrator


Joined: 03 Dec 2012
Posts: 1785

PostPosted: Mon Mar 28, 2016 4:20 pm    Post subject: Reply with quote

Вот так взять, щёлкнуть пальцами и узнать - не получится.
Ищи все места, где вызывается Smarty::assign().
Либо воспользуйся отладчиком уже.
Back to top
View user's profile Send private message
sergiu920
Smarty n00b


Joined: 27 Mar 2016
Posts: 2

PostPosted: Tue Mar 29, 2016 1:01 pm    Post subject: Reply with quote

AnrDaemon wrote:
Вот так взять, щёлкнуть пальцами и узнать - не получится.
Ищи все места, где вызывается Smarty::assign().
Либо воспользуйся отладчиком уже.


Проблема в том что в отладчике не отображается полный путь.

Искать вручную не вариант.
Back to top
View user's profile Send private message
AnrDaemon
Administrator


Joined: 03 Dec 2012
Posts: 1785

PostPosted: Tue Mar 29, 2016 2:50 pm    Post subject: Reply with quote

Хреновый отладчик, значит.
И кто сказал, что вручную? Alt+F7, *.php ">assign".
Back to top
View user's profile Send private message
Yarkee
Smarty n00b


Joined: 16 Jun 2016
Posts: 2
Location: Moscow

PostPosted: Thu Jun 16, 2016 11:19 pm    Post subject: Re: kak opredelit otkuda prixodit peremennaya v shablone ? Reply with quote

sergiu920 wrote:
Приветствую Всех! Скажите пожалуйста как определить место (php файл) где присваивается переменная, которая выводится в html файл через smarty ?
Например, у меня есть html файл catalog.html и в нем выводится переменная {$products}. Проблема в том что я не знаю откуда (из какого php файла) идет эта переменная. То есть где присвается значение этой переменной.


Я для таких случаев использую Notepad++ )

Ctrl+F > Поиск в файлах и папках > название переменной (без $) и уже ищу среди выданных найденных строк это значение в строке с assign
Back to top
View user's profile Send private message
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Smarty Forum Index -> Language: Russian All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group
Protected by Anti-Spam ACP