Forums

shortcodes

ernst@volny.cz 09 Jan, 2020
How do I call shortcode {var: total} in custom code as $this -> .......?
ernst@volny.cz 09 Jan, 2020
Thank you very much for the instructions, sometimes it's hard to find.

Please ask for advice on how to read the id of a row in the database table in php.

in shortcoces it's {var: save_data3.aid}, but I don't know how in php ($ this -> ....). I tried $ this-> get ("save_data3.aid"); (from https://www.chronoengine.com/forums/posts/t104088/how-to-access-var-array-in-php-after-successfully-saved-to-db), but it is not working.
healyhatman 09 Jan, 2020
$this->get('save_data3.aid');
That's definitely it. What does your debug say? The return from the save data action?
ernst@volny.cz 09 Jan, 2020
I am very sorry, my fault.
I had the code by mistake before writing it to the database and therefore returned NULL 😲😲😲😲
This topic is locked and no more replies can be posted.