Accent
Traducción
■■■■■■■■■■■■■■
Ejemplos
Lines 13-14 define a callback method which is similar to the hello() callback in the first helloworld.
Las líneas 13-14 definen un método de retrollamada similar a la retrollamada hello() del ejemplo inicial.
You can see the result of this change in the menu manager section for the helloworld item.
Puedes ver el resultado de este cambio en el menú del administrador en la sección del elemento helloworld.
We also have to provide the asset name, asset title and the id of the asset parent via the helloworld JTable.
También tenemos que proporcionar el nombre, título y el id del asset padre a través de JTable de helloworld.
You may have noted that the html form contained in the admin/views/helloworld/tmpl/edit.php file now has the form-validate css class.
Puedes haber notado que el código html del formulario que figura en el archivo admin/views/helloworld/tmpl/edit.php tiene ahora la clase css form-validate.
We want to update the admin helloworld list layout file to include the new Author and Created Date fields.
Queremos actualizar el archivo de diseño de la lista del administrador de helloworld para incluir los nuevos campos Autor y Fecha de creación.
To record who added the new helloworld greeting we'll store the user's userid, and this will be zero if the user is not logged on.
Para registrar quién agregó el nuevo saludo de helloworld, almacenaremos el ID del usuario, que será cero si el usuario no ha iniciado sesión.
We need to use our database for choosing the message, and for this we need to define a custom field type (which we call helloworld below) as described here.
Necesitamos utilizar nuestra base de datos para elegir el mensaje, y para esto tenemos que definir un tipo de campo personalizado (que a continuación llamamos helloworld) como se describe aquí.
On the front end we have the view which displays the helloworld message–we'll ensure our layout file includes the image as well, and we'll need to get the additional information from the model.
En el lado cliente tenemos la vista que muestra el mensaje de helloworld: nos aseguraremos de que nuestro archivo de diseño también incluya la imagen, y necesitaremos obtener la información adicional del modelo.
We pass to this function the identity of the asset record, and it returns an object containing all the Actions which are associated with our helloworld component, together with (for each Action) whether the currently logged-in user has that permission or not.
Pasamos a esta función la identidad del registro activo, y devuelve un objeto que contiene todas las Acciones que están asociadas con nuestro componente helloworld, junto con (para cada Acción) si el usuario actualmente conectado tiene ese permiso o no.
Once the plugins are live, you can select in the Global Configuration the captcha which you want to be the system default, and also in the Helloworld Configuration select which captcha to use for this helloworld form.
Una vez que los complementos están en vivo, puedes seleccionar en la configuración global el captcha que deseas que sea el predeterminado del sistema, y también en la Configuración de Helloworld seleccionar qué captcha usar para este formulario helloworld.
Palabra del día
la seda