Jump to content

dardub

Members
  • Posts

    26
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

dardub's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. Check this out: http://alanstorm.com/magento_controller More and better information than I could give.
  2. So from your experience, out in the real world is an existing site not likely to be updated to a newer library until for some reason it becomes absolutely necessary? In which case the application would require being rebuilt if the newer changes are too drastic?
  3. I'm just starting to learn about zend framework. I was wondering about after you build an application in say zf 1.10. And a couple years later they come out with zf 2.0. How easy and what is the process to upgrade? Do people usually just build an application using one version of a framework and leave it? Is it a mess to use vendor branches in svn? Just from looking at my somewhat outdated book between versions 1.8 to 1.10 there definitely many calls to functions that need to be changed.
  4. Well I started working on Magento and then I realized how helpful it will be to learn zf first. I'm still just learning zf now. At least you're going in the right order which definitely helps. I didn't get a choice in what cart to work with, so I don't know if any are better. But magento although frustrating at times is set up to do a lot. I'm not 100% sure since I'm new to both, but there is heavy customization in Magento. So there will still be a learning curve, but you have a good head start!
  5. Yes, I figured creating a separate table for file paths was the best option. I was trying to make it simpler for the op, but I maybe was just reinforcing bad habits.
  6. Teddy, I just strarted reading this book: http://www.amazon.com/Object-Oriented-Thought-Process-3rd/dp/0672330164/ref=sr_1_1?ie=UTF8&s=books&qid=1272075133&sr=8-1 Its about object oriented design, and it tries to stay away from coding as much as possible, just to explain the theory behind OOP and MVC. I'm still a novice programmer, but I've recently started playing around with different frameworks. Looking at how everything is organized and implemented is very helpful. I just got this book today as well: http://www.amazon.com/Practical-Web-2-0-Applications-PHP/dp/1590599063/ref=sr_1_1?ie=UTF8&s=books&qid=1272075358&sr=1-1 I haven't read it yet, but it had some good reviews on amazon. It teaches you how to build php web applications. I guess most of the examples are using zend framework. But yeah, I think learning a framework that uses mvc would be the best way to go about it.
  7. I guess I a reason I was hesitant to use the windows server for svn is because I didn't set up either of the local servers. For one I am afraid of screwing something up on our domain server, and also I don't know how easily I'll be able to connect to the repo on the windows server from the linux testing server.
  8. First of all, it looks like in your database, you only have one field for one image. So either that field would contain a string of all 6 image paths, or you would create 6 fields for each row, or you could create another table just to store the image paths. If you will always have 6 or less files to upload. In your form you would have 6 inputs with different names instead of only user. So the form would have: <input type="file" name="image1" /> <input type="file" name="image2" /> //etc. If you're going to put all your file paths in one field, your php file would be: $filename .= $_FILES['image01']['name']; $filename .= $_FILES['image02']['name']; //etc. I guess it just depends on how you want to store your data in the db. I'm a novice too, so hopefully I didn't steer you in the wrong directions.
  9. @Roopert Sorry, I meant Visual SVN not Virtual SVN. That's definitely a confusing statement. Visual SVN is an svn server for windows if you're not aware. Yes, I don't see the point in stopping version control because you are working with other developers. That's one of the reasons I want to use svn, is to work with other developers. I initially wanted to put the repo on the testing server because it's local and behind a firewall, but I understand how putting something that valuable on a potentially unstable server can be hazardous.
  10. Thanks for the advice. I don't think we'll have a problem with accidentally working on the wrong copy. However, if more people start working on it, then yes it could get messy.
  11. The other local server we have is a windows domain server with a local and offsite backup. Would you recommend using the windows server with virtual svn server? Or putting svn server on our staging server?
  12. Let me know if I should start a new thread. I was working on other things, but I'm slowly working out what to do about svn today. So right now we have a remote production server and staging server. We will soon have a local linux testing server up and running. My thoughts were to have the svnserver and host the repository on the local testing server. I have some more specific questions now. Would there be a problem with developing on the working copy on the local testing server? I'm working with Magento, and it does not work too nicely with windows, from what I'm experiencing. And I'd rather not make us switch to linux on our desktop machines (partly because we use adobe cs). At the moment there are only two of us making modifications to the site. I suppose I'm still a little cloudy on some aspects. Is the following something that could work? 1. Testing is a working copy of the trunk in the www dir on the local testing server. 2. Manual testing is done and necessary changes are made. 3. Create a tag and name the folder accordingly (release-1.1.0 or whatever) 4. Checkout the current tag into the staging server public directory, import newest db. 5. Perform manual testing. 6. After testing has passed, use rsync to update production server, excluding .svn directories, cache, etc.. Anyone see a problem with having multiple working copies in the www testing directory. One working copy for each individual (2 of us ATM)? Sorry if my explanation doesn't make sense. I was thinking out loud when I wrote this, and was making changes along they way.
  13. dardub

    OOP Help

    Thanks for the info Nightslayer. The code made things a little more clear. I already changed everything to a 2d array yesterday since I just needed to pass the id and qty for each item. One question, I'm not sure the best way to set the id and qty for the motherboard for the code you showed: would i do something like: private $itemId; private $itemQty; public function setMobo($id, $qty){ $this->motherboard->itemId = $id; $this->motherboard->itemQty; = $qty; } Or is there a more general way?
  14. dardub

    OOP Help

    @ignace, lol, no I'm not serious. I was just using as an example as I mentioned. You're trying too hard to be a nerd.
  15. dardub

    OOP Help

    Yeah, as I thought about it more, I couldn't justify a reason to use it as an object. I'm sure I'll get my chance to create some new classes some day.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.