Comments (5)
The filter I added work already.
It was just to notify that update and downgrade can cause the error on Sage, and so need the filter (back?) to work. I had no issue after a fresh Sage install.
from controller.
@mtx-z if I'm not mistaken then get_stylesheet_directory()
returns $path/resources
You need to add only /controllers
, if you want to place a folder controllers In resources/
, filter should look like this:
add_filter('sober/controller/path', function () {
return get_stylesheet_directory() . '/controllers';
});
from controller.
@9585999 that's what I meant to comment with, haha. Although the filter path @mtx-z used should return the same.
from controller.
I do see this issue as more of a teething issue than something that should be solved with additional code to Controller. Moving forward, with the correct versions, this should not be an issue.
from controller.
Can you try the following
add_filter('sober/controller/path', function () {
return get_stylesheet_directory() . '/resources/controllers';
});
from controller.
Related Issues (20)
- Undefined variable $last when debugging with only one class HOT 1
- How to run code in constructor only if current page matches the controller ? HOT 2
- Remove composer/installers dependency? HOT 1
- ACF vars with dash HOT 3
- Controller not working on custom post type with underscores HOT 3
- Error with woocommerce and ACF Invalid argument supplied for foreach() HOT 2
- Question: How to modify the loop? HOT 4
- Blade debug throws errors or not much data HOT 1
- Suddenly stopped working HOT 7
- Sage 10 HOT 7
- add Comment HTML HOT 1
- Release new version HOT 3
- Partials folder conflicts with theme's partial folder. HOT 1
- Can't use "Category" as a Controller
- Pass ACF options fields from controller HOT 1
- 9.0.0-beta.4 PHP 7.4 class ordering bug resulting in Fatal Error HOT 7
- PHP 8.0.3 warnings HOT 1
- Static function Snake or Camel Case? HOT 2
- Fatal error if ACF expected and not activated
- Getting ACF data on Archive page HOT 1
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 controller.