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

$this->EE->functions->redirect and template group / template

Development and Programming

funnEE's avatar
funnEE
94 posts
14 years ago
funnEE's avatar funnEE

Hi All, Could you help me with the php EE redirect code and using template groups / templates.

$this->EE->functions->redirect(template_group/template)

I can’t seem to find an example in the docs. Thanks

       
the3mus1can's avatar
the3mus1can
426 posts
14 years ago
the3mus1can's avatar the3mus1can

Try this:

$this->EE->functions->redirect($this->EE->functions->create_url('template_group/template'));
       
funnEE's avatar
funnEE
94 posts
14 years ago
funnEE's avatar funnEE

That works! Thanks so much, Dave

       
swarm's avatar
swarm
4 posts
9 years ago
swarm's avatar swarm
Try this:
$this->EE->functions->redirect($this->EE->functions->create_url('template_group/template'));

Can I pass data to the template with this?

       
WernerLouw's avatar
WernerLouw
1 posts
9 years ago
WernerLouw's avatar WernerLouw

Hi there.

Is there a way to use the above and pass custom data to the template?

Something like this->EE->functions->redirect($this->EE->functions->create_url(‘template_group/template’),$AddedDataArray);

Regards

       

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.