Jump to content

alexweber15

Members
  • Posts

    238
  • Joined

  • Last visited

About alexweber15

  • Birthday 12/31/1983

Contact Methods

  • Website URL
    http://www.alexweber.com.br

Profile Information

  • Gender
    Male
  • Location
    Brazil

alexweber15's Achievements

Member

Member (2/5)

0

Reputation

  1. I'm all for building it yourself! I've been in a similar situation in the past, where using a CMS seemed like overkill. That said, depending on your experience, some frameworks might be a bit intimidating at first (took me a while to get used to Zend Framework for example). Cake looks nice and I've been wanting to try it, I say go ahead and try some of the available tutorials to see if you feel comfortable with it. One thing you want to keep in mind when building it yourself is planning... try to figure out exactly what you need and how it will come together before diving in so you don't end up having to redo something or even worse create kludges that will bite you in the ass down the road! On the other hand, with a CMS you can be really experimental and reorganize things a lot along the way.
  2. thanks ill give it a shot
  3. If you make your own autoloading function, there will not be used any fallback. So basically if I have no autoloader expilcitly defined but I define spl_autoload_extensions() then the fallback will look in my include_path for corresponding files with the defined extensions?
  4. I realize that! I've changed it to use: <class name in lowercase>.class.php and <class name in lowercase>.php But in my include statement in my autoloader i still end up having to manually specify the extension if not it doesnt find my classes....
  5. I realized this will be an issue I could potentially have in other parts of my application so I decided to include Zend_Registry and use it to share object instances between classes in my application
  6. I'm trying to figure out what's the point of this function!! I registered the extensions I'm using ('.class.php,.php') and correctly set up my include path but the I get warnings saying that "path/to/file" can't be found. (even though the class is located in path/to/file.class.php) I also use some 3rd party components that are named "file.php" so I've got to account for both. Now, I've figured it out and my autoloader works fine, but I'm really just wondering what's the point of spl_autoload_extensions if I have to manually specify the extensions myself?? The more intuitive approach would be that you could leave out the extensions and it would automatically search for both types right?
  7. Hey DjKat thanks for the feedback! I totally agree with you and personally I don't use Smarty at all but, at the end of the day, I don't have much of a choice in this department! The rest of the developers on the team are very enthusiastic about it and all the templates are ready to begin with! So really whether I like it or not we're using it! I'll read up on Zend_Layout and hopefully it will point me in the right direction!
  8. We're in the process of rewriting our biggest app MVC-style. The code is a complete mess but the one solid thing is the templating done with Smarty, so we want to stick with it. I don't really have any Smarty experience and I'm not sure how to properly implement it in the MVC context; what's better? - Instantiate the class every time its needed (ie the controllers)? - Instantiate the class once during the bootstrap process and pass it as a parameter to the controllers? (right now its a global variable, which afaik isn't ideal) thanks!
  9. Thanks for the reply Garethp, that's pretty much what I'm doing. And to avoid out of bounds errors: I was hoping someone out there already had this problem and created an awesome class so I wouldn't have to do it myself!
  10. Hi, I'm working on a project with data that is represented as a n*n matrix. Its easy enough to do this using a multidimensional array but the catch is that I need to be able to check adjacent squares and other grid-like functionality. Again, I've managed to bypass this using arrays but its kind of annoying. So I ask: Is there some kind of grid data structure that anyone can recommend? With native implementation of stuff like checking squares above, below, etc? Thanks!
  11. hey wow you really dug this one from outta the grave eh! lemme catch up and ill reply in a bit!
  12. I've beta testing a website using htpasswd to protect the directory but I rely on 3rd party tools to generate user & password combinations and I don't like that. Some places say it's md5, others crypt() and others say its a specific apache md5 version but at the end of the day I haven't been able to emulate it... Can anyone shed some light please so that I can generate my own username & password combinations without relying on a third-party website? Thanks! Alex
  13. thats pretty sweet oh and Roadside looks nice too thanks!
  14. thanks for the replies and that's kind of what I was expecting to hear! I've read up on Smarty in the past and done a few small things but there was always a lot of business logic going on specially when passing objects to the view...
  15. I don't see how databases relate to web servers. Database servers or even simple database engines like sqlite in no way depend on a http server being present. what I mean for mysql for example it would require the client to have a local mysql server, which isn't that common outside of the developer world so unless you use a flatfile or sqlite which can be bundled easily it would be a problem afaik
×
×
  • 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.