Page tree
Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

Hooks/Plugins

We also have some new hooks/plugins to support developers can make change on the core features:

Name

App

Description

core.template-notification-custom

subscribe

Plugin called in notification template

user.service_callback_purchase_points_completed

user

Plugin called after purchasing with activity points completely

Others

Support return multiple arrays in massCallback

Since this version, developers can return multiple arrays in a massCallback function. Example code:

return [
    'merge_result' => true,
    'result' => [
        // your return arays
        ]
    ]
];

Support Apps can define list of writable directories

From now, apps can define a list of directories that have to be had writable permission (example: your app need a folder to store upload pictures...)

Example for this configuration:

protected function setOthers()
    {
        ...
        $this->_writable_dirs = [
            'PF.Base/file/pic/todo/'
        ];
        ...
    }

For more information, you can get here

New template built-in function to add AddThis to your page

In 4.5.2, we had added 2 new settings to allow admin can integrate AddThis to their site. And now, for the purpose to help the developers can use it easier, we support the new template built-in function addthis.

Example code:

{addthis url='http://example.com' title='Example' description='Description of example' media='http://example.com/image.jpg'}

To get more information for this function, please visit here.

Support Apps can define list of external directories/files

From now, apps can define a list of directories/files that belong with the app but don't store in app folder.

Example for this configuration:

...
$this->external_paths = [
    [
        'path' => 'PF.Base/example_folder'
        'removeable => true
    ],
    [
        'path' => 'PF.Base/example_file'
        'removeable => false
    ]
];
...

For more information, you can get here

New Pagination System

In phpFox version 4.5.3. We will introduce the new Pagination System. The Core script will support 3 mode for pagination:

  • Scroll down to load more
  • Paging with Next and Prev buttons
  • Paging with page number

You can find the guideline for applying it for your apps here.

Support add settings for Blocks

One of the important improvements of phpFox version 4.5.3 is supporting settings for the blocks. From now, you can define settings for you apps blocks to allow admin can use or custom them easier.

Please follow the tut here to define and control settings for your blocks.

New Log System and Error Handler

We also have more major improvements in phpFox Log System and Error Handler. Detail information has been updated here.

  • No labels