Nu am putut găsi această intrare. Se afișează rezultate aproximative. Verificați ortografia sau propuneți adăugarea acestui termen în dicționar.
PostController
For this example, the controller is post, which refers to the PostController class; and the action is show, whose actual meaning is determined by the controller.
Para este ejemplo el controlador es post que refiere a la clase PostController y la acción es show que su significado es determinado por el controlador.
With the Post model ready, we need to fine-tune the actions and views for the controller PostController.
Con el modelo Post listo, necesitamos afinar las acciones y vistas para el controlador PostController.
The PostController instance executes the index action by calling its actionIndex() method.
La instancia de PostController ejecuta la acción index llamando a su método actionIndex().
The view operation is implemented by the actionView() method in PostController.
La operación view es implementada por el método actionView() en PostController.
Alte rezultate
For securing the UsersController you can follow the same technique we did for PostsController.
Para proteger el UsersController se puee seguir la misma técnica utilizada para PostsController.
Instead, we'll replace this with our PostsController by creating a routing rule.
En lugar de ello, vamos a sustituir esto con nuestros PostsController mediante la creación de una regla de enrutamiento.
Instead, we'll replace this with our PostsController by creating a routing rule.
The rules we're going to add to PostsController should allow authors to create posts but prevent the edition of posts if the author does not match.
Las reglas que vamos a agregar a PostsController deberían permitirle a los autores crear posts, pero prevenir que editen posts que no le pertenezcan.
By naming our model Post, CakePHP can automatically infer that this model will be used in the PostsController, and will be tied to a database table called posts.
Nombrando nuestro modelo como Post, CakePHP puede automáticamente inferir que este modelo será usado en el controlador PostsController, y será atado a la tabla de la base de datos llamada posts.
By naming our model Post, CakePHP can automatically infer that this model will be used in the PostsController, and will be tied to a database table called posts.
Cuando llamamos a nuestro modelo Post, CakePHP deducirá automáticamente que este modelo se utilizará en el controlador PostsController, y que se vinculará a una tabla en nuestra base de datos llamada posts.
By naming our model Post, CakePHP can automatically infer that this model will be used in the PostsController, and will be tied to a database table called posts.
Llamando a nuestro objeto Tabla ArticlesTable, CakePHP deducirá automáticamente que esta Tabla será utilizada en el controlador ArticlesController, y que se vinculará a una tabla en nuestra base de datos llamada articles.
If we try to use some of those new URLs they will still crash, since they expect to direct us to matching PostsController
Si tratamos de utilizar algunas de estas nuevas URLs, estas se colgaran, ya que esperan dirigirnos a un parecido de PostsController.
Because of the way the class and file are named, this tells Cake that you want a Post model available in your PostsController that is tied to a table in your default database called 'posts'.
Cuando llamamos a nuestro modelo Post, CakePHP deducirá automáticamente que este modelo se utilizará en el controlador PostsController, y que se vinculará a una tabla en nuestra base de datos llamada posts.
Conținut posibil inadecvat
Exemplele au rolul de a te ajuta să traduci cuvinte sau expresii corect si adaptat la context. Nu sunt selectate sau validate manual, așadar pot conține termeni inadecvați. Te rugăm să raportezi exemplele pe care le consideri inadecvate. Traducerile vulgare sau colocviale sunt în general marcate cu roșu sau cu portocaliu.
Înregistrează-te pentru a accesa mai multe exemple