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

$TMPL global variable is empty

Development and Programming

mweichert's avatar
mweichert
68 posts
16 years ago
mweichert's avatar mweichert

Hello,

When an action of my module gets called, all globals are populated except $TMPL, which is empty.

Any idea what could cause this? :/

Thanks, Mike

       
Robin Sowell's avatar
Robin Sowell
13,160 posts
16 years ago
Robin Sowell's avatar Robin Sowell

Yep- take a look at core.system.php- action requests branch off before calling the template class. Basically.

// ----------------------------------------------
//  Process the request
// ----------------------------------------------

switch (REQ)
{
    /** ---------------------------
    /**  Action Requests
    /** ---------------------------*/

    case 'ACTION' :
                          
            require PATH_CORE.'core.actions'.EXT;
            
            $ACT = new Action();
        break;
        
    /** ---------------------------
    /**  Page Requests
    /** ---------------------------*/
        
    case 'PAGE' : 
etc... including template class
       
creativearc's avatar
creativearc
49 posts
16 years ago
creativearc's avatar creativearc

I’m having the same issue. I’m trying to create a form that re-orders the search results, so I have to run the results again, but I’m losing all the $TMPL->tagdata. How can I get the tagdata that I need?

       

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.