Jump to content


  • Posts

  • Joined

  • Last visited

  • Days Won


Posts posted by pwired

  1. Quote

    Powered with Bootstrap 5 it might be a game changer for me

    I always sticked to the golden rule: keep code separated from layout and it always served me very well.
    Funny how fashions like tailwind and the ever next bootstrap invite people to break with the golden rule
    and mix code again with layout


    Unpoly 2 is promised to be released soon

    Ajaxify is already replacing parts of a page without reloading the whole page for a long time and does it very easy

    • Like 1
  2. Quote

    For years I called myself a web developer, without really knowing much JavaScript.

    Good point, as many took the road without javascript like me. Lately I am catching up with "talking to the server without page reload" (ajax - XMLHttpRequest)

    I left treehouse and moved to udemey.com as I experience them more professional/friendly and they have a lot of offers.


    • Like 3
  3. Hi,

    To find the root url of a website we can use the processwire api

    I am looking for a php way to get the root url of a website (so not with the api)

    I have not found a clear solution for it on php.net and neither on stackoverflow

    This is the best I could find:

    $protocol = empty($_SERVER['HTTPS']) ? 'http' : 'https';

    // example php code for http

    $root_url = "http://".$_SERVER['HTTP_HOST'];
    $root_url .= str_replace(basename($_SERVER['SCRIPT_NAME']),"",$_SERVER['SCRIPT_NAME']);

    So far this works but I am not sure if this is the real php fool proof way.

    Does anyone know of a php fool proof way to get the root url
    that works for localhost and online site ?



  4. Looks like you bumped into a Laravel coder who does not know Processwire.
    Why don't you first ask for guidance in the forum ?
    What do you mean by:  I want to setup a directory ?

    • Like 4
  5. Seeing all those frameworks popup one after the other - sure they all look interesting but are they really worth it ? Tailwind ?  .... Alpine over Vue ..... ? Jquery or plane javascript / css / php  do the job in 95% of all my cases. Do your website projects really need the new kid on the block ?

  6. Quote

    Wanted to ask the community how do you handle this? 

    I split projects in the use of xml based databases and mysql databases.
    With xml everything flies even on cheap crap shared hosting.
    I use Processwire for serious projects with decent hosting.

    • Like 1
  • Create New...