Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save joglomedia/4e46937a6d5ba7d7859e to your computer and use it in GitHub Desktop.
Save joglomedia/4e46937a6d5ba7d7859e to your computer and use it in GitHub Desktop.
Phalcon: Generate Hashed Filename for Compiled Template Path
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