Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ajaxCall = PAGE
- ajaxCall {
- typeNum = 22222
- config {
- disableAllHeaderCode = 1
- xhtml_cleaning = 0
- admPanel = 0
- additionalHeaders = Content-type: text/plain
- no_cache = 1
- debug = 0
- }
- 10 = USER
- 10 {
- userFunc = TYPO3CMSExtbaseCoreBootstrap->run
- extensionName = fefiles
- pluginName = Piphoto
- vendorName = Istar
- controller = Photo
- action = ajaxHandler
- }
- }
- TYPO3CMSExtbaseUtilityExtensionUtility::registerPlugin(
- $_EXTKEY,
- 'Piphoto',
- 'Upload Photo'
- );
- jQuery(function($) {
- $(".send-photo-comment").click(function (e) {
- e.preventDefault();
- $.ajax({
- type: "POST",
- url: "?id=0&type=22222",
- data: {},
- success: function(msg){
- console.log(msg);
- }
- });
- })
- })
- TYPO3CMSExtbaseUtilityExtensionUtility::configurePlugin(
- 'Istar.' . $_EXTKEY,
- 'Piphoto',
- [
- 'Photo' => 'list, ajaxHandler, show, new, create, edit, update, delete',
- ],
- // non-cacheable actions
- [
- 'Photo' => 'list, ajaxHandler, show, new, create, edit, update, delete',
- ]
- );
- Help me please)
- TYPO3CMSExtbaseUtilityExtensionUtility::configurePlugin(
- 'Istar.' . $_EXTKEY,
- 'Piphoto,
- array(
- 'Photo' => 'ajaxhandler'
- )
- );
- TYPO3CMSExtbaseUtilityExtensionUtility::configurePlugin(
- 'YourVendor.' . $_EXTKEY,
- // Plugin name
- 'Pi1',
- // An array of controller-action combinations. The first one found is the default one.
- array(
- 'YourController' => 'index,new,create,edit,update'
- ),
- // An array of non-cachable controller-action-combinations (they must already be enabled)
- array(
- 'YourController' => 'new,create,edit,update'
- )
- );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement