Jump to content

zoeck

Members
  • Posts

    393
  • Joined

  • Last visited

  • Days Won

    2

zoeck last won the day on July 6 2022

zoeck had the most liked content!

2 Followers

About zoeck

  • Birthday June 12

Profile Information

  • Gender
    Male
  • Location
    Bavaria, Germany

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

zoeck's Achievements

Sr. Member

Sr. Member (5/6)

334

Reputation

  1. Thanks Bernhard, now the Ajax endpoints also work with .latte as file extension. 🙂 👍
  2. Okay, that's weird… I tested it in my DDEV environment: Created the following Folder/files: templates/ajax/zeitbuchung/ajaxtest.php -> working templates/ajax/test.php -> working templates/ajax/test2.latte -> not working, Error 404 Content of the files is only "test" Checked the URLs in the Rockfrontend Config: Then testet the Endpoint /ajax/test2.l Working -> Endpoint: /var/www/html/site/templates/ajax/test2.latte /edit found the problem: // RockFrontend.module.php private function ajaxEndpoints(): array [..] // attach hook for every found endpoint [..] $url = $baseurl . substr($endpoint, strlen($folder), -4); The -4 is the problem 🙂 https://github.com/baumrock/RockFrontend/commit/064e37c0bfd4f9ae8377ae122e1b5426b18d52ee#diff-8223503ce304ec3ee54457dad412baf3a6f8701f67cd6fce3422de398e68907aR667
  3. Hello Bernhard, extremely nice feature! I need just such a function 🙂 I only noticed one small thing, in the documentation it says that it must be a PHP file in the AJAX directory, in the Rockfrontend Config it says the following: I also tried it with a .latte file and that didn't work. Is this function still missing or is this just a wrong text? Thank you for your great modules!
  4. You can use Google Translator Bar, but the result is usually much worse than that of the suggested Fluency with Deepl https://www.w3schools.com/howto/howto_google_translate.asp
  5. You can use the WireDatabasePDO class 🙂 https://processwire.com/api/ref/wire-database-p-d-o/
  6. Does the module actually do the same thing as the ‘FEEL module’ or are there big differences? It reads relatively the same to me.
  7. Oh, that's really bad. Don't you have the hybrid option from deutsche telekom? I live in a village with only 1500 inhabitants and could order 250mbit/s immediately (but currently have 100Mbit/s). I'm currently waiting for my fiber line, which is already in the sidewalk in front of the house (up to 1000Mbit/s). It's hard to believe that there are such extreme differences in the country.
  8. Go to the first post in this thread, click on the „…“ on the right side -> edit - and then edit the title ?
  9. Just edit the thread title and add [solved]?
  10. Now I have finally switched from Laragon (Windows) to DDEV (WSL2). My first attempt some time ago was not very successful, but this time everything worked straight away. However, I need a "special" feature for my project: sqlsrv/pdo_sqlsrv as a PHP extension for the connection to an MSSQL server That was a minor challenge at first, then i found some older scripts on Stackoverflow, but unfortunately they no longer worked. Here is a short guide on how to use sqlsrv (incl. msodbcsql18) with DDEV: Create a "Dockerfile" and a "install_sqlsrv.sh" inside of the .ddev/web-build folder Dockerfile: ARG BASE_IMAGE FROM $BASE_IMAGE COPY install_sqlsrv.sh /var/tmp/ RUN apt-get update && DEBIAN_FRONTEND=noninteractive sudo apt-get install -y -o Dpkg::Options::="--force-confold" --no-install-recommends --no-install-suggests gcc make autoconf libc-dev pkg-config php-pear php-dev RUN /bin/bash /var/tmp/install_sqlsrv.sh install_sqlsrv.sh: #!/usr/bin/env bash export DEBIAN_FRONTEND=noninteractive # Install sqlsrv drivers. export PHP_VERSIONS="php8.1 php8.2 php8.3" # Note: Only works for PHP 7.0+. export PHP_SUFFIXES="8.1 8.2 8.3" OS=$(grep -P '(?<=^ID=)' /etc/os-release | cut -c 4-) VERSION=$(lsb_release -rs) if [ ! -f /etc/apt/sources.list.d/mssql-release.list ]; then curl -fsSL https://packages.microsoft.com/keys/microsoft.asc | sudo gpg --dearmor -o /usr/share/keyrings/microsoft-prod.gpg curl https://packages.microsoft.com/config/debian/12/prod.list | sudo tee /etc/apt/sources.list.d/mssql-release.list fi sudo apt-get update sudo apt -y update for v in $PHP_VERSIONS; do sudo apt-get install -y "$v" "$v"-dev "$v"-xml done if [ ! -d /opt/microsoft ]; then sudo ACCEPT_EULA=Y apt -y install msodbcsql18 mssql-tools sudo apt -y install unixodbc-dev echo 'export PATH="$PATH:/opt/mssql-tools18/bin"' >>~/.bash_profile echo 'export PATH="$PATH:/opt/mssql-tools18/bin"' >>~/.bashrc fi for v in $PHP_SUFFIXES; do sudo pecl -d php_suffix="$v" install sqlsrv sudo pecl -d php_suffix="$v" install pdo_sqlsrv # This does not remove the extensions; it just removes the metadata that says # the extensions are installed. sudo pecl uninstall -r sqlsrv sudo pecl uninstall -r pdo_sqlsrv done for v in $PHP_SUFFIXES; do sudo bash -c "printf \"; priority=20\nextension=sqlsrv.so\n\" >/etc/php/\"$v\"/mods-available/sqlsrv.ini " sudo bash -c "printf \"; priority=30\nextension=pdo_sqlsrv.so\n\" >/etc/php/\"$v\"/mods-available/pdo_sqlsrv.ini " sudo bash -c "chmod 666 /etc/php/"$v"/mods-available/*sqlsrv*.ini" done sudo phpenmod sqlsrv pdo_sqlsrv ddev start -> Aaaand BAM! Everything is working ? DDEV is simply great to use once you know how.
  11. I think he means the "ProcessWire Weekly #519" Newsletter ? This does not come from Ryan but from @teppo
  12. Did you use the "$cache->save()" method? So something like this: $cache->save("test", $consultants, 3600); // get single cache value $str = $cache->get('test');
  13. There is a paid module for this, called Media Manager https://processwire.com/talk/forum/67-media-manager/ Unfortunately, the purchase page is currently in maintenance mode, but i think you can also contact @kongondo directly
  14. Nice module! An "autoclose on save" function would still be good ?
  15. Did you take note of this information from the module description?
×
×
  • Create New...