I would like to know how I can do this:
Class::methodA()->methodB()->methodC()...;
I have a View class (MVC) in which I pass parameters to create variables (assign). Currently it looks like this:
View::assign('var1', 'Variável 1');
View::assign('var2', 'Variável 2');
View::render('layout');
I would like it to look like this:
View::render('layout')->assign('var1', 'Variável 1')->assign('var2', 'Variável 2')