Welcome Guest, Not a member yet? Register   Sign In
Search Results
    Thread: Model with session only and without database
Post: RE: Model with session only and without database

kenjis Wrote: (03-14-2024, 11:16 PM) -- Remove " extends Model”. -- Hello, this worked. Than it should be renamed to "DBModel".
305 Views
2 Replies
03-14-2024, 11:45 PM
StefanKittel
    Thread: Model with session only and without database
Post: Model with session only and without database

Hello, I want to create one model with session only and without database. The other models are needed for database operations. The model should handle some informations in the session. I thi...
305 Views
2 Replies
03-14-2024, 02:24 PM
StefanKittel
    Thread: Prevent gzuncompress to throw ErrorException on invalid data
Post: RE: Prevent gzuncompress to throw ErrorException o...

Found it myself with the docu :-) using Code: -- \Exception -- makes the difference Code: -- try {     $this->Config['OutputContent'] = gzuncompress($OutputContentGZ); } catch (\Exception $...
240 Views
1 Replies
09-08-2023, 03:47 PM
StefanKittel
    Thread: Prevent gzuncompress to throw ErrorException on invalid data
Post: Prevent gzuncompress to throw ErrorException on in...

Hello, I'm working on an controller in the newest CI-Version to load and uncompress date. Currently I'm testing on invalid data. If the data is invalid by a modified data, I put "hello world" in it...
240 Views
1 Replies
09-08-2023, 02:26 PM
StefanKittel
    Thread: how to check if update on model did succeed?
Post: RE: how to check if update on model did succeed?

thanks
3,374 Views
6 Replies
06-06-2023, 06:58 AM
StefanKittel
    Thread: how to check if update on model did succeed?
Post: RE: how to check if update on model did succeed?

Hello kenjis, > $this->db->affectedRows() Undefined property: App\Controllers\CliController::$db PHP Code: -- File CLIController.php $db = db_connect(); $JobModel_obj = new JobModel(); ...
3,374 Views
6 Replies
05-23-2023, 07:59 AM
StefanKittel
    Thread: how to check if update on model did succeed?
Post: RE: how to check if update on model did succeed?

InsiteFX Wrote: (05-22-2023, 12:12 AM) -- update() - Returns (bool) - true on success, false on failure. -- Yes, it returns true for successfull running update. But it return true allthough if no li...
3,374 Views
6 Replies
05-22-2023, 12:51 AM
StefanKittel
    Thread: how to check if update on model did succeed?
Post: how to check if update on model did succeed?

Hello, I have a basic model with no configuration else of allowed fields. I want to update a row need and know if the update was done or not and can not figure it out. How can I get the number of a...
3,374 Views
6 Replies
05-21-2023, 04:15 PM
StefanKittel
    Thread: how to validate data in array in CI4?
Post: RE: how to validate data in array in CI4?

Found validateData.
772 Views
1 Replies
11-02-2022, 08:24 AM
StefanKittel
    Thread: how to validate data in array in CI4?
Post: how to validate data in array in CI4?

Hello, i have a restfull api controller in ci4. I validate the parameter of the request. works fine. But one parameter is a comma seperated list of domainnames. To make things worse, some times t...
772 Views
1 Replies
11-02-2022, 08:01 AM
StefanKittel
    Thread: How to create a common controller type? Does it makes sense?
Post: RE: How to create a common controller type? Does i...

Hello, I've not found anything complete here, but there https://philsturgeon.uk/codeigniter/2010/02/08/CodeIgniter-Base-Classes-Keeping-it-DRY/ Thanks Stefan
7,544 Views
5 Replies
01-25-2016, 01:26 PM
StefanKittel
    Thread: Security Session, DB and more
Post: Security Session, DB and more

Hello, I've been looking for an simple robust and secure login. I've seen some and read about many. I've a short question about security itself. Not direkt about CI only. Assumptions: Sessi...
1,792 Views
0 Replies
01-25-2016, 01:01 PM
StefanKittel
    Thread: How to create a common controller type? Does it makes sense?
Post: How to create a common controller type? Does it ma...

Hello, first, thanks for this fine framework. I'll still starting, but feel fine. I've create a controller which can load several pages as parameter. Code: --     public function view($page...
7,544 Views
5 Replies
01-25-2016, 11:00 AM
StefanKittel

Theme © iAndrew 2016 - Forum software by © MyBB