Hello World in Codeigniter and Jquery
Uploader Comments (ConnorAlves)
Top Comments
-
Why would you put a javascript-string in a Model? Model's are to be used to retrieve data from databases, XML, etc.
All Comments (18)
-
@MrDdeell eclipse
-
@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.
-
this guy voice is annoying.
-
can i ask what text editor is that? =]
-
Quite an effort to get a white page.
-
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...
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
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