helmut2509

Members
  • Content Count

    107
  • Joined

  • Last visited

Community Reputation

9 Neutral

About helmut2509

  • Rank
    Sr. Member

Recent Profile Visitors

1,377 profile views
  1. helmut2509

    thanx for the tip. I will try this.
  2. helmut2509

    Hello, I am just going to write a class to process data in my pw app. My question: where should I store the class files? should I use a separate directory? Or should I integrate the class in a module? there are certainly different approaches and I am not sure which one to use... thanx for your help.
  3. helmut2509

    I use $view->render , where $view is the instance of a template.
  4. helmut2509

    thanks. I guess the bug is most probably related to a multiple including of a script.
  5. helmut2509

    I checked the entire project folder: there is only ONE declaration of this function!
  6. helmut2509

    When calling a page, I get the error (logged in /logs/errors.txt):"Cannot redeclare myfunction..(previously declared in...)" It seems there is a second declaration of this function, but where? I already added the namespace Processwire and switched off template compiling, but to no avail. (PW version 3.0.42) any ideas?
  7. helmut2509

    $view is an instance of \ProcessWire\TemplateFile
  8. Hello, I just found out that, when passing a (numeric) zero with "$view->myVar=0" to a template then the corresponding template variable $this->myVar is empty, it has no value. This even occurs when I convert the value to a string: (string) 0 Strings and numeric values other than zero are handled correctly. I think this is a bug which should be fixed?! regards, Helmut
  9. helmut2509

    thanks for the tip. In my google search result the above link did not appear ;-((
  10. In my PW app I have now a php script which caters to the upload of files. It does not directly belong to the UI and therefore I did not store it in the templates folder, but in a custom folder. My question is: how do I get access from this script to the Pw API? Can I leave it in the custom folder?
  11. helmut2509

    you are right, I have made a stupid error. thanx, guys!
  12. helmut2509

    In the function I wrote wire('session')->set('number', '12345'); and outside the function I tried : echo $session->number ...but this variable was empty....
  13. helmut2509

    Hello, I want to use the $session variable in functions, inside a template. According to the API this variable is available only in templates. But all values of the $session variable get lost, even when I use 'global $session'. is there any workaround for this problem?
  14. helmut2509

    I found it: there was still another dll-entry in the php.ini I had to comment out. Now it works like a charm. But I still do not understand, why and where these components have been referenced and why this error occurred simoultaneously with a json syntax error...and only sporadically. very strange!
  15. helmut2509

    This is my code: if(!isset($session->sprachen)){ $action = 'fetchdata/sprachen'; $resultJson = sendData($webserviceUrl,$action,$params); echo "sprachen vom webservice:".$resultJson.'<p>';//correct json string. after the string comes //the error message "Unable to load dynamic library '/usr/lib/php/20151012/php_openssl.dll'" $session->sprachen = json_decode($resultJson,true); echo "json-error-code-sprachen=".json_last_error().'<p>';//here json error 4 occurs (syntax error?!) echo "sprachen22:<pre>";print_r($session->sprachen);echo " count-sprachen=".count($session->sprachen)."</pre>";//$session->sprachen is empty! }