Comments (7)
If you could close this and re-ask your question on Discourse of what is the alternative to static functions from Controller using Sage 10 with Composer
– I'd like to answer that there so it's not hidden in a random issue.
Edit: I'll actually put a blog post together and get the one above modified accordingly tonight/tomorrow.
from controller.
Sage 10 doesn't use this package. It uses Composers instead which are built in.
from controller.
Yes, I realized that. I'm new to Composers and getting caught up. While reading the blog on Sage 10 and Composers it mentions you can use both together and I was wondering how that works. Sounds like that is outdated info though?
from controller.
Yeah, more than likely outdated. I'd urge you to avoid this package with Sage 10.
from controller.
Got it, thanks.
Could you point me in the right direction for replacing a controllers static functions using Composers/Sage10? I guess I used to use those mainly for helper type of functions. Like formatting dates, hex2rgb, or site specific functions. Where would I put those in Sage 10 so they can be called from a blade view?
from controller.
This link appears at the top of Google for a search on Sage 10 Controllers, and the blog mentioned above appears second, still with the note of using View Composers alongside Controllers.
Any chance you could add a link to either of the above mentioned places (the discourse question or log1x's blog post) for ease of navigation for other googlers? 🙏
from controller.
@Jamiewarb Sure, will add to the readme!
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
- 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.