21294 Posts in 5734 Topics by 2602 members
|
Page:
1
|
Go to End | |
| Author | Topic: | 886 Views |
-
Built string in Page_Controller

22 May 2009 at 7:58am
Hey,
I'm trying to set up a website that requires some unpleasant URLs and I want to rebuild them in the controller and output them that way.
// current output
send-me-more?package=$TitleSometimes this can say pretty bad things like 'send-me-more?package=Something goes here & here' which is obviously bad, since when I pull $_GET['package'] out of the url, it stops at the &.
//desired output
$SendTitleany ideas on how to do this?
-
Re: Built string in Page_Controller

22 May 2009 at 1:00pm
well $Title would have to be escaped to convert the &'s to & which you could do in PHP with the url_encode() function. You can do this in the template by calling URLATT. eg $Title.URLATT with should convert the elements for the url.
| 886 Views | ||
|
Page:
1
|
Go to Top |


