Welcome Guest, Not a member yet? Register   Sign In
Search Results
    Thread: CI4 : I try to add a function in a helper
Post: RE: CI4 : I try to add a function in a helper

oh... ! I feel so stupid... hum hum... Well thank you very much ! It was so simple ! :-)
377 Views
2 Replies
12-28-2020, 12:43 PM
kilden
    Thread: CI4 : I try to add a function in a helper
Post: CI4 : I try to add a function in a helper

Hello, Following the documentation I've tried for the first time to extend an helper... So I've created a file 'text.php' (with the same name as the helper 'text') like this : Code: -- -- ...
377 Views
2 Replies
12-28-2020, 10:59 AM
kilden
    Thread: integration of Twint (payment method) on CI4 ?
Post: integration of Twint (payment method) on CI4 ?

Hello, I've made a small e-shop for a craftsman on CI4 with no customer/account management (the app simply calculates a basket and send emails with the order) and I've integrated PayPal SDK for the...
302 Views
0 Replies
11-24-2020, 07:52 AM
kilden
    Thread: Image optimiser inside CI4 (such as TinyPNG)
Post: RE: Image optimiser inside CI4 (such as TinyPNG)

Thank you very much for that link. It was exactly what I was looking for ! :-)))
1,002 Views
3 Replies
11-15-2020, 07:40 PM
kilden
    Thread: Image optimiser inside CI4 (such as TinyPNG)
Post: Image optimiser inside CI4 (such as TinyPNG)

Hello everyone, I wonder if one of you already tried to implement an image optimizer such as TinyPNG inside codeigniter ? It could be nice to optimize images "on the fly" directly in our content m...
1,002 Views
3 Replies
11-06-2020, 06:54 AM
kilden
    Thread: env() lang() doesn't work properly (on mobile) online
Post: RE: env() lang() doesn't work properly (on mobile)...

Yes, I know clearing the cache, but I still don't understand why lang() doesn't work online while everything works perfectly on local.
589 Views
3 Replies
10-03-2020, 08:02 AM
kilden
    Thread: env() lang() doesn't work properly (on mobile) online
Post: RE: env() lang() doesn't work properly on mobile

Ok... my problem is different... Actually, lang() works on local but not online... :-/ If it works on my desktop when I tested it, it was just values in the cache...
589 Views
3 Replies
10-03-2020, 03:06 AM
kilden
    Thread: env() lang() doesn't work properly (on mobile) online
Post: env() lang() doesn't work properly (on mobile) onl...

Hello everyone, I'm testing a multilanguage website and I've got a strange issue with lang() vars... Translations appears correctly on a desktop but not on mobile phone... ! the same for the env()...
589 Views
3 Replies
10-02-2020, 07:42 AM
kilden
    Thread: [resolved] CSRF issue when ajax functions and normal forms are used on the same page
Post: RE: CSRF issue when ajax functions and normal form...

Ok... I've finally found it ! It was not a question of focus... When we use the function form_open(), CI4 automatically creates an hidden file with CSRF tokens... So you just need to update the hidde...
913 Views
7 Replies
10-02-2020, 07:29 AM
kilden
    Thread: [resolved] CSRF issue when ajax functions and normal forms are used on the same page
Post: RE: CSRF issue when ajax functions and normal form...

I'm not sure but I think it didn't work. It's always like this : 1- I enter in my input (text) and take the focus 2- I type some text that making ajax request and updating my database 3- If I click t...
913 Views
7 Replies
10-02-2020, 01:22 AM
kilden
    Thread: [resolved] CSRF issue when ajax functions and normal forms are used on the same page
Post: RE: CSRF issue when ajax functions and normal form...

InsiteFX Wrote: (10-01-2020, 12:39 PM) -- You can try this. How to Send AJAX request with CSRF token in CodeIgniter 4 (https://makitweb.com/) -- Thank you, but as I said, I've already succeeded ...
913 Views
7 Replies
10-01-2020, 01:07 PM
kilden
  Bug Thread: [resolved] CSRF issue when ajax functions and normal forms are used on the same page
Post: [resolved] CSRF issue when ajax functions and norm...

Hello everyone ! I've got a problem with csrf reloads that break my mind : I've got ajax-functions (for exemple an input field that updates a database) and form-submit-buttons (for exemple a butto...
913 Views
7 Replies
09-30-2020, 02:21 AM
kilden
    Thread: mb_url_title() generates an error
Post: mb_url_title() generates an error

Hello, I need to transform titles with accented characters and I've tried the function mb_url_title(). Unfortunately, this one generate the error : Call to undefined function App\Controllers\mb_url_t...
432 Views
1 Replies
09-04-2020, 06:17 AM
kilden
    Thread: Translated Routes
Post: RE: Translated Routes

According to your advice I've tried a lot of ways but always without success. Even with reverse routes, I think you can't put lang() in routes...
1,117 Views
4 Replies
07-24-2020, 05:16 AM
kilden
    Thread: Translated Routes
Post: RE: Translated Routes

ups no... :-/ lang() inside Routes.php really doesn't work at all... My last post is wrong
1,117 Views
4 Replies
07-21-2020, 04:38 AM
kilden
    Thread: Translated Routes
Post: RE: Translated Routes

So, Is there no solution to avoid translations into routes.php ? The best I could do (because the function 'lang' in Routes.php doesn't recognize current locale) looks like this : PHP Code: -- /*in...
1,117 Views
4 Replies
07-21-2020, 02:54 AM
kilden
    Thread: Translated Routes
Post: Translated Routes

Hello, I've got a question about localization and translated routes : I wonder if there is a solution to combine  'named routes' and the 'lang() function' to translate URL and keep the app very si...
1,117 Views
4 Replies
07-19-2020, 01:15 PM
kilden
    Thread: CI4 - security with Forms
Post: RE: CI4 - security with Forms

If I use the function esc() in a View, for example in a contact form on a textarea, it will change all special characters and it's not really appropriate. If a visitor write something like " dont't " ...
899 Views
4 Replies
07-12-2020, 11:36 AM
kilden
    Thread: CI4 - security with Forms
Post: CI4 - security with Forms

Hello, I wonder a lot of things about security with my forms in Codeigniter 4. If someone could enlighten me... ^^ 1 Is esc() function useful on Views or only in Controllers ? 2) Is esc() fun...
899 Views
4 Replies
07-11-2020, 09:35 AM
kilden
    Thread: Problem with routes if Controller is in a subfolder
Post: RE: Problem with routes if Controller is in a subf...

Ohhhh ! You found it ! That's the solution ! Thank you so much ! I love you man (or woman) ! ^^ I was getting crazy with that issue and you delivered me !
2,191 Views
10 Replies
07-03-2020, 10:52 PM
kilden

Theme © iAndrew 2016 - Forum software by © MyBB