Contents
How to create a custom form in Joomla?
Create custom form to capture data in a database – Joomla! Forum – community, help and support General questions relating to Joomla! 3.x. Absolute Beginner’s Guide to Joomla! <– please read before posting.
How to create a database connection in Joomla?
Joomla can use different kinds of SQL database systems and run in a variety of environments with different table-prefixes. In addition to these functions, the class automatically creates the database connection. Besides instantiating the object you need just two lines of code to get a result from the database in a variety of formats.
How does updateobject work in jdatabase-Joomla?
Just like insertObject, updateObject takes care of escaping table names for us. The updateObject method will throw a error if there is a problem updating the record into the database table.
How to check if a record has been updated in Joomla?
To confirm that it has updated the record correctly go into phpmyadmin and view the users table within the Joomla database. The updates aren’t visible via the admin Users functionality on the back end, as Joomla displays in lower case all the email addresses in the records.
What’s the best way to query a Joomla database?
Joomla’s database querying has changed since the new Joomla Framework was introduced “query chaining” is now the recommended method for building database queries (although string queries are still supported).
What are the different field types in Joomla?
There is a JFormField for each different field type you can find in a form, such as a text field type and a date field type. JForm supports a large selection of standard field types. For a full list, see Standard form field types. Joomla! makes it possible to extend standard field types or define your own.
Where are the protected member variables in Joomla?
Some of those attributes are accessible via protected member variables of JFormField. For example, the name attribute is available in your code as $this->name. Similarly, label, description, default, multiple and class are also available as properties of $this.