Search Results
Post Author Forum Replies Views Posted [asc]
    Thread: my model does not work as expected
Post: RE: my model does not work as expected

You can also use this: http://codeigniter.com/user_guide/models...ing-fields For updating data this works perfectly, too.
Codinglander Model-View-Controller 3 1,114 04-15-2021, 06:17 AM
  Question Thread: Validation and beforeInsert
Post: Validation and beforeInsert

Hello there. What is the order in which a model works? Is the validation carried out first and then a possible "beforeInsert" carried out or is it the other way around? I am using CI4 Greetinxx ...
Codinglander CodeIgniter 4 Support 1 184 04-03-2021, 07:14 AM
    Thread: Dataset from database accessible on all controllers and views
Post: RE: Dataset from database accessible on all contro...

Oh, Okay... Thank you very much, now it works fine !!!
Codinglander CodeIgniter 3.x 8 1,798 03-07-2021, 11:48 PM
    Thread: Dataset from database accessible on all controllers and views
Post: RE: Dataset from database accessible on all contro...

Hi I have a little problem with this feature for CI4: I have a "home controller" where I would like to use a function to test whether the value for "siteOffline" is 1 or 0. If I query this directly...
Codinglander CodeIgniter 3.x 8 1,798 03-07-2021, 06:58 PM
    Thread: What's the difference between the .env file and App.php?
Post: RE: What's the difference between the .env file an...

Just so that I understand correctly: If I fill the "App.php" configuration file LOCAL with the "live" data AND I have an .env file, then the .env file works LOCAL, right? If I then transfer my projec...
Codinglander CodeIgniter 4 Support 9 1,113 02-20-2021, 08:03 PM
    Thread: [SOLVED] Update problem with foreign key
Post: RE: Update problem with foreign key

(02-07-2021, 10:04 AM)paliz Wrote: this rest full cotroller  look at code  controller  PHP Code:<?phpnamespace App\Controllers\Api;use App\Entities\NewsPostEntity;u...
Codinglander CodeIgniter 4 Support 2 350 02-07-2021, 12:48 PM
    Thread: [SOLVED] Update problem with foreign key
Post: [SOLVED] Update problem with foreign key

Hi community. During the development of a project I get an error which I cannot solve. The error message is: _______________________________________________________________ mysqli_sql_exeption #1452...
Codinglander CodeIgniter 4 Support 2 350 02-07-2021, 03:56 AM
    Thread: Format date before save or show
Post: RE: Format date before save or show

Hi Pip I'm from germany and I had the same problem. My site supports two languages with different format of the date to input. In my model (CI4) I made two changes: First: PHP Code:protected &...
Codinglander CodeIgniter 4 Support 5 506 01-30-2021, 06:56 AM
    Thread: {field} placeholder does not get replaced with field name in a custom error message
Post: RE: {field} placeholder does not get replaced with...

Hi there... After hours of try and error I found a solution for this problem. In my solution I use my code to show how it works fine: The "MyRules" file (part): PHP Code:public function my...
Codinglander CodeIgniter 4 Support 7 1,850 01-23-2021, 05:44 PM
    Thread: Validation: one of two field required
Post: RE: Validation: one of two field required

Hmmm... okay, today afternoon I#ll try it...
Codinglander CodeIgniter 4 Support 3 391 01-18-2021, 10:40 PM
    Thread: Validation: one of two field required
Post: Validation: one of two field required

Hello. I have a form in which two fields are related. I want at least one of the two fields to be filled out. It is also conceivable that both are filled in, but not that neither is filled out. Is th...
Codinglander CodeIgniter 4 Support 3 391 01-18-2021, 03:40 PM
    Thread: Happy New Year
Post: RE: Happy New Year

Thank U... HNY 2 U too
Codinglander Lounge 4 1,716 01-01-2021, 03:18 AM
    Thread: Validation tutorial
Post: RE: Validation tutorial

(04-24-2020, 09:40 AM)jreklund Wrote: It always execute it no matter what. It dosen't check if you posted any data. Haven't looked in the code in depth if you can actually fix it. I added this to "...
Codinglander CodeIgniter 4 Support 8 3,733 04-24-2020, 11:12 AM
    Thread: Validation tutorial
Post: RE: Validation tutorial

We are slowly getting closer :) I found two typing errors and now it almost works with validation. When I call up the form for the first time, I shouldn't get any error messages via Code:<?= ...
Codinglander CodeIgniter 4 Support 8 3,733 04-23-2020, 07:49 PM
    Thread: Validation tutorial
Post: RE: Validation tutorial

(04-23-2020, 02:51 AM)Leo Wrote: "I set up the rules WITHOUT any "required" rule, so it should pass if only one field is filled up. In the debugbar the $_POST array ist correctly filled out, but...
Codinglander CodeIgniter 4 Support 8 3,733 04-23-2020, 03:17 AM
    Thread: Validation tutorial
Post: Validation tutorial

Hi there, I'm back ;) I have some Problems with the validation tutorial. I followed the steps for my own little project, but it doesn't work yet. Here my code: BaseController (part): PHP Code:public...
Codinglander CodeIgniter 4 Support 8 3,733 04-22-2020, 10:48 PM
    Thread: No base_url() in view parser
Post: RE: No base_url() in view parser

Here is my solution for this problem: inside the controller: PHP Code:$this->data['bootstrap_css'] = base_url('assets/templates/kigh_bootstrap/css/bootstrap.min.css');  inside t...
Codinglander CodeIgniter 4 Support 4 1,259 04-21-2020, 09:05 AM
    Thread: Problem with session
Post: RE: Problem with session

Oh, I've found the reason... After asking me the session-path I checked ALL my configuration files. And after that I store all my configuration in app/config. Before that I had a mix of that with the ...
Codinglander CodeIgniter 4 Support 4 2,074 03-30-2020, 11:41 PM
    Thread: Problem with session
Post: RE: Problem with session

My session-variables are: PHP Code:public $sessionDriver            = 'CodeIgniter\Session\Handlers\FileHandler';public $sessionCook...
Codinglander CodeIgniter 4 Support 4 2,074 03-30-2020, 10:28 AM
  Question Thread: Problem with session
Post: Problem with session

Hi there again :) I want to access session in all controllers by using BaseController. First time to access a site it works fine, also when I navigate everytime to another site (e.g.: first I naviga...
Codinglander CodeIgniter 4 Support 4 2,074 03-30-2020, 03:44 AM

  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2021 MyBB Group.