simialbi/yii2-elfinder

pass params to view

Closed this issue · 8 comments

Hi @simialbi i'm trying to pass another parameter to the view (where show Elfinder::widget) to get me to print the title of the page but it only works if after loading i refresh the same view, is it a cache problem ?

thanks

Can't you use $this->title for this purpose?

It's he who I can not customize, I do not know why I see it well only if I update the page, that is, I reload the same page for the second time.

Hmm... I don't understand what you exactly mean. In the first load of the elfinder page you have one page title and if you reload another? Do you work with Pjax?

When I click on URL ...../default/ationName it open the right view but the title ignored (load default title), only if I refresh with F5 the page I see the title as I writed, maybe pjax issue ?

Yes, Pjax views don't change the title of the page, beacuase it get's rendered by layout

What you could do is replace the title by js in rendered ajax view: Something like

document.title = 'My new title';