cake-php
[Arriba] [Todas las Listas]

Re: Dato de sesión del ahorro de una vista

To: cake-php@xxxxxxxxxxxxxxxx
Subject: Re: Dato de sesión del ahorro de una vista
From: David Suna <david.suna@xxxxxxxxx>
Date: Sun, 16 Jun 2013 04:24:42 -0700 (PDT)
Delivery-date: Sun, 16 Jun 2013 07:24:56 -0400
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20120806; h=x-beenthere:date:from:to:message-id:in-reply-to:references:subject :mime-version:x-original-sender:reply-to:precedence:mailing-list :list-id:x-google-group-id:list-post:list-help:list-archive:sender :list-subscribe:list-unsubscribe:content-type; bh=J3vzuuJavM2xV+Mjfcz4brthf/A2Wuctkf0/ll9kzPk=; b=v5YkfpL43G5OoYWh5ePVZW7Pj3XESOqO44JB7ioOYyIgJLRTu0sAF4rGx5VpAuZGRU ojklE/ZXpw9KxKyAL2Z3lBgx+uTmN4KMPkGbl4hAlAR34TGKg+zh43dWj3QKbdaM4Xkq vuQcbNI7N9tZ07EkUnX/rfGQJ1TopQZAvqDS3VxMG+JUM6Mf3KcmMTY0IhvtZ0SPEcCP ic9uLckK1I8PC3hTfGtuZZ1HDmv+k+jizpevt1Tbl6yhhPdm9HckR0f7eIxM5t90ZoMU d8VOUvgRyT4GkzY8CZDpkpeXVbu1ugqLXKYsxwgqD4B72qIoskn2oJC5+u0N7lJBHMnu JfVw==
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-beenthere:date:from:to:message-id:in-reply-to:references:subject :mime-version:x-original-sender:reply-to:precedence:mailing-list :list-id:x-google-group-id:list-post:list-help:list-archive:sender :list-subscribe:list-unsubscribe:content-type; bh=J3vzuuJavM2xV+Mjfcz4brthf/A2Wuctkf0/ll9kzPk=; b=rdD7welrqHNFi8zvOS9OzwwrajfC9Z1UkRuG0EUJijaamEjlZgBpV6nAG04/S2bppo ivPuoif2sapVm57xuYs+Wd4g/Y6neD+y09gNfcgGnKCdqQWItqIWPB/LqSoxuy6O//oD fri6e7buPrm6MmTHfIGhVVDHVMxlBH4+ekHCP3ZnXusP+p6flMs+JOva3newHclYcAs8 JuH9GraQWuzSo1Iv9qq6pmRva3BJf2nfiLETlhHA4eTmZJQEM+vy8UzBUq5yiGZCQIZL cBaHBCS7gTeXUSQ8y6VT4ZYyT4fWY4GyJRAaXipdMr+LFNDuGYy3V2jVUeK3aMmpaOH+ EcUQ==
Envelope-to: traductor@xxxxxxxxxxx
In-reply-to: <e9e14c48-1de1-41d8-bca7-d80bf7c1df51@googlegroups.com>
List-archive: <http://groups.google.com/group/cake-php>
List-help: <http://groups.google.com/support/>, <mailto:cake-php+help@googlegroups.com>
List-id: <cake-php.googlegroups.com>
List-post: <http://groups.google.com/group/cake-php/post>, <mailto:cake-php@googlegroups.com>
List-subscribe: <http://groups.google.com/group/cake-php/subscribe>, <mailto:cake-php+subscribe@googlegroups.com>
List-unsubscribe: <http://groups.google.com/group/cake-php/subscribe>, <mailto:googlegroups-manage+1003367825667+unsubscribe@googlegroups.com>
Mailing-list: list cake-php@xxxxxxxxxxxxxxxx; contact cake-php+owners@xxxxxxxxxxxxxxxx
References: <5054b3a5-bee8-4e33-ba97-9c7ff2bc42d4@googlegroups.com> <e9e14c48-1de1-41d8-bca7-d80bf7c1df51@googlegroups.com>
Reply-to: cake-php@xxxxxxxxxxxxxxxx
Sender: cake-php@xxxxxxxxxxxxxxxx
*Thanks Para vuestra respuesta.

Cuando no tuve ninguna elección que es lo que acabé arriba de hacer.  Aun así, la información 
fui interesado en almacenar era sólo pertinente a la vista (*i.*e. Qué carta 
fue abierta cuándo el usuario *clicked en un vínculo) y sólo significado para uso en 
la vista (*reopen la carta que fue abierta en el tiempo el usuario *clicked).  Parece que ahora he empujado conocimiento de la vista al controlador para 
un propósito enteramente arbitrario.

En viernes, junio 14, 2013 11:08:57 PM *UTC+3, John escribió:
>
> Vuestra vista es allí para producir el HTML no manipula dato (otro que para 
> mostrarles). El propio *MVC la manera es para hacerlo en el controlador y justo 
> pasar el dato requerido a la vista a *render lo.
>

-- 
Gustarnos en *FaceBook *https://www.facebook.com/*CakePHP
nos Encuentra en *Twitter *http://*twitter.*com/*CakePHP

--- 
Recibiste este mensaje porque eres *subscribed al *Google Grupos "*CakePHP" grupo.
A *unsubscribe de este grupo y la parón que recibe *emails de él, enviar un *email a pastel-*php+unsubscribe@xxxxxxxxxxxxxxxx.
A correo a este grupo, envía *email a pastel-php@xxxxxxxxxxxxxxxx.
Visita este grupo en *http://grupos.*google.*com/Pastel/de grupo-*php.
Para más opciones, visita *https://grupos.*google.*com/Los Grupos/optan_fuera.


Thanks for your response.

As I had no choice that is what I ended up doing.  However, the information 
I was interested in storing was only relevant to the view (i.e. which menu 
was opened when the user clicked on a link) and only meant for use in the 
view (reopen the menu that was opened at the time the user clicked).  It 
seems that I have now pushed knowledge of the view into the controller for 
an entirely arbitrary purpose.

On Friday, June 14, 2013 11:08:57 PM UTC+3, John wrote:
>
> Your view is there to produce HTML not manipulate data (other than to 
> display them). The proper MVC way is to do it in the controller and just 
> pass the required data to the view to render it.
>

-- 
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP

--- 
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cake-php+unsubscribe@xxxxxxxxxxxxxxxx.
To post to this group, send email to cake-php@xxxxxxxxxxxxxxxx.
Visit this group at http://groups.google.com/group/cake-php.
For more options, visit https://groups.google.com/groups/opt_out.


<Anterior por Tema] Tema Actual [Siguiente por Tema>