Re: tiny MCE editor issue

2008-05-21 Thread Jose Selesan
Please, see
http://bakery.cakephp.org/articles/view/using-tinymce-with-cakephp, it
helped me a lot. In your model, just define the field as text and in the
view use $form->input('YourModel/yourfield'). TinyMCE script replace
textareas with the editor.



On Wed, May 21, 2008 at 9:06 AM, vishal <[EMAIL PROTECTED]> wrote:

>
> Hi friends,
> I want to bulit a page from my cms, in that I would
> like to place a tinymce editor to fill the content that will dispay on
> front end after save & publish.
>
>
> I reuest you to please send me few lines of code or help to save the
> content in database that will fill in the editor.
>
> thanks always in advance..!!
>
> vishal
> >
>

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



saveAll with three levels

2008-05-08 Thread Jose Selesan
Hi all, does anybody know if I can save a model with a hasMany relation and
each of the related models has a hasMany relation?

Hi have a model called Trivia with a 'hasMany' relation to model Pregunta
and model Pregunta has a 'hasMany' relation to model Opcion. But when I call
$this->Trivia->saveAll($this->data) in my controller, it only saves Trivia
and their related Pregunta, but not Opcion

Please help me!

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: Ajax request loads my default layout !

2008-04-22 Thread Jose Selesan
Hi, try this:

   if($this->RequestHandler->isAjax()) {

>$this->render('admin_index', 'ajax');

   *$this->layout = '';*

>
>}



On Tue, Apr 22, 2008 at 8:16 AM, Neveldo <[EMAIL PROTECTED]> wrote:

>
> Hi all,
>
> I've an issue with Ajax requests. I'm trying to add Ajax pagination
> for some data by following this tutorial :
> http://bakery.cakephp.org/articles/view/advanced-pagination-1-2.
>
> The pagination works fine but cake loads my entire default layout
> everytime I request a new page !
>
> To resolve it, I add the code bellow in my controller action :
>
>if($this->RequestHandler->isAjax()) {
>$this->render('admin_index', 'ajax');
>}
>
> and now It load the correct ajax layout but I think I've something
> wront, no ?
>
> thank !
>
> Cordially,
> Neveldo : http://www.neveldo.fr
> >
>


-- 
Lic. Jose Selesan
Desarrollador Gold Cinco Estrellas
http://jose-selesan.blogspot.com

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Routing question

2008-04-16 Thread Jose Selesan
Hi people, I have another question. I need to acces a controller action
through a subdomain. I mean, if the user browse to jose.domain.com, it needs
to be the same  as www.domail.com/profiles/view/jose (where
controller=profiles, action=view, param1=jose)

Somebody can helpme with route rules?
Thanks in advance

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---