• Content count

  • Joined

  • Last visited

Community Reputation

48 Excellent

About chrizz

  • Rank
    Full Member

Profile Information

  • Gender
  • Location
    Berlin, Germany

Recent Profile Visitors

3,221 profile views
  1. awesome! thanks so much @adrian!
  2. Is there an easy way to enable/disable Tracy debugger via API? As I am still on my way to create test with PHPUnit it would be awesome if there's an easy way (ideally via config.php) to disable tracy if it's called from the phpunit testing scripts.
  3. Just as a heads up if someone needs database testing: I am trying a different approach at the moment: I simply added a database configuration to the config.php which is used if PW is called from PHPUnit. in config.php if(isset($_ENV['UNITTEST']) && $_ENV['UNITTEST'] == true) { $config->dbHost = 'localhost'; $config->dbName = 'db-test'; $config->dbUser = '...'; $config->dbPass = '...'; $config->dbPort = '3306'; $config->httpHosts = array('localhost'); } and my PHPUnit configuration.xml looks like this <phpunit ... some settings here ... > <php> <env name="UNITTEST" value="true" /> </php> </phpunit> maybe this will save someone a headache in the future
  4. I think these two lines would be fine. I guess you don't have the need for an additional module but maybe someone else will join the discussion with a different approach/opinion on that?
  5. Ah ok. I was afraid that I missed something But anyways: same does the module during the installation process: It adds language and country code fields to each language template. Regarding x-default, I'd recommend this for reading:
  6. @Sergio yeah, it's not that complicated - therefore I asked how you handle this before submitting a module Regarding your snippet: imho "x-default" is missing here. If you don't want you site to be listed in other languages/regions as defined than your snippets works fine but as soon as you have a default language for the world's audience this won't work. May I ask where this comes from? $language->lang_code; Maybe I have some weird old setup but this variable is empty
  7. hey there I guess a lot of you have already heard of the hreflang attribute which tells search engines which URL they should list on their result pages. For some of my projects I build this manually but now I am wondering if there's need to add this as a module to PW modules directory. How do you deal with the hreflang thingy? Would you you be happy if you can use a module for this or do you have concerns that using a module maybe does not cover your current use cases? Cheers, Chris
  8. I think this heavily depends on the use cases and the size of the project (e.g. amount of data, people involved). I am currently working on a project where I started to do everything from scratch, but then moved to PW because it saves a lot of time regarding standard functionality (e.g. permissions, login, caching, security in general). I have also worked for several companies building Saas platforms - for these kind of uses cases PW would be not the best choice. The use cases here were much to special, need a lot of DB tweaking, rely on different DB types (e.g. Elastic Search, Postgres, Lucene) and so on. If you want to save time by having standard functionality out of the box: I'd use PW. If you have enough capacity to build this on your own because you expect that you scale that fast that PW is simply the "wrong" framework: I'd think of a pure framework. But as said: It's easy to export data from PW, so this might be a third option: start with PW, scale fast, move to something else
  9. thanks for your feedback. I added the link in the post above. Don't know what went wrong during the submission process... maybe just a newbie error Thanks @adrianfor fixing it!
  10. Usually I write modules just for me and my projects because they are more or less individual. Mail Debugger is the first module which might be interested for someone else as well. Basically it covers two use cases: 1) Log outgoing emails 2) In debug mode mails are send to a specified email address instead of the original recipient(s) I checked the compatibility for PW 3+ because unfortunately I don't have any other version for testing currently. Feel free to drop me a comment if the module works also for older PW versions.
  11. yeah, that might be a approach I can test. Since I use a very comfortable way of modifying the date/time by freezing it at some point this could definitively work. Thanks for the idea of using a multi-instance
  12. I am currently developing a little application which is supposed to run on a raspberry. I decided to take advantage of PW's capabilities to deal with data not only in the sense of a common website but more as an application. I wrote a lot of modules for this and I wrote tests for some of the methods (using PHPUnit). This works fine so far for methods which are independent from database (e.g. calculating an upcoming date/time by a given schedule). Now I am thinking of extending this by writing tests also for methods which rely on data from the database (e.g. it need to be checked if something exists on that given date/time). This information is currently stored as page in PW. One of my thoughts: create necessary pages in PW for running the test and delete them afterwards. But somehow this just feels wrong. Any kind of input how you would tackle this would be great! Thanks a lot!
  13. hehe... fair enough to check for a closing tag Next time I'll promise I'll use correct markup which would have solved the problem right away. Thanks for your support
  14. @horst it doesn't have any tags (except the tags I am adding to the message manually). I tried a downgrade to 0.2.3 => no success - same problems I just installed version 0.2.5 => still no tags but the signature is there... this is what the mail content looks like (headers are removed) --3e089748ac63f63eedf33dc907a71870 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable hallo -- PLAIN blablabla --3e089748ac63f63eedf33dc907a71870 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable <strong>hallo</strong> HTML <br><br><strong>blablabla</strong> --3e089748ac63f63eedf33dc907a71870-- so it seems as if my problem has been solved - but it's still somehow weird that there are not tags... If you want me to share more details and/or sources please let me know. Would be glad if I can help you Thanks for providing this module & the support!
  15. @hellomoto I couldn't reproduce this. Which version of WireMailSmtp you're using? I am on the same PW version but I am currently struggeling with the HTML signature. Using this code, triplechecked that at HTML signature is stored in the WireMailSmtp settings, but - and thats the fun fact - it does not work within a HTML mail - but the signature is added to the plaintext. $mail = wireMail(); $mail->from($email, $name); $mail->to("", "Me"); $mail->subject('new message - '.$config->httpHost); //$mail->addSignature(true); ==> has no effect either since I chose "send signature with _every_ message" in the module settings $mail->bodyHTML($message); $mail->send(); Has this happened to anyone before? And if so: how did you solve this?