You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jul 10, 2023. It is now read-only.
I'm using Sage 10 for the first time and Models isn't working as expected out of the box. I had to use the following to get it working:
add_filter('sober/models/path', function () { return get_stylesheet_directory() . '/app/models'; });
I believe the issue is because the theme root for Sage 10 is no longer /resources as it was in version 9. Not sure how to check for the version of Sage, but I would recommend adding that in if possible to make Models future-friendly!
The text was updated successfully, but these errors were encountered:
I'm investing my time going forward on Intervention which includes support for registering post types as well. I would recommend using that instead going forward if you can.
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
I'm using Sage 10 for the first time and Models isn't working as expected out of the box. I had to use the following to get it working:
add_filter('sober/models/path', function () { return get_stylesheet_directory() . '/app/models'; });
I believe the issue is because the theme root for Sage 10 is no longer
/resources
as it was in version 9. Not sure how to check for the version of Sage, but I would recommend adding that in if possible to make Models future-friendly!The text was updated successfully, but these errors were encountered: