lexxpavlov / lexxpavlovsettingsbundle Goto Github PK
View Code? Open in Web Editor NEWThis bundle helps you to manage your settings in Symfony2/3 project
License: MIT License
This bundle helps you to manage your settings in Symfony2/3 project
License: MIT License
Hello,
I was trying to upgrade my project to Twig 3 and got following error:
Attempted to load class "Twig_Extension" from the global namespace.
Did you forget a "use" statement?
vendor/lexxpavlov/settingsbundle/Twig/SettingsExtension.php:
namespace Lexxpavlov\SettingsBundle\Twig;
use Lexxpavlov\SettingsBundle\Service\Settings;
class SettingsExtension extends \Twig_Extension
{
/** @var Settings */
private $settings;
/**
Twig_Extension is deprecated since Twig version 2.7, it is required to use "Twig\Extension\AbstractExtension" instead in Twig 3.
It looks like we have two ways to deal with this situation:
What would you suggest @lexxpavlov?
Hi.
I try to get data by "name" which doesn't exist and get error
Error: Call to a member function getValue() on null
Please, return "" if settings don't exist.
Hi.
Settings get by "key" or "slug" will be better than by "name".
I put in "name" short information about settings value.
Hi,
I'm using lexxpavlov/settingsbundle 1.3.1 and egeloen/ckeditor-bundle 5.0.3 and after installing both bundles and tried to create or edit a setting, I get this exception:
The same occurs for all this vars: async, jquery, require_js, auto_inline, inline, input_sync, filebrowsers
So I noticed that there are some missing options here:
That the ckeditor widget needs here:
Maybe you should add default value for these vars, what do you think about?
Best,
Matías
Hi,
When I try to create a new setting, I have this error:
Method "attr" for object "Symfony\Component\Form\Extension\Core\View\ChoiceView" does not exist in form_div_layout.html.twig at line 82
Hi.
It would be good add support for uploading files.
Any chance your bundle can support Symfony 4? Maybe, 2.0 branch.
I found this repository https://github.com/vsavritsky/VsavritskySettingsBundle which is literally a copy of your bundle with some deprecations removed/updated.
Great job, btw!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.