by

Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • 14:12
    mesour synchronize #221
  • 14:02
    mesour synchronize #221
  • 13:41
    mesour synchronize #221
  • 13:37
    mesour synchronize #221
  • 13:25
    dg commented #415
  • 13:25
    dg closed #415
  • 13:17
    dg closed #313
  • 13:15
    dg closed #403
  • 13:12
    dg commented #417
  • 13:07
    mesour synchronize #221
  • 13:03
    mesour edited #221
  • 13:03
    mesour synchronize #221
  • 12:58
    dg commented #419
  • 12:48
    dg commented #426
  • 12:42
    dg closed #414
  • 12:20
    dg closed #38
  • 12:05
    dg closed #50
  • 12:02
    dg closed #21
  • 12:02
    dg commented #21
  • 11:13
    Thommas2316 closed #264
aolko
@aolko
how do i return an array for twig? https://hastebin.com/ibatomifiz.php
s-meiser
@s-meiser
Good Morning. How can i setup a database prefix like "myPrefix_user" before i start a $db->query ?
s-meiser
@s-meiser
i found the answer: "?name" as sql statement
Like this :
$table = 'nice_prefix';
'SELECT ID FROM ?name WHERE ID = ? AND Password = ?' , $table, $userID, $password
bye
bmeynell
@bmeynell_twitter
NETTE TEAM: Please accept donations from users of the Brave Browser (https://brave.com/faq/#unclaimed-funds). TY.
Kevin Waterson
@KevinWaterson
I am following the docs on creating modules, however, but getting a 404. Cannot load presenter 'Blog', class 'App\Presenters\BlogPresenter' was not found.
Why is the application not finding the BlogPresenter class in the app/BlogModule/presenters directory?
did I miss something?
markosko
@markosko
@KevinWaterson try to set with router
for example
$router[] = $blog= new RouteList("Blog");

        $blog[] = new Route("blog/<presenter>[/<action>[/<id>]]",
            [
                "presenter"=>"Homepage",
                "action"=>"default"

            ]
        );
Bernhard Baumrock
@BernhardBaumrock
Hey everybody! I'm developing a shopping cart with nette forms for all steps of the checkout. It works great so far, but now it seems I have a problem: The forms are displayed nicely and I populate them via session variables so that a user can add another product while not losing already input data (address).
The problem is that I need to validate the data that is stored in the session against the setup of the form (required fields etc), while the form is actually not submitted!
Is this possible somehow? What would be the best approach? I've looked for a solution, but $form->isValid() does only work if the form has values set (is submitted)
I'm looking for something like $form->isValid($data)
@dg do you offer paid support?
aolko
@aolko
seriously, why nette/database sucks so hard when it comes to twig and arrays, esp with sqlite?
Tomáš Malčánek
@Aresak
Hello, anyone up?
Petr Parolek
@petrparolek
yes
Andrei
@austerus_gitlab
hello Nette people! I have a small question about Latte - how would I go about applying a custom filter to a string constant? If I do something like {'constant'|myFilter} it's not interpreted at all.
mariusz-roy
@mariusz-roy
Hi Nette community, Thank you in advance for your help !!
I am currently using stand alone Nette Forms in one php script, I am submitting them to an another one where the $_POST data are worked on. I am not to sure if I am using it like that the Cross Site Scripting (XSS) and Cross-Site Request Forgery (CSRF) protection is still working. Can I check that in the second script manually somehow ???
markosko
@markosko
@austerus_gitlab try {='constant'|myFilter}
Marek Bartoš
@mabar
ℹ️ If anyone here don't know - you can join slack channel of pehapkari.cz
ℹ️ There is much more active #nette room and also rooms for nette extension #contributte #nextras #kdyby
David Durika
@achtan
hi, is there a guide how to migrate to v3 ?
sahsuraj
@sahsuraj
hi can anybody help , using nette framework 2.3.10 getting this erro Nette\DI\CompilerExtension::setConfig() must be of the type array, string given
Alexandr Rešetňak
@Resetnak
Hey. I need a hand. I have a form in nette app and i would like to send only a few inputs via ajax. Is there any possible way? I was searching solution on the internet but unsuccessfully
Gautam krishna R
@gautamkrishnar
Hi team, is $form->addProtection(); is the only call required to prevent the CSRF in nette forms?
How's it implemeted under the hood?
Ghost
@ghost~52fa53f95e986b0712ef6c8d
IvanSCM
@ivanscm
Nette\Database\DriverException #42703
SQLSTATE[42703]: Undefined column: 7 ОШИБКА: столбец ad.adsrc не существует
LINE 9: coalesce(co.contype = 'p' AND strpos(ad.adsrc, 'nextval'...
in Postgresql 12
markosko
@markosko
@ivanscm in last version of postgres i think they removed that adsrc
IvanSCM
@ivanscm
@markosko and what to do?
IvanSCM
@ivanscm
vendor/nette/database/src/Database/Drivers/PgSqlDriver.php:139 replace from ad.adsrc to pg_get_expr(ad.adbin, ad.adrelid). Create pull request?
IvanSCM
@ivanscm
Sorry. Fix in #242 in database