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

Deleting Template Variables and their files with Model

Developer Preview

Low's avatar
Low
407 posts
9 years ago
Low's avatar Low

When using

$variables = ee('Model')->get('GlobalVariable', $id)->delete();

…should I expect that the GlobalVariable files are deleted as well? Because right now, they are not (EE3.1.2).

       
Derek Jones's avatar
Derek Jones
7,561 posts
9 years ago
Derek Jones's avatar Derek Jones

Yes; working for me. Does deleting them in the template manager delete the file as it should? Are permissions correct on the directory and file?

       
Low's avatar
Low
407 posts
9 years ago
Low's avatar Low

So they are! Move along now, nothing to see here… 😉

       

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.