Welcome Guest, Not a member yet? Register   Sign In
Search Results
    Thread: Missing ] in documentation
Post: Missing ] in documentation

Hello! On this page Code: -- https://codeigniter.com/user_guide/libraries/uri.html -- you find this code Code: -- echo $uri->getQuery(['only' => ['foo']); -- Should be Code: -- echo $uri-...
1,368 Views
1 Replies
05-01-2022, 05:36 AM
sprhld
    Thread: Called method in controller does not execute anything of a ajax-added field is submit
Post: RE: Called method in controller does not execute a...

Okay, I did it :D The reason was, that the changed CSFR key was only used within AJAX. A new given key has to be also in the main form. I just added one Code: -- $("input[name=cappx]").val(data.has...
528 Views
1 Replies
04-29-2022, 03:27 AM
sprhld
    Thread: Called method in controller does not execute anything of a ajax-added field is submit
Post: Called method in controller does not execute anyth...

Hallo! I have a form, where I add a dropdown, regarding an other dropdown. If I send the form, it gives me an error back, if I had not select something in the first dropdown. But if I do so, my aja...
528 Views
1 Replies
04-28-2022, 02:54 PM
sprhld
    Thread: Encryption and validation
Post: Encryption and validation

Hello! My new learning is encryption. But I got some curios results regarding validate data before store: This is my validation rule for a specific field: PHP Code: -- 'number'  => 'required|decim...
1,420 Views
1 Replies
03-13-2022, 07:52 AM
sprhld
    Thread: Fatal error because of using the same key?
Post: Fatal error because of using the same key?

Hello! Maybe someone can explain me this error, which I solved but I don't understand what happens here. Quote: -- Fatal error: Cannot redeclare App\Models\creator() (previously declared in...
510 Views
0 Replies
02-21-2022, 12:27 PM
sprhld
    Thread: Filter object not of user
Post: RE: Filter object not of user

Maybe something similare where I'm in too ;-) I hope I understand you right: It seems, that you want a "basicUserModel" where you create a function for filter like this: PHP Code: -- public f...
531 Views
1 Replies
02-19-2022, 07:52 AM
sprhld
    Thread: Use functions in extended models in there DB
Post: Use functions in extended models in there DB

Hello! I'm using extended Models where I have function which are the same request in all extending models. Lets say, a function "getBySlug()" is used in a CommentsModel and in PostModel or so becau...
1,325 Views
0 Replies
02-19-2022, 07:46 AM
sprhld
    Thread: web hosting CI4 (Bonfire 2) 404 strict-origin-when-cross-origin.
Post: RE: web hosting CI4 (Bonfire 2) 404 strict-origin...

404 sounds that your servers-config did not point to /public. Did you check this config? And can php access the webspaceroot to call all other files?
2,000 Views
3 Replies
02-16-2022, 11:10 AM
sprhld
    Thread: Double loaded helpers?
Post: RE: Double loaded helpers?

iRedds Wrote: (02-05-2022, 08:03 AM) -- That would be such an opportunity to see the code of the framework.  But the framework is available as a binary.  OR NOT? only once. -- fine. i'm ...
1,969 Views
2 Replies
02-14-2022, 11:54 AM
sprhld
    Thread: Double loaded helpers?
Post: Double loaded helpers?

Hello! This time, I have only a technical question ;-) In some cases, it would be nice to use a helper in the constructor of a controller. Like the cookie-helper in my latest case. To do so, I l...
1,969 Views
2 Replies
02-05-2022, 07:34 AM
sprhld
    Thread: C_I 4.1.8 M odule
Post: RE: C_I 4.1.8 M odule

And this can also be the url for form (/admin/controllers/create). Or something like that ;-)
2,189 Views
5 Replies
02-05-2022, 04:24 AM
sprhld
    Thread: getAge() with wrong return
Post: RE: getAge() with wrong return

kenjis Wrote: (02-04-2022, 04:38 PM) -- See https://github.com/codeigniter4/CodeIgniter4/blob/ec146df8bcbdc50b126106ed5ebacc77bac369df/system/I18n/Time.php#L461-L468 It seems it considers only yea...
2,392 Views
4 Replies
02-05-2022, 04:16 AM
sprhld
    Thread: C_I 4.1.8 M odule
Post: RE: C_I 4.1.8 M odule

Hi! If you are use form_open() you use the same controller and method which creates the page. The 404-error in your other example suggests, that the create-Controller was not found. Do you have a cr...
2,189 Views
5 Replies
02-04-2022, 11:31 AM
sprhld
    Thread: getAge() with wrong return
Post: getAge() with wrong return

Hello! I have to check the age in my app and I use getAge() and get a wrong age. I'm in Germany, so I use German dates here: PHP Code: -- $bt2 = Time::parse($this->request->getVar('geburtstag')...
2,392 Views
4 Replies
02-04-2022, 11:22 AM
sprhld
    Thread: Redirect Back with Value
Post: RE: Redirect Back with Value

jozefrebjak Wrote: (01-24-2022, 07:05 AM) -- "68thorby68" Are you solved this issue ? I have simmilar problem. I have one FORM in step 1 and some validation there. It's working fine. But when user go...
14,570 Views
4 Replies
01-24-2022, 11:09 AM
sprhld
    Thread: How do I remove index.php using spark?
Post: RE: How do I remove index.php using spark?

This should be done by the .htaccess-file which is in /public. You can call you controller with and without index.php. If you want a forwart from an index.php-URL to an clean URL, then it should possi...
1,227 Views
3 Replies
01-24-2022, 11:00 AM
sprhld
    Thread: How can i viewed a static page with CI4 ?
Post: RE: How can i viewed a static page with CI4 ?

yasintheking Wrote: (01-23-2022, 12:21 PM) -- but I can call index.php as above. Again, I can't call a different /urly like /booking /contact etc -- Can you call .../index.php/booking? Did you chan...
2,438 Views
3 Replies
01-24-2022, 05:02 AM
sprhld
    Thread: How to use suggestions and find usage with PHPStorm
Post: RE: How to use suggestions and find usage with PHP...

May, It is a CI-problem... because I'm now using more and more the methods of the model directly in my controller, and I found that today: First, I load my model in my BaseController and I have no su...
3,422 Views
5 Replies
01-23-2022, 09:13 AM
sprhld
    Thread: Multilanguage validation with German "Umlaute"
Post: RE: Multilanguage validation with German "Umlaute"

includebeer Wrote: (01-04-2022, 12:49 PM) -- Yeah regex can be confusing, that's why I always use a regex website to test mine! :cool: -- First I should learn regex before using a testing-website :)
2,656 Views
4 Replies
01-21-2022, 03:14 AM
sprhld
    Thread: Accessing a model in a much used helper
Post: RE: Accessing a model in a much used helper

Can you return the whole array and use it? What does "getText()"? I think for more abstraction we need more code.
1,828 Views
2 Replies
01-21-2022, 03:08 AM
sprhld

Theme © iAndrew 2016 - Forum software by © MyBB