Welcome Guest, Not a member yet? Register   Sign In
Search Results
    Thread: How to add dynamic CSS and JS - need help
Post: RE: How to add dynamic CSS and JS - need help

Also, I might misunderstanding but you say path to css folder is: public_html/styles but your config says $config['css_path'] = 'assets/css/'; should it not be $config['css_path'] = 'pu...
6,377 Views
4 Replies
01-29-2016, 08:55 AM
DreamOfSleeping
    Thread: How to add dynamic CSS and JS - need help
Post: RE: How to add dynamic CSS and JS - need help

Hey, I'm really no expert, so appogogies if what I says is not helpful! You say your base url is http://localhost/public_html and your css path is 'assets/css/'; Your css url function returns  retu...
6,377 Views
4 Replies
01-29-2016, 08:48 AM
DreamOfSleeping
    Thread: What actually goes in YOUR header?
Post: RE: What actually goes in YOUR header?

Thanks. I will check out your application. It will be useful to see a full working example like that.
21,537 Views
10 Replies
01-28-2016, 04:15 PM
DreamOfSleeping
    Thread: What actually goes in YOUR header?
Post: RE: What actually goes in YOUR header?

Thanks Robert. I think your example is what I'm going to go with. Looking up a lot of articles about this subject, and some people seem to frown upon the loading the header inside another view each ti...
21,537 Views
10 Replies
01-28-2016, 12:51 PM
DreamOfSleeping
    Thread: What actually goes in YOUR header?
Post: RE: What actually goes in YOUR header?

"Why not try put this in your controller, $this->load->view('header'); $this->load->view('body'); $this->load->view('footer'); You can't $this->load->view('blabla'); in another view." Because I don...
21,537 Views
10 Replies
01-28-2016, 01:43 AM
DreamOfSleeping
    Thread: What actually goes in YOUR header?
Post: What actually goes in YOUR header?

I understand the concept of having a header to stop duplicate code. What I have so far though, I'm not sure what will be duplicated in a header. The title of the page will be different each time, the ...
21,537 Views
10 Replies
01-27-2016, 05:24 AM
DreamOfSleeping
    Thread: Will I be able to add a facebook style notifcation system when using codeigniter
Post: RE: Will I be able to add a facebook style notifca...

Thank you. That's just what I was hoping someone would say.
6,454 Views
2 Replies
12-08-2015, 05:58 AM
DreamOfSleeping
    Thread: Will I be able to add a facebook style notifcation system when using codeigniter
Post: Will I be able to add a facebook style notifcation...

I am no where near up to adding notifcations to my website idea. And I have lot of reading and learning to do. But usually node.js pops up when searching about how to make a notification systems. (I ...
6,454 Views
2 Replies
12-08-2015, 04:37 AM
DreamOfSleeping
    Thread: Is it possible to make this query using Query Builder, if not how can I make it safe?
Post: RE: Is it possible to make this query using Query ...

kilishan Wrote: (11-30-2015, 08:26 AM) -- First off - for many projects, there's no need to use Query Builder, and you'll get a (very) slight performance increase from not using it. So, I won't dig i...
13,652 Views
5 Replies
11-30-2015, 12:50 PM
DreamOfSleeping
    Thread: Is it possible to make this query using Query Builder, if not how can I make it safe?
Post: Is it possible to make this query using Query Buil...

Here is an example of the query just as a string that I pass to the query function. This works as I expected. Code: -- $query_string = "SELECT SUM(author = '$author' AND email = '$email' AND app...
13,652 Views
5 Replies
11-30-2015, 04:18 AM
DreamOfSleeping
    Thread: What do you call your main controller?
Post: RE: What do you call your main controller?

mwhitney Wrote: (11-13-2015, 01:05 PM) -- Honestly, I would have a "Users" controller which contained methods to display the user's home page, profile, etc. Then I would have a "Home" controller (or ...
22,801 Views
12 Replies
11-13-2015, 01:18 PM
DreamOfSleeping
    Thread: What do you call your main controller?
Post: RE: What do you call your main controller?

Aweseome thanks! And thank you for your patience!
22,801 Views
12 Replies
11-13-2015, 12:46 PM
DreamOfSleeping
    Thread: What do you call your main controller?
Post: RE: What do you call your main controller?

Thanks again for replying. I admit already knew the first half of what you said. I think it's my fault for not making myself clear. It's a complicated topic though. If I had one page per controller....
22,801 Views
12 Replies
11-13-2015, 12:25 PM
DreamOfSleeping
    Thread: What do you call your main controller?
Post: RE: What do you call your main controller?

Also, how can a page be a database record? Are there any examples of real projects that use codeigniter where I can see an example of what you are saying?
22,801 Views
12 Replies
11-13-2015, 09:18 AM
DreamOfSleeping
    Thread: What do you call your main controller?
Post: RE: What do you call your main controller?

Thank you for replying. I'm not sure I follow you. In your first sentence you say each page is represented by controller/index method. But then you say you have a frontend controller and a backend...
22,801 Views
12 Replies
11-13-2015, 09:01 AM
DreamOfSleeping
    Thread: What do you call your main controller?
Post: RE: What do you call your main controller?

Martin7483 Wrote: (11-13-2015, 07:39 AM) -- Are your pages going to be controllers or are they coming from a DB? -- I have a database which will store blog posts. So far the controller function is ...
22,801 Views
12 Replies
11-13-2015, 08:37 AM
DreamOfSleeping
    Thread: What do you call your main controller?
Post: What do you call your main controller?

I'm making a very simple social network, just as an exercise.  I haven't got a name for it, so for this example, lets just call it poo.com. So if I'm on poo.com the url will look something like www...
22,801 Views
12 Replies
11-13-2015, 06:39 AM
DreamOfSleeping
    Thread: Advice on views for comments system of very dynamic website
Post: RE: Advice on views for comments system of very dy...

Thanks again. "I think the most important thing is to start by building the page(s) using whatever structure makes sense to you at the time. Once you have things up and running you can evaluate the...
17,577 Views
7 Replies
07-16-2015, 11:09 AM
DreamOfSleeping
    Thread: Advice on views for comments system of very dynamic website
Post: RE: Advice on views for comments system of very dy...

I did fine this on stack overflow http://stackoverflow.com/questions/14690727/codeigniter-performance-load-view-multiple-times-vs-loop-in-view It seems that it is slower to load the view over and o...
17,577 Views
7 Replies
07-16-2015, 10:13 AM
DreamOfSleeping
    Thread: Advice on views for comments system of very dynamic website
Post: RE: Advice on views for comments system of very dy...

Thanks for replying. That sounds great. So is loading a view in codeigniter not slow performance wise?I suppose because it's called 'loading' it made me think it was something I shouldn't do over a...
17,577 Views
7 Replies
07-16-2015, 06:32 AM
DreamOfSleeping

Theme © iAndrew 2016 - Forum software by © MyBB