Comments (2)
In Pico 0.x I think I was loading this plugin first to avoid this issue
Yes, execution order matters. You can add a numeric prefix to the PicoUsers
directory, telling Pico to load it before any non-prefixed plugin (what should be the default). However, only plugins that really depend on being executed before certain other plugins should be prefixed. Plugins that manipulate the $pages
array should be prefixed with a number between 40 and 59. It's not recommended to use the min/max values of the given range, so 45 is probably a good choice for what you're doing (i.e. 45-PicoUsers/
).
Please refer to the class docs of Pico::loadPlugins()
for more info:
/**
* Loads plugins from Pico::$pluginsDir in alphabetical order
*
* Plugin files MAY be prefixed by a number (e.g. 00-PicoDeprecated.php)
* to indicate their processing order. Plugins without a prefix will be
* loaded last. If you want to use a prefix, you MUST consider the
* following directives:
* - 00 to 19: Reserved
* - 20 to 39: Low level code helper plugins
* - 40 to 59: Plugins manipulating routing or the pages array
* - 60 to 79: Plugins hooking into template or markdown parsing
* - 80 to 99: Plugins using the `onPageRendered` event
*
* @see Pico::getPlugin()
* @see Pico::getPlugins()
* @return void
* @throws RuntimeException thrown when a plugin couldn't be loaded
*/
protected function loadPlugins()
{
// ...
}
from pico-users.
Thanks, I missed that. That's fixed !
from pico-users.
Related Issues (14)
- 403 pages shown as $previousPage and $nextPage
- Extra slash in url bypasses rights list HOT 3
- feat: how admin users from external apps .. or API docs where?
- Anonymous user and rights HOT 1
- Plugin needs better session handling
- Login form not shown
- Cant log in HOT 3
- Undefined index: hash_type HOT 2
- Does Not Restrict Pages HOT 6
- Security: Don't store unhased passwords in sessions
- Security: Use password_hash() rather than hash() HOT 1
- split() was deprecated in PHP 5.3.0, and removed in PHP 7.0.0.
- Hide 403 pages from navigation
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pico-users.