Last active
August 29, 2015 14:13
-
-
Save joglomedia/4e46937a6d5ba7d7859e to your computer and use it in GitHub Desktop.
Phalcon: Generate Hashed Filename for Compiled Template Path
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
closure to generate hashed filename for Phalcon template compiled path kind of file: | |
```php | |
<?php | |
$volt->setOptions(array( | |
'compiledPath' => function($templatePath) { | |
return md5($templatePath) . '.php'; | |
} | |
)); | |
``` | |
Ref: https://github.com/phalcon/cphalcon/issues/3226#issuecomment-69939795 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment