to generate textarea element
on HTML page.
Syntax
Textarea (string $fieldName , array $options array() )
Parameters
Name of a field, in the form "Modelname.fieldname"
Array of HTML attributes, special option like escape
Returns
A generated HTML text input element
Description
Creates a textarea widget
Example
Make changes in the
config/routes.php
file as shown in the following code.
config/routes.php
use Cake\Core\Plugin;
use Cake\Routing\RouteBuilder;
use Cake\Routing\Router;
Router::defaultRouteClass('DashedRoute');
Router::scope('/', function (RouteBuilder $routes) {
$routes-
>connect('register',['controller'=>'Registrations','action'=>'index']);
$routes->fallbacks('DashedRoute');
});
Plugin::routes();
CakePHP
63
Create a
Do'stlaringiz bilan baham: |