Jump to content

trq

Staff Alumni
  • Posts

    30,999
  • Joined

  • Last visited

  • Days Won

    26

Everything posted by trq

  1. Um, indeed you can. That is like saying PHP is useless without HTML, but you can build applications with PHP that have nothing at all to do with HTML or the web. Same goes for JavaScript.
  2. A bit OT, but what the heck... The events are just a fancy name for "hooks" really. It simply allows you to inject code into certain points in the bootstrap process. You could of course also use this same functionality within your application to make it easily extendable. A type validator (assuming your talking about the opt component) can be any function that returns a bool. To use your example: $ops = $this->setOptions([ 'user_email' => (new Option()) ->addTypeValidator('email', function($value) { return filter_var($value, FILTER_VALIDATE_EMAIL)); })->type('email') ], $options);
  3. You are kidding right?
  4. Iv'e been building a framework around 5.4 for the last 4 months or so (link in my signature). Besides the stuff that kicken mentioned there probably not a great deal more in it. I have used traits a few times but it was a bit forced and will likely be removed eventually. I'm yet to really find a strong use case for them. The built in web server has come in handy a few times as I only built 5.4's cli to start with.
  5. No, JavaScript is not at all related to HTML.
  6. Why do you need to create any actual files? PHP can generate the xml when a request is made, just as it is generally used to generate html when a request is made.
  7. That code could not produce the results you are describing. Is that the exact code?
  8. Have you checked your mail server logs?
  9. Your $pdf variable holds an instance of FPDF not PDF. Change this line: $pdf = new FPDF('P', 'pt', 'Letter'); to $pdf = new PDF('P', 'pt', 'Letter');
  10. That sounds like a permissions issue with MySql itself.
  11. The # marks the line as a comment. So you'll no # means the line is actually processed.
  12. Without code we cannot help.
  13. If you don't know what to add to your .htaccess file then you don't yet need one.
  14. As has been stated, you should be formatting your code properly yourself in the first place.
  15. And, where exactly are you stuck?
  16. Where exactly are you stuck?
  17. I'm a massive vim fan so don't really have much of an opinion when it comes to IDE's.
  18. That's because MS sux balls.
  19. Hmmm, I smell spam.
  20. There is no definitive answer, just opinion. Often the one that is well suited to your style of development and specific project requirements will be the best one to use.
  21. I used to use dynamically loading js, but it ended up being allot more efficient to put all js into one file and the minify it. Its the actual http requests to multiple files that hurts more than size. Of course it would also depend on what sizes where talking about. Loading a 50k-80k file just to use one function etc etc.
  22. Have you checked out some of the editors mentioned in this thread?
  23. This board is here for questions directly relating to already existing Third Party code. It is NOT a code repository or the place to post requests looking for specific scripts. If you can't find the script you are looking for on Google, you either don't know how to use Google or the specific script does not exist. DO NOT request help with searching.
  24. I'm not sure how that would be achieved through php. The rule is that you use a before words that start with a consonant sound and an before words that start with a vowel sound.
  25. You'll need to be more descriptive. Your example makes little sense to me.
×
×
  • 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.