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

Passing parameters to PHP in templates

Development and Programming

sherpanaut's avatar
sherpanaut
58 posts
14 years ago
sherpanaut's avatar sherpanaut

Hi I am currently trying to break up a huge php script into a series of templates so that they can be accessed quickly, but am trying to figure out how I can pass values to them using something other than URL segments. Usually with PHP you can just call the script and pass in extra parameters which are seen as request headers, e.g. filename.php?task=a&subtask=b&subsubtask=c

Is there a way to do this when calling ee templates? I need these templates to be called by ajax posts and gets, if anyone is interested in the reasoning behind this.

[Mod Edit: Moved to the Development and Programming forum]

       
sherpanaut's avatar
sherpanaut
58 posts
14 years ago
sherpanaut's avatar sherpanaut

Any ideas? I need to get this working ASAP so if anyone can help I’d appreciate it.

       
sherpanaut's avatar
sherpanaut
58 posts
14 years ago
sherpanaut's avatar sherpanaut

Sorted it out, turns out I just had a simple enough syntax error and had set my error reporting to be off.

       

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.