Jump to content

ignace

Moderators
  • Posts

    6,457
  • Joined

  • Last visited

  • Days Won

    26

Everything posted by ignace

  1. Look at https://github.com/proem/proem/blob/develop/lib/Proem/Api/Signal/Event/Standard.php https://github.com/proem/proem/blob/develop/lib/Proem/Api/Signal/Manager/Standard.php For an example hook system. This has been developed by one of our members: thorpe. If you want to be able to stopPropagation aswell then take a look at https://github.com/zendframework/zf2/blob/master/library/Zend/EventManager/Event.php https://github.com/zendframework/zf2/blob/master/library/Zend/EventManager/EventManager.php Both have many similarities except for the stopPropagation.
  2. If your template variable is called $template then pass it through use() $hook->register("hi", function() use($template, $hook) { $template->add("CONTENT", "Hello! I Am A Blog"); }); Or make sure to pass it when calling call_user_func(); $hook->register("hi", function($template) { $template->add("CONTENT", "Hello! I Am A Blog"); });
  3. Hello and welcome! Browse through the PHP Coding Help section of the forum and look at some problems people have posted, try to answer some, and look at what others gave as a solution. Be particularly attentive when a member with a Guru/Alumni/Moderator/Admin/.. badge posts a response. These members have been hand-picked for their expertise in one or more area's.
  4. http://newmediarts.blogspot.be/2007/01/hide-file-extensions-in-urls-with.html RewriteEngine on RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME}\.php -f RewriteRule ^(.*)$ $1.php
  5. Trust me. You don't want me near Photoshop...
  6. Thank you Philip exactly the kind of information I was looking for. I'll be sure to reference you when I purchase I also found a designer willing to sell one of his design on his portfolio matching my needs for 250.
  7. What do you charge avg/max for a website design? I want a proper design for my own finances system, and I want to hire someone to design it for me, but it's just a side-project so I don't feel like investing 2000+ on it. Before I am going to post in the freelance section I would like to know what to expect.
  8. Because "we are getting booty!"
  9. For future reference: you can also use a backslash as demonstrated by h5bp @ https://github.com/h5bp/html5-boilerplate/blob/master/index.html: <script>window.jQuery || document.write('<script src="js/vendor/jquery-1.7.2.min.js"><\/script>')</script>
  10. If you are going to typecast to an object then do so in the constructor (or use an ArrayObject) and not in every method.
  11. No wonder people do not encourage you!
  12. You can't get the CSS around it? You know that CSS is: body { font-family: Arial; } right?
  13. If you don't have a bachelor's degree but you are, like kicken, over-qualified, just list one. The end justifies the means. At least it might get you in the job interview room. They are not going to fire you because you lied on your interview if you have been delivering good work so far. Just hope they don't find out on day one
  14. Well it works in both cases. At least when I tried it. HTML5 boilerplate has had it, I think. I have been wondering about this for years as to why you need to do that. Only recently did I have the courage to go and try to find an explanation on the internet. But nothing has yet turned up, implied knowledge it seems or many are just using it without knowing what it's for...
  15. Anybody here that can tell me why you need to write: file_put_contents('file.php', '<' . '?php ..'); document.write('<' + 'script>..</script>'); Instead of just writing <?php and <script ? It works without the concat, so why do I see it in some scripts? I tried Googling but it does not take symbols into account. Anyone of you guys know?
  16. :birthday: :birthday: :birthday: Een gelukkige verjaardag! (happy bday in dutch! ) :birthday: :birthday: :birthday:
  17. You have to be good friends with Google He practically owns the place.
  18. Ah! But i am not a front-ender I just happen to know all the cool places on the net!
  19. Maybe it's an idea to create a thread or something to add useful links like thetoolbox ? Or should we just attach our bookmarks to a post LOL
  20. If you don't have access to PHP 5.4 you can also try: https://github.com/robap/php-router If you are not satisfied by that then search for "php router" you'll find a few on google.
  21. How did I not know about that website!? You probably never heard of the http://thetoolbox.cc ?
  22. Create the missing functions createAuthCode, getClient, createAccessToken, ... in OAuth2StoragePdo or download an works-out-of-the-box OAuth handler instead of the one you currently have. If you only need the consumer try Zend.
×
×
  • 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.