Comments (7)
Hello
Can't we have this for version 4.x?
I think this is an important and basic feature.
I don't know about absolute path but at least simple dynamic variable is good enough for now.
I had almost decided to use Twig because of this problem.
Also, There is no post for this issue to vote on issue phalcon/cphalcon#14608
from phalcon.
@AliShareei It will be done in v5
because Volt is written in C. Process of rewrite to PHP native is still in progress, as there are 20+k lines of code in C.
from phalcon.
@AliShareei Hello, benefits are relative from view to view. But if generalize:
- compatibility with existing projects
- performance (I almost have no doubts about that, even if it is written in PHP)
- alternative (PHP templates, Volt, Twig or even Smarty). As mentioned here #90 (comment) - in future it might be used outside of Phalcon eco-system as independent package
from phalcon.
we really need this
DIRNAME == the volt file :: current folder
{% DIRNAME ~ 'exemple/part4' %}
At that moment
you have a lot of partials folders and files & you w tant to change a folder name
you will need to edit every partial file and change the path ...
Thanks
greetings.
from phalcon.
@yassinrais Give your vote in this issue - phalcon/cphalcon#14608
from phalcon.
Hi @Jeckerson
If so, since Twig
and Volt
seems to have similar syntax, what are the benefits of rewriting Volt
in PHP? Why not use the Twig
for v5
?
from phalcon.
Hello guys,
Do you think we have any chance for this in V5?
from phalcon.
Related Issues (20)
- [NFR]: Replace regexp in the router with arrays for extra performance
- Can't access page, 404 FORBIDDEN
- Can I use `$this->getRelated` on already cached data?
- [BUG]: Scrutinizer Fixes HOT 1
- [NFR]: ADD sticky for read write connection
- [NFR]: removeBehavior method in Model
- [NFR]:returnedValue not updated after dispatcher->forward
- [NFR]: No way to add html attributes to Select Tag. documentation inadequate HOT 1
- [BUG]: The "setDefault" method does not work for forms of type "text" with name "value" HOT 5
- update src folder links
- How to use cookie in phalcon 4.x ? HOT 1
- update tests folder links
- [NFR]: Complete rework of ORM HOT 3
- [BUG]: \Phalcon\Encryption\Crypt + named parameters/arguments throw fatal error. HOT 1
- [NFR]: Refactor Phalcon\Mvc\Router/Route HOT 1
- [NFR]: Refactor Phalcon\Mvc\Model\MetaData
- phalcon 3,4 webhook problem HOT 2
- [NFR]: What is the purpose of this library? HOT 3
- [NFR]: Add a getResult() or fetchAll() method to Resultset\Simple
- [BUG]: when i use JWT Builder , api returns blank 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 phalcon.