
Scott_S
Members-
Posts
40 -
Joined
-
Last visited
Profile Information
-
Gender
Male
-
Location
Milwaukee, WI
Scott_S's Achievements

Newbie (1/5)
1
Reputation
-
FYI: http://updates.html5rocks.com/2012/09/Stacking-Changes-Coming-to-position-fixed-elements
-
There use to be a ORM for CI called Doctrine, you might want to check into that. ORM conversations, whether to use one or not, can get crazy. Like discussing what is the best editor/IDE is between coders. I will never understand those heated editor flame wars, when everybody knows vim is the best ... i guess they are arguing over 2nd place.
-
I agree model/table relationship. However I occasionally have models that don't have tables. So how I would do this or actually how I do do this would be like this: quest controller: $this->load->model('quest'); $options = array('quest_id' =>$this->uri->segment(3)->, 'limit' => '1'); $quest = $this->quest->retrieve($options); quest model: this is where all the heavy lifting is done, the idea here is FAT models and SKINNY controllers Lots of code in the model, this is where having a solid MY_Model comes in to play. I have a more detailed answer but I am running late and have to go, I will post some more later.
-
I see. FYI docs come with your download/clone, unless you blew them away. The CI docs are very well organized and I find them absolutely a delight to work with. Well if this is your first rodeo with CI here are some tips: 1) your My_Controller and MY_Model classes are absolutely priceless. I use the same in every project I create. 2) file structure is rather important, for organization and security. I wouldn't use the suggested structure. Here is mine: / /application /system /public_html (doc_root) This keeps all MVC's outside of doc_root. The only thing sitting in public_html is essentially a single index.php file, css, img and js dirs. 3. htaccess is your friend! 4. turn off all debugging and error reporting for php and db stuff when going live
-
What is taking care of the relationship, your code or the db?
-
A quick cursory response: it would appear that scale is honoring your absolute positioning.
-
to understand why that is happening read up on box model http://www.w3schools.com/css/css_boxmodel.asp and to control it with box-sizing http://www.w3schools.com/cssref/css3_pr_box-sizing.asp
- 4 replies
-
- responsive
- element
-
(and 1 more)
Tagged with:
-
Which Framework For Generating Crud On A Wampserver Setup?
Scott_S replied to Jessica's topic in Frameworks
Stumbled across this today ... http://www.grocerycrud.com/ -
Alright that is closer. How about: $sql = "SELECT id FROM productcategory WHERE name = '". $pc_name . "'";
-
I am about to embark on my first web app and am curious what framework people are using and your opinions about them. These are the ones I am aware of: Backbone Ember Angular Knockout I intend to continue using jQuery for DOM but if anybody has experience with another, say Zepto or other that may be "better" suited for web apps, I would like to get your opinion on that as well. For UI stuff I like Twitter's Bootstrap and will continue to use that, I tried Foundation but I prefer Bootstrap. I am open to other suggestions. Lastly, I do not care to use a full stack solution such as jQuery Mobile, Dojo or Sencha.
-
If I understand this properly, you are having trouble here: //Define the query to grab the product category id where pc_name equals the product category name $sql = "SELECT id FROM productcategory WHERE name = '$pc_name'"; //submit the query and capture the result $result = mysql_query($sql) or die(mysql_error()); echo $result; You can use the sting literal "Augustine" and everything works. If that is the case try changing $sql = "SELECT id FROM productcategory WHERE name = '$pc_name'"; to $sql = "SELECT id FROM productcategory WHERE name = " . $pc_name;
-
look at input's value attribute
-
Geez, nice, brain dump ... oops. Never the less point driven home.