@ConnorAlves Conner, you sound a bit young here and so I'm going to assume you're also relatively inexperienced. The point of an MVC framework is to SEPARATE the data access from the business logic and the user interface. jQuery is naturally part of the UI. So, to put UI code in your model is fundamental against the point of the MVC architecture, so I'd have to argue that in this case it's not simply programmer opinion.
and thats the code igniter opinion : It's an MVC framework. Model, View, Controler. The Jquery part didn't get into the the Model nor the Controler...
no, if you put it at the bottom of the document the content will load before the script so users can read the text befor waiting for the script to load, although if you're usin g an image preloader or similar you need it to be in the head section.
I am just now beginning to work with Code Igniter. How did you begin to learn Code Igniter? Did you just start with the documentation or is there a better resource out there?
Also, is there good documentation somewhere out there for Code Igniter + jQuery integration?
Sorry about taking so long for this reply. I don't remember if I already sent you a PM, but I will now say this for everybody else so that they will know.
Anyway, I first started off obviously learning normal PHP by only using books and youtube tutorials (like these). I then went on to search for a framework, and when I found Codeigniter and saw their tutorial vids on their website, which were straight forward and easy to use. What I liked the most about CI was its ease of use...
So from there I started to code a few websites/web apps using the framework, and the two most helpful CI resources from there were the documentation wiki, and the forum. The wiki was helpful for seeing all the functions and parameters to do the main functionality, but when I found any error or had a question I used the forums. The forum members reply in a very timely manner and are usually very helpful. There are many thousands of posts on the forum, so MOST of your questions will be there.
Lastly, thank you for the comment, and now that my school work is winding down a small bit I will have some time to post more videos for this series. Please stick around for the rest of this series!
This has been flagged as spam show
Wrong wrong wrong.. don't put it in the model
Banzaci 2 months ago
Comment removed
phpciphreak 1 year ago
this guy voice is annoying.
alexanderssson 1 year ago
can i ask what text editor is that? =]
MrDdeell 1 year ago
@MrDdeell eclipse
thekunzilla 11 months ago
Quite an effort to get a white page.
hiphop242 2 years ago
You shouldn't put an Jquery code inside the Model ! It should be in the view. It's very messy to do like that.
lapin777 2 years ago 10
Well, that's the programmer's opinion, I just so happen to do it like this in the tutorial.
ConnorAlves 2 years ago
@ConnorAlves Conner, you sound a bit young here and so I'm going to assume you're also relatively inexperienced. The point of an MVC framework is to SEPARATE the data access from the business logic and the user interface. jQuery is naturally part of the UI. So, to put UI code in your model is fundamental against the point of the MVC architecture, so I'd have to argue that in this case it's not simply programmer opinion.
3dSorcery 1 year ago 3
kid out there?
bindaassbhopu 2 years ago
and thats the code igniter opinion : It's an MVC framework. Model, View, Controler. The Jquery part didn't get into the the Model nor the Controler...
lapin777 2 years ago
Why would you put a javascript-string in a Model? Model's are to be used to retrieve data from databases, XML, etc.
RealAdestro 2 years ago 6
Something struck me as odd. =) Although this is functional, isn't it better practice to place the SCRIPT within the document HEAD?
iankp 2 years ago
no, if you put it at the bottom of the document the content will load before the script so users can read the text befor waiting for the script to load, although if you're usin g an image preloader or similar you need it to be in the head section.
mewhoshallnotbenamed 2 years ago
Thanks! that's really helps :D
dittonara 2 years ago
Hi Connor -
I am just now beginning to work with Code Igniter. How did you begin to learn Code Igniter? Did you just start with the documentation or is there a better resource out there?
Also, is there good documentation somewhere out there for Code Igniter + jQuery integration?
Thank you sir for the great tutorials!
_Mike
starchildExcalibur 2 years ago
Sorry about taking so long for this reply. I don't remember if I already sent you a PM, but I will now say this for everybody else so that they will know.
Anyway, I first started off obviously learning normal PHP by only using books and youtube tutorials (like these). I then went on to search for a framework, and when I found Codeigniter and saw their tutorial vids on their website, which were straight forward and easy to use. What I liked the most about CI was its ease of use...
ConnorAlves 2 years ago
So from there I started to code a few websites/web apps using the framework, and the two most helpful CI resources from there were the documentation wiki, and the forum. The wiki was helpful for seeing all the functions and parameters to do the main functionality, but when I found any error or had a question I used the forums. The forum members reply in a very timely manner and are usually very helpful. There are many thousands of posts on the forum, so MOST of your questions will be there.
ConnorAlves 2 years ago
Lastly, thank you for the comment, and now that my school work is winding down a small bit I will have some time to post more videos for this series. Please stick around for the rest of this series!
ConnorAlves 2 years ago
right ... i cant find part 2??? where is it?
nickoooname 3 years ago
what program do you use to record the screen?
abar40 3 years ago
I usually use iShowU to record the screen on the mac because it has good customization and is optimized for youtube videos.
I think that it is payware though, but I don't remember.
ConnorAlves 3 years ago