How to display infield form validation errors with Trongate

preview_player
Показать описание
In this video I'm going to show you how to display infield form validation errors with Trongate. This is a brand new feature which comes with release 1.3.3036 or higher.

This has been the single most requested feature for Trongate and I'm happy to finally have it as part of the framework.

PLEASE NOTE: The first half of the video is just me, manually building a form. The new material starts at: 9:09.

If you like using Trongate, please do consider giving us a star on GitHub. The URL is:

Рекомендации по теме
Комментарии
Автор

Like all Trongate features, dead straightforward and very useful. Take a bow David!

perkin
Автор

Just wanted to say, I like your voice. It has a soothing touch. I'll be giving Trongate a go for myself

DarkSanctuaryCinema
Автор

Loving how easy it is to add errors and highlights.

UndyingFrost
Автор

That's a great new feature for trongate David.

heerwaarden
Автор

Now that we can access the validation errors individually; as in:

echo

I assume we can do this:

$form_label = 'Product Category';
if {$form_label = }
echo form_label($form_label);

This way, the if there is an error, the error message takes the place of the field label.
Seems to work like a champ!

charlesluck
Автор

This is awesome! I'm quite new to both PHP and this framework so forgive me if this is a silly question: Is it possible to change the error messages displayed? One might need a custom validation error message depending on the data one wants to be submitted from the user - and not all web pages are written in English or meant for an English speaking user base.

teltet
Автор

A lot of names are shorter than 3 characters David!

kashnigahbaruda
Автор

How easy is that! Brilliant addition to an already feature rich php framework. Thanks DC 👍

dafa
Автор

I can't register as a member of the strongate website. I use email addresses such as gmail, sina, 126, and qq, but I can't receive the activation website.😅

taoyu
join shbcf.ru