Skip to main content

All Questions

Filter by
Sorted by
Tagged with
1 vote
1 answer
178 views

Setting tab 'error' class for tab with error

When creating an editor interface within my plugin, I am using the following snippet to create a set of tabs inside a tab pane: {% include "_includes/tabs" with { tabA: { label: 'Tab A'|t, url: '#...
Tim Everts's user avatar
3 votes
1 answer
2k views

Returning errors into templates

When working with a custom form that posts to a plugin function - what's the best way to return errors that would be displayed like the forgot password code example below {% if errors is defined %...
Adam McCombs's user avatar
  • 1,695
5 votes
1 answer
2k views

How to return errors from a model back to the template?

I'm working on validation with Craft. I have a custom plugin that allows public submission. However, I want to make sure I can pass errors back to the template. The key is trying to make my code as "...
Jason McCallister's user avatar
7 votes
3 answers
2k views

Render generic message/error template from plugin

Basically, I'm trying to emulate show_error from EE/CI: http://ellislab.com/codeigniter/user-guide/general/errors.html I want to just use the generic Craft error template (/craft/app/templates/error....
Tim Kelty's user avatar
  • 3,081