cake-php
[Arriba] [Todas las Listas]

Re: Puede cualquiera me ayuda con editar correo_tags ???

To: cake-php@xxxxxxxxxxxxxxxx
Subject: Re: Puede cualquiera me ayuda con editar correo_tags ???
From: Lilit <lilitbakunts@xxxxxxxxx>
Date: Wed, 19 Jun 2013 07:59:55 -0700 (PDT)
Delivery-date: Wed, 19 Jun 2013 11:00:07 -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:x-original-authentication-results :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=vd+eIdcEtCOYKLAzRFe4eVbv7UQH4t2MkL8ceHkXYgA=; b=sPXV8veTck1jSmMimwUMgLBAIZvUkxll6ydg/LZhrx9DiLEnCWCbpA0tGe9yupUm+y pyodHoc5g6LBzYSACpkRp9SsJ90N3n4akK8x5kV14Rkq1vQZ1ITWYNZc1f2i3ZQJc97+ 0HzoY2N31YB2s3Jq+b9XjmQYIjLrECmG7eCIC95WQJ7zJRX60Cjqt9MGUulrVv3zD8k2 rqQT1I+Zn3cBVSufmuZJqE0tNyqus0g2ouOIjERMhPR19HuQIJyitzBoqjfc7zWQPijM OzK+WtUqe9g0F9q8WqSeD83YQdi17nKK/PQktJU+ao57TGBhmGdoKxGQx/I3DZVHWL7A kJiA==
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:x-original-authentication-results :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=vd+eIdcEtCOYKLAzRFe4eVbv7UQH4t2MkL8ceHkXYgA=; b=03mwUqskjuHKbrUPB/AXChij0K3azDBB3ivq6uNXswcA9+DyW6YLtEPF53YQQ9Towg nIUvjInfaD25+pjtvah5xW6K/7dLh0iFkOdyWaumpXFiPOEePbVRephvf+gnjYrRUMGZ +xUOI4EvW47zdyrSLMNFpikfr8bT5/2mID9Q+AmU24wVb9JQ0CWIATdlflxQwvCt8mgq 4WVrZC9+H5EHd5t2rlQteby2m94usq2u9vbGXGOGOzF4o+xDkh/idJdjOmAqywQrxnCy FOz3VbX8dNpiFf56l2H0ReymT6XQ2kT+F20obfOhCbMgSyU1xjFOCmOS7azjHIGjVFMN VBjQ==
Envelope-to: traductor@xxxxxxxxxxx
In-reply-to: <4413447b-65a1-4990-9cc5-63aeddd72f03@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: <1371632149134-5715315.post@n5.nabble.com> <4413447b-65a1-4990-9cc5-63aeddd72f03@googlegroups.com>
Reply-to: cake-php@xxxxxxxxxxxxxxxx
Sender: cake-php@xxxxxxxxxxxxxxxx
Esto es una parte de código para añadir tema con *tags

                    $salva = $esto->Tema->salvar($dato['Tema']);
                    si($salva)
                        $#unknown{^*tags = explotar(',', $dato['Tema']['*tags']);
                        *foreach($*tags como $*tag)
                            $#unknown{^*tag = *strtolower(*trim($*tag));
                            si($*tag)
                                $#unknown{^*foundTag = $esto->*Tag->encontrar(
                                        'primero', variedad(
                                    'condiciones' => variedad(
                                        '*Tag.Título' => $*tag
                                    )
                                        )
                                );
                                si($*foundTag)
                                    $#unknown{^*topicTags['*TopicTag']['*tagId'] =
$*foundTag['*Tag']['*id'];
                                }más
                                    $#prn->*Tag->crear();
                                    $*savedtag = $esto->*Tag->salvar(variedad('*Tag'
=> variedad('título' => $*tag)));
                                    $*topicTags['*TopicTag']['*tagId'] =
$*savedtag['*Tag']['*id'];
                                }
                                $*topicTags['*TopicTag']['*topicId'] =
$salva['Tema']['*id'];
                                $esto->*TopicTag->crear();
                                $esto->*TopicTag->salvar($*topicTags);
                            }
                        }

*i tiene problemas con editar,, tiene que encontrar todo *tag *id antes de editar y después
de editar, a algo le gusta que,
hay tres temas
de mesas, *tags y tema_*tags con *topicId y *tagId,
*sorry para explicación mala
*thanks



--
Ver este mensaje en contexto: *http://*cakephp.1045679.*n5.*nabble.*com/Lata-cualquiera-ayuda-me-con-editando-correo-*tags-*tp5715315*p5715319.*html
Enviado del *CakePHP *mailing lista *archive en *Nabble.*com.

-- 
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.



this is a part of code for adding topic with tags

                    $save = $this->Topic->save($data['Topic']);
                    if($save){
                        $tags = explode(',', $data['Topic']['tags']);
                        foreach($tags as $tag){
                            $tag = strtolower(trim($tag));
                            if($tag){
                                $foundTag = $this->Tag->find(
                                        'first', array(
                                    'conditions' => array(
                                        'Tag.title' => $tag
                                    )
                                        )
                                );
                                if($foundTag){
                                    $topicTags['TopicTag']['tagId'] =
$foundTag['Tag']['id'];
                                }else{
                                    $this->Tag->create();
                                    $savedtag = $this->Tag->save(array('Tag'
=> array('title' => $tag)));
                                    $topicTags['TopicTag']['tagId'] =
$savedtag['Tag']['id'];
                                }
                                $topicTags['TopicTag']['topicId'] =
$save['Topic']['id'];
                                $this->TopicTag->create();
                                $this->TopicTag->save($topicTags);
                            }
                        }

i have problems with editing,, have to find all tag id before editing and
after editing, something like that,
there's three tables
topics, tags and topic_tags with topicId and tagId,
sorry for bad explanation
thanks



--
View this message in context: http://cakephp.1045679.n5.nabble.com/Can-anyone-help-me-with-editing-post-tags-tp5715315p5715319.html
Sent from the CakePHP mailing list archive at Nabble.com.

-- 
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>