Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make Smarty adapter compatible with nocache optional argument #397

Merged
merged 3 commits into from
Jul 31, 2015

Conversation

CurtisBaldwinson
Copy link
Contributor

The third argument in Smarty's assign function is one of it's most important features, giving it a back-end friendly partial caching ability that other template engines often don't have (including Volt.) This SmartyView is a basic extension of View that enables usage of this important feature.

Almost any real web app would benefit from this feature, as a page will often have lots of static content that can be cached. However, a portion of it such as the username of the visitor who is currently logged in will change with each user.

$this->_viewParams[$key] = $value;
$this->_viewParams["_" . $key] = $nocache;
}
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Expected 1 newline at end of file; 0 found

sergeyklay added a commit that referenced this pull request Jul 31, 2015
Make Smarty adapter compatible with nocache optional argument
@sergeyklay sergeyklay merged commit ab5955f into phalcon:2.0.x Jul 31, 2015
@sergeyklay
Copy link
Contributor

Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants