I’ve got a project where I’m trying to use the {segment_2} variable as a parameter in a PHP script within a template. From what I can tell, using the URI Class $this->EE->uri->segment(2); is the way to do this. However, when I try to load the page with that code in the template, it resolves to a HTTP 500 error.
There weren’t any docs about whether you can do this or not, so I’m a bit lost as to where I’m going wrong.
EDIT: I’ve tried a couple things and it looks like it’s conflicting with my AWS SDK I’ve got on the page for which there is probably nothing I can do on EE’s end.
Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.