Giter Club home page Giter Club logo

lexxpavlovsettingsbundle's People

Contributors

dmytrof avatar lexxpavlov avatar pierrickmartos avatar stanislav-ivanov avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

lexxpavlovsettingsbundle's Issues

Settings does not exist

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.

Key or Slug

Hi.
Settings get by "key" or "slug" will be better than by "name".
I put in "name" short information about settings value.

Twig 3 upgrade: Attempted to load class "Twig_Extension" from the global namespace

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:

  1. Fix Twig version in composer.json to 2.x.
  2. Bump Twig to ^3.0 and update SettingsExtension.php (BC break).

What would you suggest @lexxpavlov?

Method "attr" error

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

File type

Hi.
It would be good add support for uploading files.

Missing options when using ckeditor type

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:

screenshot from 2017-06-25 05-42-23

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:

https://github.com/lexxpavlov/LexxpavlovSettingsBundle/blob/master/Form/Type/SettingValueType.php#L49

That the ckeditor widget needs here:

https://github.com/egeloen/IvoryCKEditorBundle/blob/master/Resources/views/Form/ckeditor_widget.html.twig

Maybe you should add default value for these vars, what do you think about?

Best,
Matías

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.