Skip to content
This repository has been archived by the owner on Nov 5, 2022. It is now read-only.

011a. Adding Server side validation

Astrid edited this page Oct 17, 2019 · 9 revisions

In this chapter we will ...

Now, we want to create a view on the front end.

111a

Newly created or Modified files

Newly created files

administrator/components/com_foos/Rule/LetterRule.php

Modified files

changelog.xml

foo_update.xml

administrator/components/com_foos/foos.xml

administrator/components/com_foos/forms/foo.xml

All changes at a glance

Click here to see all changes compared to the last chapter

More detailed explanations

File Structure

Example in Joomla 4

Side Note

Test your component

Now you can zip all files and install them via Joomla Extension Manager. After that you can see a link to your component in the left side menu. Clicking on this link will open the basic backend view.

t11a_1

Concluding Remark

It is no longer possible to save an invalid value. In large forms, it is not user-friendly to display all errors at the very end. Therefore, server-side validation is often supplemented with client-side validation, which checks during input. You can read more on this topic in the next chapter.

Now we have . Up to now we have no . We are going to work on this in the next chapter.

Overview of all files