This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // get the Content JTable | |
| $content = JTable::getInstance('Content'); | |
| // set the id you want to delete | |
| $content->load((int) $contentId); | |
| // call delete method | |
| $content->delete((int) $contentId); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // get the J2Store Products Model | |
| $productModel = F0FModel::getTmpInstance('Products', 'J2StoreModel'); | |
| // set the id you want to delete | |
| $productModel->setId($j2StoreProductId); | |
| // call delete method | |
| $productModel->delete(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # delete local tag '12345' | |
| git tag -d 12345 | |
| # delete remote tag '12345' (eg, GitHub version too) | |
| git push origin :refs/tags/12345 | |
| # alternative approach | |
| git push --delete origin tagName | |
| git tag -d tagName |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Instead of using @if with (!) in the condition itself | |
| @if (!Auth::check()) | |
| You are not signed in. | |
| @endif | |
| // You can use the inverse of @if like below | |
| @unless (Auth::check()) | |
| You are not signed in. | |
| @endunless |