You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
4.1.x: I propose to implement the has() method in Phalcon\Mvc\View\Simple and Phalcon\Mvc\View 5.x.x: I propose to implement the has() method in Phalcon\Mvc\ViewBaseInterface and Phalcon\Mvc\ViewInterface
Hello!
4.1.x: I propose to implement the
has()
method inPhalcon\Mvc\View\Simple
andPhalcon\Mvc\View
5.x.x: I propose to implement the
has()
method inPhalcon\Mvc\ViewBaseInterface
andPhalcon\Mvc\ViewInterface
In my opinion, sometimes it is important to check the existence of a template before render it.
I also checked the existence of this method in other known template engines:
Fenom : https://github.com/fenom-template/fenom/blob/fc188a582229c7735df1bb584eb268548a957f46/src/Fenom.php#L1030
Blade: https://github.com/laravel/framework/blob/d25d45b389aac2492e923a8adf885095474f8d2f/src/Illuminate/View/Factory.php#L262
Smarty: https://github.com/smarty-php/smarty/blob/4b29dfce1195b04ee337d943a9c539c8d8eb5690/libs/Smarty.class.php#L721
Twig: https://github.com/twigphp/Twig/blob/d291382a24d6c05b5126c1e1e5abeadddd82d7b2/src/Loader/FilesystemLoader.php#L145
The need to implement this method speaks for itself.
I'm waiting for your feedback.
Thanks
The text was updated successfully, but these errors were encountered: