Thrillerek Posted August 17, 2015 Share Posted August 17, 2015 Yeah, still getting used to the new version. I tried the following code:/* !Hook Data - DO NOT REMOVE */ public static function hookData() { $test_var = 'a test value'; return array_merge_recursive( array ( 'profile' => array ( 0 => array ( 'selector' => '#elProfileInfoColumn > div.ipsAreaBackground_light.ipsPad', 'type' => 'add_inside_start', 'content' => '{template="test_template" group="plugins" location="front" app="test_app" params="$test_var"}', ), ), ), parent::hookData() ); } /* End Hook Data */Well, this gives me an error saying that the variable $test_var doesn't exist. So how can I achieve this? Link to comment Share on other sites More sharing options...
Thrillerek Posted August 18, 2015 Author Share Posted August 18, 2015 Bump. Link to comment Share on other sites More sharing options...
Thrillerek Posted August 19, 2015 Author Share Posted August 19, 2015 Bump. Link to comment Share on other sites More sharing options...
Thrillerek Posted August 19, 2015 Author Share Posted August 19, 2015 Bump. Link to comment Share on other sites More sharing options...
Adriano Faria Posted August 19, 2015 Share Posted August 19, 2015 You can't do this. You'll need to extend any other file to pass your php variables/functions. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.