Welcome Guest, Not a member yet? Register   Sign In
Search Results
    Thread: Questions about csrf protection
Post: RE: Questions about csrf protection

I did, as indicated in the documentation under "Enable CSRF Protection", set it in $globals. What would be the other method?
541 Views
7 Replies
08-17-2024, 05:12 AM
PhilInLoco
    Thread: Questions about csrf protection
Post: RE: Questions about csrf protection

I do net set the csrf filter to GET, the first example was only to show what happens if I define the $methods array. My normal setting is the second one, with $methods = []. I do not however understan...
541 Views
7 Replies
08-16-2024, 07:04 AM
PhilInLoco
    Thread: Questions about csrf protection
Post: RE: Questions about csrf protection

ozornick Wrote: (08-14-2024, 06:17 AM) -- Run ./spark routes in terminal. Show applied filters for URL See https://github.com/codeigniter4/CodeIgniter4/blob/a151d6a8ced34b99929e540b1812232d0477b55...
541 Views
7 Replies
08-14-2024, 06:54 AM
PhilInLoco
    Thread: Questions about csrf protection
Post: Questions about csrf protection

working forward protecting my site, I enabled csrf protection and noted two effects, which I do not understand: 1) I use jquery autocomplete which calls a function which is not in the "except" list f...
541 Views
7 Replies
08-14-2024, 06:10 AM
PhilInLoco
    Thread: Problem with shield password validation
Post: RE: Problem with shield password validation

Thank you! I must admit that I only read the documentation for Shield and didn't made the connection to the CodeIgniter documentation about validation (which I read a long time ago). Doing it would h...
225 Views
2 Replies
08-11-2024, 12:51 PM
PhilInLoco
    Thread: Problem with shield password validation
Post: Problem with shield password validation

I am making a dialog to allow users to change their passwords, and it seems that the function to save the user data does not check for password validity (e.g. length). For example, in my controller: ...
225 Views
2 Replies
08-11-2024, 08:29 AM
PhilInLoco
    Thread: setLocale() doesn't change the language set by browser
Post: RE: setLocale() doesn't change the language set by...

Thank your eelisland! I was calling service('language')->setLocale('currentLocale) just before calling the views, but that didn't work when the view has a link to another page. Your solution is much ...
10,314 Views
10 Replies
07-27-2024, 09:02 AM
PhilInLoco
    Thread: form_open / $request->getMethod
Post: RE: form_open / $request->getMethod

PhilInLoco Wrote: (06-21-2024, 12:17 AM) -- Thanks. @"warcooft"  In fact, I was using  $this->request->getPost() but it does not work anymore, and I used $_REQUEST to understand why and to show the...
462 Views
6 Replies
06-23-2024, 09:17 AM
PhilInLoco
    Thread: form_open / $request->getMethod
Post: RE: form_open / $request->getMethod

Thanks. @"warcooft" In fact, I was using $this->request->getPost() but it does not work anymore, and I used $_REQUEST to understand why and to show the problem here @"kenjis" I do not want to ...
462 Views
6 Replies
06-21-2024, 12:17 AM
PhilInLoco
    Thread: form_open / $request->getMethod
Post: form_open / $request->getMethod

Hello, I getting mad about this one and don't know if it really has to do with CI (I use 4.5.1). When I use form_open resp. form_open_multipart and submit the form, the $_REQUEST variabl...
462 Views
6 Replies
06-20-2024, 05:19 AM
PhilInLoco
    Thread: $psr4 and namespace
Post: RE: $psr4 and namespace

Thank you for this additional information!
1,202 Views
10 Replies
04-02-2024, 05:11 AM
PhilInLoco
    Thread: $psr4 and namespace
Post: RE: $psr4 and namespace

I am feeling embarrassed about what I just discovered: Actually it was the composer installation which was working, and the problems I described were caused by my wrong paths in the "use" lines. I sai...
1,202 Views
10 Replies
04-01-2024, 06:04 AM
PhilInLoco
    Thread: $psr4 and namespace
Post: RE: $psr4 and namespace

Ok, I'll do that btw. you were right, the code you showed is exactly what I had changed. And yes, the class "Goat1000\SVGGraph\autoloader" really exists. Thank you for your help!
1,202 Views
10 Replies
04-01-2024, 02:37 AM
PhilInLoco
    Thread: $psr4 and namespace
Post: RE: $psr4 and namespace

Hi Kenjis, As I controlled again everything this morning, after posting my reply, I noticed that I had changed something in the "use" list of my Controller. I changed it and now everything works!!!...
1,202 Views
10 Replies
04-01-2024, 02:21 AM
PhilInLoco
    Thread: $psr4 and namespace
Post: RE: $psr4 and namespace

kenjis Wrote: (03-31-2024, 06:50 PM) -- Why don't you use Composer to install the library? It configures autoloader automatically. But your config in app/Config/autoload.php seems valid. PHP Co...
1,202 Views
10 Replies
04-01-2024, 02:00 AM
PhilInLoco
    Thread: $psr4 and namespace
Post: $psr4 and namespace

Hello, I am trying to use the SVGGraph library from Goat1000 within CodeIgniter and I encountered a problem with the namespaces used by this library. I use CI 4.4.7 and put the library inside the ...
1,202 Views
10 Replies
03-31-2024, 01:27 PM
PhilInLoco

Theme © iAndrew 2016 - Forum software by © MyBB