silex

    1热度

    1回答

    我正在使用“silex/silex”:“〜2.0”。和“silex/web-profiler”:“^ 2.0”和phpactiverecord.org。 我做了一些小提供商将AR与Silex集成。 问题是如何将AR查询集成到WebProfiler中。是否有可能,以及正确的方法是做到这一点。

    1热度

    1回答

    我遵循的Silex机制的文档部分http://silex.sensiolabs.org/doc/providers/security.html#defining-access-rules 这里是我的confirguration 'security.role_hierarchy' => [ 'ROLE_ADMIN' => [ 'ROLE_USER', ],

    0热度

    1回答

    我使用的Symfony formbuilder使类型重复的密码字段(PasswordType)(RepeatedType): ->add('plainPassword', RepeatedType::class, [ 'type' => PasswordType::class, 'required' => true, 'first_options' => array(

    0热度

    1回答

    我使用的Silex(1.3)的一个项目编译错误,我想补充一点,与Twig_Extension接口符合树枝延伸: namespace LizardCMS\Twig\Extension; class DateExtension extends Twig_Extension { public function getFilters() { array(new \Twig_SimpleF

    1热度

    1回答

    我需要从一个控制器重定向到另一个。 $app->get('/test', function(Request $request) use ($app) { return $app->redirect($app["url_generator"]->generate("success", [ "myArg" => $myArg ])); }); $app->ge

    1热度

    1回答

    与我以前的帖子Call to a member function addPaiementType() on null,如果我有两个不同的形式: $form = $app['manager.form'] ->addDuree() ->addPaiementType() ->addTermsAccepted() ->getForm(); $formcb =

    0热度

    1回答

    我使用https://github.com/bigcommerce/hello-world-app-php-silex开发Bigcommerce APP。 当我从“我的草稿应用程序”安装并启动APP后,它将在其他域上重定向。 但是,GET请求不包含“签名的有效载荷”。所以得到错误“无效signed_pa​​yload。” (GET请求包含代码,上下文和范围) 我如何找到“签名的有效载荷”?以及如何

    1热度

    2回答

    在我的Silex项目中,我使用数据库抽象层包中的Doctrine查询生成器。 "doctrine/dbal": "^2.5" 我将它注册到我的应用程序容器中,就像这样。 /** * Make a connection to the database. */ $app['db'] = function() use($app) { $connectionParams = [

    0热度

    1回答

    制作我的第一个Silex应用程序,我需要一些帮助,我正在写一条路线来显示一个项目然后进行编辑,因此首先这是我的'get'路线,它接收项目的代码以显示其细节。 $app->get('/cat/productos_edit/{key}', function($key) use($app){ $app['twig']->addGlobal('itemtoedit', $key); //This is

    0热度

    1回答

    有没有办法让网址被重定向到登录网址? 这里是上下文,所以你知道我为什么问这个问题。我从显示我正在使用的代码开始。这是怎么了注册安全提供者: $app->register(new Silex\Provider\SecurityServiceProvider(), array( 'security.firewalls' => array( 'client' => array(