Welcome Guest, Not a member yet? Register   Sign In
Search Results
    Thread: Nesting level too deep - recursive dependency?
Post: RE: Nesting level too deep - recursive dependency?

Hi all, If you have the same problem: check if your $allowedFields in your model are correct (corresponding with the DB table field names)! You can indeed test by commenting them out or add the prop...
541 Views
1 Replies
10-17-2024, 12:53 AM
Zeff
    Thread: Nesting level too deep - recursive dependency?
Post: Nesting level too deep - recursive dependency?

Hi all, For a project, I wrote a specific method that accepts posted data (via a javascript - by means of axios).  The method is written to handle (ajax) file uploads and save file details in a data...
541 Views
1 Replies
10-15-2024, 08:36 AM
Zeff
    Thread: Using phpCas in CI4 (Composer install)
Post: RE: Using phpCas in CI4 (Composer install)

kenjis Wrote: (03-27-2024, 03:34 AM) -- It seems you moved the vendor directory. It is not the standard location. You must configure CodeIgniter to work with Composer. -- I read https://codeignite...
1,582 Views
6 Replies
03-27-2024, 04:55 AM
Zeff
    Thread: Using phpCas in CI4 (Composer install)
Post: RE: Using phpCas in CI4 (Composer install)

Dear kenjis, Thanks for your help. I tried just the easy test to use phpCAS in a controller, but when I try to instantiate ($cas =new phpCAS()) I still get  'Class "phpCAS" not found'. My ThirdPar...
1,582 Views
6 Replies
03-27-2024, 03:21 AM
Zeff
    Thread: Using phpCas in CI4 (Composer install)
Post: RE: Using phpCas in CI4 (Composer install)

kenjis Wrote: (03-26-2024, 05:36 AM) -- Zeff Wrote: (03-26-2024, 02:41 AM) -- I'm rather new to Composer, but I believe Composer autoloading is active by default in CI4? -- Yes. It seems the phpCA...
1,582 Views
6 Replies
03-26-2024, 07:03 AM
Zeff
    Thread: Using phpCas in CI4 (Composer install)
Post: Using phpCas in CI4 (Composer install)

Dear all, I installed the apereo/phpcas classes by means of Composer (which correctly appears in my vendor path: as directory App\ThirdParty\vendor\apereo\phpcas\source\CAS and file ...\source\CAS.ph...
1,582 Views
6 Replies
03-26-2024, 02:41 AM
Zeff
    Thread: Redirect issue
Post: RE: Redirect issue

kenjis Wrote: (06-12-2023, 03:59 AM) -- You need to return the Response object from your controller. You return it from the _check_login() method, but do you return it from the public method? -- H...
1,095 Views
2 Replies
06-12-2023, 06:03 AM
Zeff
    Thread: Redirect issue
Post: Redirect issue

Dear all, I have a strange issue when I use the return redirect()->to() function: In my controller; I have this method: PHP Code: -- private function _check_login() {     $auth = service('simp...
1,095 Views
2 Replies
06-12-2023, 02:05 AM
Zeff
    Thread: Form validation is_unique: valid if value is in current row, invalid on any other row
Post: RE: Form validation is_unique: valid if value is i...

iRedds Wrote: (01-24-2022, 08:41 AM) -- https://www.php.net/manual/en/language.oop5.properties.php " but this initialization must be a constant value." -- Thanks iRedds, I missed this one. I initiali...
7,893 Views
7 Replies
01-25-2022, 01:31 AM
Zeff
    Thread: Form validation is_unique: valid if value is in current row, invalid on any other row
Post: RE: Form validation is_unique: valid if value is i...

Thanks for posting your solution BFlokstra! Are you validating in a config file or in the controller? I've been trying to solve the same issue in the 'In Model' validation (i.e. setting the model p...
7,893 Views
7 Replies
01-24-2022, 08:16 AM
Zeff
    Thread: RESTful resource handling and delete: controller method not found
Post: RE: RESTful resource handling and delete: controll...

xenomorph1030 Wrote: (01-19-2022, 06:55 AM) -- Are you using the proper HTTP verb when making the request? It looks like you need to use the DELETE verb to administration/user/1 Per the documentatio...
4,832 Views
4 Replies
01-19-2022, 08:03 AM
Zeff
    Thread: RESTful resource handling and delete: controller method not found
Post: RESTful resource handling and delete: controller m...

Hi all, I created a controller User in a subfolder ('administration'): App/Controllers/Administration/User.php Acording to https://codeigniter4.github.io/userguide/incoming/restful.html, I added a rou...
4,832 Views
4 Replies
01-19-2022, 06:23 AM
Zeff
    Thread: Get controller name and method
Post: RE: Get controller name and method

Thanks guys, Interesting! I searched the userguide for more info on this router service (and its methods), but I come home empty handed... Suggestions on where to find more? Cheers, Zeff
14,403 Views
5 Replies
06-04-2021, 06:36 AM
Zeff
  Sad Thread: How to extend the default model
Post: RE: How to extend the default model

Thanks InsiteFX! It's that simple... I still have to get used to the new way of coding in CI4. I've shared my code for my 'BaseModel' in App\Models, maybe I can be helpfull for others... PHP C...
1,785 Views
2 Replies
05-27-2021, 01:55 AM
Zeff
    Thread: How to extend the default model
Post: How to extend the default model

Hi friends, For a specific App, I want to add some extra functionality (a createDropdown() method) to the default model (System\Model - which extends the BaseModel in the same location) so I can us...
1,785 Views
2 Replies
05-27-2021, 12:04 AM
Zeff
    Thread: DB Forge: possibility to change / set a primary key on a field of an existing table?
Post: DB Forge: possibility to change / set a primary ke...

Hi all, I was reading the user guide on the CI4 Database Forge class. I want to set a primary key on an field of an (existing) table.  The addPrimaryKey() should be use on fields that must be c...
1,402 Views
1 Replies
05-06-2021, 05:16 AM
Zeff
    Thread: Trouble with view_cell
Post: RE: Trouble with view_cell

Hello iRedds, Thanks so much for your hint, it worked by returning a string. I was so used to echo views from the previous tutorials I followed and I missed this perticular difference... You made my...
1,805 Views
2 Replies
05-06-2021, 12:38 AM
Zeff
    Thread: Trouble with view_cell
Post: Trouble with view_cell

Hi folks, I tried to use the view_cell() function in a view file, but I always get an error:  Code: -- TypeError Return value of CodeIgniter\View\Cell::render() must be of the type string, null ...
1,805 Views
2 Replies
05-05-2021, 07:25 AM
Zeff
    Thread: Using and namespacing 'modules'
Post: Using and namespacing 'modules'

UPDATE - 2020-04-20 I changed App\Config\Autoload.php to: PHP Code: --
1,333 Views
0 Replies
04-16-2020, 06:01 AM
Zeff
    Thread: CI3 and HMVC: fetch_module() issue
Post: CI3 and HMVC: fetch_module() issue

Hi all, In a CI HMVC project, I created a module for managing navigation and breadcrumbs of the site. In each module (take the example 'Start' module), I try to load the 'custom' menu and breadcru...
1,361 Views
0 Replies
04-01-2020, 03:29 AM
Zeff

Theme © iAndrew 2016 - Forum software by © MyBB