Comments (2)
Problem with outputting protected class data through h2o
Hello alex,
Thanks again for submitting this ticket, this isn’t really a bug of h2o template, but a issue with that ORM library you are using.
As i have demonstrated in this code paste which isset() php function will always return false on overloaded properties using magic method (__get()) unless (__isset()) is also implemented.
Here is the patch file to fix the problem for you and feel free to pass on the patch to the original author, at the mean time i will mark this ticket as invalid and feel free to contact me if u need help
please add this method to your activerecord.php
by Taylor luk
from h2o-php.
Problem with outputting protected class data through h2o
The library you were using contribute some of the problem where h2o also contains problem working with php overloaded objects since all magical object methods in php doesn’t return the variable reference (alias) by default.
Latest commit should fix this issue with updated specs.
https://github.com/speedmax/h2o-php/tree/5026bf372cb7fc93d9d477c17f0bb838ee2c5a87
by Taylor luk
from h2o-php.
Related Issues (20)
- Issue with cache loader HOT 2
- InvalidArgumentException for-loop over empty arrays
- (Question) Method invoking on object variable? HOT 2
- Extending FilterCollection complains of static functions HOT 1
- |
- Variable access to array index HOT 4
- Why loop instead of forloop?
- [Warning] In read_cache after calling loadTemplate HOT 1
- Basic HTML & Text breaking h2o templates HOT 2
- Variables should be able to start with underscore (_)
- i18n fails to replace empty variables in blocktrans
- i18n blocktrans can not handle quotes HOT 1
- Filters in if Tags? HOT 2
- eval like feature
- Feature Request: Don't process tag HOT 1
- Combine Tags result with Filters
- Can $context be acessible in Template? HOT 5
- Add composer.json HOT 1
- IF higher or equal
- PHP7 compliance 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 h2o-php.