Comments (6)
Hi there, what class/object do you expect $this
to refer to?
from blade.
I can't access all libraries like session, config, etc directly to my blade view using "{{ }}" unlike the ci's traditional views.
A quick fix is to call it first to controller and assign to a variable before outputting to a view, but I already used to calling it directly to my views. I also tried the get_instance() on the parent controller but still getting an error.
from blade.
Can you link to some Laravel documentation on this feature?
from blade.
Oh I'm sorry, thought we're on the same page. I'm using this repo inside Codeigniter. I forgot to mention. I thought this was solely meant for CI until I read the description.
from blade.
Ah ok, well this project is just about making blade
work outside of Laravel, adding other framework specific features is not in scope at this time
from blade.
You may be able to use the share()
method to make something available to all views, like so:
$blade->share("this", $codeigniter);
from blade.
Related Issues (20)
- Could not reach BladeInstance->getViewFactory() method HOT 4
- Cache files not automatically refreshed in development, using phpstorm HOT 6
- How would one get url parameters from the route request? HOT 2
- suggestion for configuration HOT 5
- without cache HOT 1
- Non existent variable does not throw ErrorException HOT 2
- Return value of duncan3dc\Laravel\Directives::register() must be an instance of duncan3dc\Laravel\void, none returned HOT 2
- How to set default for @yield via @include file HOT 3
- Where are Document this package HOT 2
- The IDE shows error HOT 1
- Laravel 7 `x-` Components HOT 1
- it not update it's lluminate/filesystem version HOT 1
- 支持php8 HOT 1
- laravel 9.x support HOT 3
- View [categories.create] not found. HOT 1
- Please add support for PHP 8.2 HOT 1
- I've got Problem when I try install it with Symfony. HOT 2
- throw new InvalidArgumentException("View [$name] not found."); HOT 4
- Parser error on webhost HOT 5
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 blade.