Welcome Guest, Not a member yet? Register   Sign In
Search Results
    Thread: Model/Database Relationship?
Post: RE: Model/Database Relationship?

kilishan Wrote: (07-24-2016, 09:52 PM) -- idealcastle Wrote: (07-23-2016, 05:56 AM) -- JayAdra Wrote: (07-22-2016, 06:25 PM) -- You may want to consider getting this information in a single query u...
10,024 Views
7 Replies
08-01-2016, 07:48 AM
idealcastle
    Thread: Model/Database Relationship?
Post: RE: Model/Database Relationship?

JayAdra Wrote: (07-22-2016, 06:25 PM) -- You may want to consider getting this information in a single query using a join - it'll be a lot faster than running four separate queries to get the informa...
10,024 Views
7 Replies
07-23-2016, 05:56 AM
idealcastle
    Thread: Model/Database Relationship?
Post: RE: Model/Database Relationship?

The only thing I can think about right now for this setup is something along the lines of this (creating a new method in the main item model, and linking all the other models together manually) really...
10,024 Views
7 Replies
07-22-2016, 03:29 PM
idealcastle
    Thread: Model/Database Relationship?
Post: Model/Database Relationship?

How can you link up the database relationships, Such as $post = $post_model->find(123); $comments = $post->comments()->where(['active'=>true]); Something along these lines, changing models togethe...
10,024 Views
7 Replies
07-22-2016, 03:06 PM
idealcastle
    Thread: CI4 Debug Bar bottom options?
Post: CI4 Debug Bar bottom options?

What about a debug bar bottom option? like standard in inspects, laravel almost mimics chrome inspector. But if there was an option to fix it to the bottom of screen? This isn't a huge deal, but I...
1,631 Views
0 Replies
07-22-2016, 02:27 PM
idealcastle
    Thread: How to load model and helper
Post: RE: How to load model and helper

kilishan Wrote: (07-22-2016, 12:34 PM) -- idealcastle Wrote: (07-22-2016, 12:10 PM) -- How might one "Auto-Load" a model? Or, as for namespaces, I assume I cant add my "use \namespace;" and then ...
13,937 Views
8 Replies
07-22-2016, 01:31 PM
idealcastle
    Thread: How to load model and helper
Post: RE: How to load model and helper

kilishan Wrote: (07-18-2016, 11:56 AM) -- Interestingly enough, the Models docs doesn't actually say how to load a model. Embarrassing. :) But, a model is just a class, so you would get a new instanc...
13,937 Views
8 Replies
07-22-2016, 12:10 PM
idealcastle
    Thread: APP_NAMESPACE do nothing..
Post: RE: APP_NAMESPACE do nothing..

I would also like to know about this issue as namespaces are very important in a modern framework design. *bump*
10,878 Views
11 Replies
06-28-2016, 04:54 AM
idealcastle
    Thread: [split] Composer?
Post: RE: [split] Composer?

Jamper Wrote: (04-07-2015, 11:32 PM) -- I agree completely, One of the popular selling points of CI is it's ability to be downloaded and setup with ease, perfect for any developer. I fear that if you...
38,299 Views
31 Replies
11-28-2015, 11:43 AM
idealcastle
    Thread: [split] Composer?
Post: RE: [split] Composer?

I agree with Jamper, no point on making it confusing to install. I particularly don't care for composer since I'm an out of the box person myself. Keep it real clean and simple. If I want to use 3rd p...
38,299 Views
31 Replies
11-27-2015, 05:19 PM
idealcastle
    Thread: Welcome Home
Post: RE: Welcome Home

kilishan Wrote: (10-06-2015, 07:52 AM) -- While things are still very much at a beginning stages, and the details are still being hashed out, many features missing or incomplete, etc. it is nice to m...
36,189 Views
19 Replies
11-27-2015, 05:07 PM
idealcastle
    Thread: Pass argument to model constructor while loading a model
Post: RE: pass argument to model constructor while loadi...

*Alternatively* Here is another option, I feel as though the above is complicated when it can be something more simple. /system/core/Loader.php PHP Code: -- public function model($model, $na...
3,515 Views
1 Replies
01-13-2015, 10:12 AM
idealcastle
  Lightbulb Thread: Pass argument to model constructor while loading a model
Post: Pass argument to model constructor while loading a...

This was previously posted here. Long time ago. But it needs to be addressed if not already. https://ellislab.com/forums/viewthread/115681/ I was just looking for this feature, and noticed this h...
3,515 Views
1 Replies
01-13-2015, 09:31 AM
idealcastle

Theme © iAndrew 2016 - Forum software by © MyBB