Skip to content

Tag: symfony

Adding a plugin to a simple app using PHP/Symfony/Twig

I’m working on a proof-of-concept app based on pico CMS, and I’m hoping to create a simple plugin to add some basic methods to it. You can view plugin files in this link and app files in this link. How do I add this plugin and call isMobile();, for example? AppHelper plugin Answer Do not use stati…

Laravel 5.4 environment based config files

I am trying to change the Laravel configuration variables based on environment, but I do not know how. Code to get config is I am trying to have a separate results for the live environment and the development environment. Real life scenario I need to override some config files, so everybody who is using the d…