We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

For my Education Only - Passing PHP Variables (or Fresh Variables) to Extensions

Development and Programming

JohnD's avatar
JohnD
114 posts
17 years ago
JohnD's avatar JohnD

I have tried to pass PHP Variables to an extension I am writing, but have been unsuccessful.

For example, let’s say I have a PHP variable:

“pass_this_var” => “whatever”,

In the extension I write:

<?php $whatever = ‘{pass_this_var}’; ?>

This returns {pass_this_var} and not the contents of the variable.

Am I right in assuming that this is because the extension has no way of parsing variables, or am I just not “getting” how to do this?

Thread Moved by Moderator

Edit: OK - I’m an Idiot -capital “I.” Here I am asking about PHP variables to be passed to a PHP routine - must be a gazillion ways. Forget I asked! Please?

       

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.