Welcome Guest, Not a member yet? Register   Sign In
Search Results
    Thread: How to use suggestions and find usage with PHPStorm
Post: RE: How to use suggestions and find usage with PHP...

Okay, it is not because of the structure of CI and it is more my system like the configuration or what so ever :/ If I found a solution, I will post it. Thank you!
479 Views
4 Replies
11-13-2021, 02:42 AM
sprhld
    Thread: How to use suggestions and find usage with PHPStorm
Post: RE: How to use suggestions and find usage with PHP...

Hmm... Strange. It work here only on the BaseController. There I have the suggestions and I can find the usage when I search for it. It seems, that any kind of a link between the BaseController and th...
479 Views
4 Replies
11-01-2021, 02:51 PM
sprhld
    Thread: Do you have a hobby?
Post: RE: Do you have a hobby?

hmm... bike-backpacking, cooking, sometimes reading, and ... thinking ;-)
41,926 Views
65 Replies
11-01-2021, 04:20 AM
sprhld
    Thread: Using something like a helper in model
Post: RE: Using something like a helper in model

And I found more ;-) My method to create a slug is always used on INSERT and UPDATE. In that case, you can make use of events: https://codeigniter.com/user_guide/models/model.html#model-events It's...
412 Views
4 Replies
11-01-2021, 03:52 AM
sprhld
    Thread: How to use suggestions and find usage with PHPStorm
Post: How to use suggestions and find usage with PHPStor...

Hello! I use PHPStorm and since my code becomes more complex, I miss the suggestions if I want to use a model, I can't see my docs if I use a method and also in the model file all methods are grey,...
479 Views
4 Replies
11-01-2021, 03:48 AM
sprhld
    Thread: Update Via Model CodeIgniter ( No Dat a To Update )
Post: RE: Update Via Model CodeIgniter ( No Dat a To Upd...

I think its better to post all your stuff instead to send an image...
359 Views
2 Replies
10-26-2021, 10:43 AM
sprhld
    Thread: Using something like a helper in model
Post: RE: Using something like a helper in model

Oh, that was easy :-) I thought, it would be a problem to use the builder. For all other noobs like me, here is what I did: First, I extend the Model: PHP Code: --
412 Views
4 Replies
10-26-2021, 10:40 AM
sprhld
    Thread: Using something like a helper in model
Post: Using something like a helper in model

Hi there! How to start... :) I have three tables with, let's say, "comments", "pages" and "somethingelse". All have a colmn "slug", which is the ID in the URL to access them directly. For all this th...
412 Views
4 Replies
10-26-2021, 12:41 AM
sprhld
    Thread: How to select data from joined table
Post: RE: How to select data from joined table

iRedds Wrote: (09-18-2021, 07:04 PM) -- Move r.id from main query to condition PHP Code: -- if ($to == 'below') {     $query->select('r.id')     -> // etc } -- -- That's it. I had somet...
731 Views
3 Replies
09-19-2021, 01:06 AM
sprhld
    Thread: How to select data from joined table
Post: How to select data from joined table

Hi there, I have a table and some relations in an 2nd one. My model for the first table works fine. But if I need data from this relation-table, it get Unknown column 'r.id' in 'field list'. In deta...
731 Views
3 Replies
09-18-2021, 11:27 AM
sprhld
    Thread: Error 404 on things after "/"
Post: RE: Error 404 on things after "/"

Thank you guys, it's solved. Quote: -- your css file path must be this :  public/dashboard/template/xyz.css -- That's it. But it seems, that you can use it without /public, if your .htaccess-f...
1,011 Views
8 Replies
08-16-2021, 02:46 AM
sprhld
    Thread: Error 404 on things after "/"
Post: RE: Error 404 on things after "/"

Thanks so far! What I mean is, that no CSS-File, even all other files, are not loading. Sorry for my english :-) baseURL has a trailing slash. I try this three ways to check what is going on: Code...
1,011 Views
8 Replies
08-09-2021, 09:56 AM
sprhld
    Thread: Error 404 on things after "/"
Post: RE: Error 404 on things after "/"

Okay, I'm a little bit further. My controllers are loading correctly now. I did it with this .htaccess (latest working version, but it works with less code too): Code: -- DirectoryIndex index.p...
1,011 Views
8 Replies
08-08-2021, 06:55 AM
sprhld
    Thread: Error 404 on things after "/"
Post: Error 404 on things after "/"

Hi! I had no idea, how to describe my problem in one line ;-) Basically, if I use an URL, i got a 404. Some examples: First, https://domain works. It calls the basic controller and method. Fine. But...
1,011 Views
8 Replies
08-08-2021, 05:52 AM
sprhld
    Thread: Struckle with my model and the builder - "Call to a member function get() on null"
Post: RE: Struckle with my model and the builder - "Call...

Thank you for your answer, what I did is the result of different approaches to solve my problem :D Every how-to did something new... I changed my code to you suggestion and I still get the message ...
524 Views
4 Replies
05-15-2021, 07:13 AM
sprhld
    Thread: Struckle with my model and the builder - "Call to a member function get() on null"
Post: Struckle with my model and the builder - "Call to ...

Hello! I had the idea, to write a new program. I do this for fun, I am not a professional developer. I used CI3 at my last project 4 years ago, so I would like to have fun with CI4 now :-) But I...
524 Views
4 Replies
05-15-2021, 05:02 AM
sprhld

Theme © iAndrew 2016 - Forum software by © MyBB