Welcome Guest, Not a member yet? Register   Sign In
Search Results
    Thread: Best way for two models in one controller?
Post: RE: Best way for two models in one controller?

ok so I wasn't wrong with this. Thank you!
705 Views
4 Replies
10-31-2024, 08:53 AM
trunky
    Thread: Best way for two models in one controller?
Post: RE: Best way for two models in one controller?

I am probably not experienced enough for this, but how do I define withDescription? Is it a model function that includes the products_description model?
705 Views
4 Replies
10-31-2024, 05:54 AM
trunky
    Thread: Best way for two models in one controller?
Post: Best way for two models in one controller?

Hi everyone, My question is about following: I have two tables, products and products_description. First holds the general information like price and article number of the products, the description t...
705 Views
4 Replies
10-30-2024, 10:15 AM
trunky
    Thread: Read Only User?
Post: RE: Read Only User?

my original plan was not to touch the controllers as it's pretty dangerous to oversee one piece, so I thought model would be the better place. But I did ask for help and I appreaciate your help. I've ...
1,101 Views
5 Replies
08-29-2024, 04:37 AM
trunky
    Thread: Read Only User?
Post: RE: Read Only User?

I use the groups for admin and users, but I don't see how this one can protect all database changes? Background is, we need a read-only admin, that can see everything but not change anything.
1,101 Views
5 Replies
08-27-2024, 12:52 PM
trunky
    Thread: Read Only User?
Post: Read Only User?

Hey everyone, I have a small website running with Codeigniter 4 and Shield installed, users have a login system. So one of them shouldn't be able to actually write/change data in the database. My i...
1,101 Views
5 Replies
08-27-2024, 09:53 AM
trunky
    Thread: Shield... no route found
Post: RE: Shield... no route found

Alright, let me see what I've modified.... app/Actions/EmailActivator.php (copied the one from Shield and edited only show() ) PHP Code: --
1,229 Views
2 Replies
04-03-2024, 11:33 AM
trunky
    Thread: Shield... no route found
Post: Shield... no route found

Hi everyone, I am not sure, either my problem is very special or I am just dumb. At least I tried something with Shield, it worked all fine, had some testing and just after putting it online it broke...
1,229 Views
2 Replies
03-25-2024, 04:59 PM
trunky
    Thread: My first test....
Post: My first test....

I was going to write my first test ever and failed already... from the docs I found this piece and saved it at tests/app/Libraries/fooTest.php PHP Code: --
952 Views
1 Replies
01-31-2024, 11:13 AM
trunky
    Thread: CI4 Dynamic DOMPDF view ,
Post: RE: CI4 Dynamic DOMPDF view ,

in development mode it generates a blank pdf (as it seems) and downloads it, but it's no valid pdf. If one opens it with a text editor instead it contains the CI error page As it is too much code f...
7,776 Views
14 Replies
12-27-2023, 06:00 AM
trunky
    Thread: CI4 Dynamic DOMPDF view ,
Post: RE: CI4 Dynamic DOMPDF view ,

I've given it a try and my code (so this one from the post here) works fine if env is set to production. In development it indeed throws an error and write the content into the pdf instead of a valid ...
7,776 Views
14 Replies
12-21-2023, 11:25 AM
trunky
  Question Thread: CI4 Dynamic DOMPDF view ,
Post: RE: CI4 Dynamic DOMPDF view ,

Hello and sorry for activating this old thread again... but I am running in a problem with CI 4.4.3 and Dompdf. I've created a view as proposed here, it works fine when I view it. But as soon as I sen...
7,776 Views
14 Replies
11-14-2023, 10:55 AM
trunky
    Thread: Events and Controllers...
Post: RE: Events and Controllers...

thank you @devo Sometimes it's so simple
2,299 Views
3 Replies
09-16-2023, 07:16 AM
trunky
    Thread: Events and Controllers...
Post: Events and Controllers...

Hi everyone, I like to achieve simply logging the views of my pages in the database. Still learning CI4 though... I found the Events and was looking at it the whole night. I have a Controller "Stati...
2,299 Views
3 Replies
09-15-2023, 12:51 PM
trunky
    Thread: Syncing and linking
Post: RE: Syncing and linking

I do use Migrations already, it's a pleasant feature. But my data change on the live site. In particular I add more files and entries to the website and my dev site is behind, the data just gets older...
2,396 Views
7 Replies
09-05-2023, 09:29 AM
trunky
    Thread: Syncing and linking
Post: Syncing and linking

Hi everyone, I've started my second project with CI4 and notice which things I made wrong or missed in my first project :) Thanksfully just personal things. So I've been digging a bit deeper by now,...
2,396 Views
7 Replies
09-04-2023, 10:38 AM
trunky
    Thread: Why is there a index.php in my routing?
Post: RE: Why is there a index.php in my routing?

Ah, this is what I forgot... Thank you!
2,137 Views
3 Replies
08-30-2023, 02:41 PM
trunky
  Question Thread: Why is there a index.php in my routing?
Post: Why is there a index.php in my routing?

Hi all, I am new to CI for like half a year and working on my second project using it. I wonder about one thing: My "normal" routing works well, domain.tld/page1 etc, Apache is set up to drop the in...
2,137 Views
3 Replies
08-28-2023, 02:50 PM
trunky

Theme © iAndrew 2016 - Forum software by © MyBB