ignace
Moderators-
Posts
6,457 -
Joined
-
Last visited
-
Days Won
26
Everything posted by ignace
-
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.
-
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"); });
-
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.
-
hiding .php (or any other) extension with .htaccess
ignace replied to Pain's topic in Apache HTTP Server
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 -
Trust me. You don't want me near Photoshop...
-
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.
-
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.
-
Because "we are getting booty!"
-
The PHP part remains a mistery
-
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>
-
If you are going to typecast to an object then do so in the constructor (or use an ArrayObject) and not in every method.
-
No wonder people do not encourage you!
-
You can't get the CSS around it? You know that CSS is: body { font-family: Arial; } right?
-
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
-
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...
-
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?
-
:birthday: :birthday: :birthday: Een gelukkige verjaardag! (happy bday in dutch! ) :birthday: :birthday: :birthday:
-
You have to be good friends with Google He practically owns the place.
-
Ah! But i am not a front-ender I just happen to know all the cool places on the net!
-
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
-
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.
-
How did I not know about that website!? You probably never heard of the http://thetoolbox.cc ?
-
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.