RE: tinymce and CakePHP

2006-07-09 Thread Ryan Ginstrom
tinyMCE.init({ mode : textareas, theme : simple }); /script [/code] I was able to do this. I think you are missing a view heirarchy levels. My setup: /js/tinymce/jscripts/tiny_mce/tiny_mce.js I think that was all I needed. -- Regards, Ryan

RE: CakePHP Built-in Webservices?

2006-07-04 Thread Ryan Ginstrom
, Ryan Ginstrom --~--~-~--~~~---~--~~ 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

RE: association - foreach

2006-07-03 Thread Ryan Ginstrom
() ; } In products_controller: function color( $id ) { $this-set( 'data', $this-requestAction( /colors/getById/$id ) ) ; } // view same... And you're good to go g -- Regards, Ryan Ginstrom --~--~-~--~~~---~--~~ You received this message because you

RE: association - foreach

2006-07-03 Thread Ryan Ginstrom
will get you an empty set, and now you don't know what color you were looking for. If you go from the color model, you will get a color entry, and an empty set of products, so you will be able to tell the user, Sorry, no mauve products. -- Regards, Ryan Ginstrom

RE: association - foreach

2006-07-03 Thread Ryan Ginstrom
to create a Color model, if you don't have one. You could start with this: ?php class ColorsController extends AppController { var $name = 'Colors'; var $scaffold = true ; function getById( $id ) { return $this-Color-findById( $id ) ; } } ? -- Regards, Ryan Ginstrom

RE: requestAction crashes Apache

2006-07-01 Thread Ryan Ginstrom
be called on requestAction The simple way around this would be to check if the action on members_controller is getMember, and if so exiting beforeFilter -- Regards, Ryan Ginstrom --~--~-~--~~~---~--~~ You received this message because you are subscribed

RE: Proof of concept: Custom validation using beforeValidate

2006-06-13 Thread Ryan Ginstrom
-setFormTag($field) ; $msg = $this-Html-tagIsInvalid($this-Html-model, $this-Html-field) ; if ( !$msg ) { return null ; } return sprintf('div class=error_message%s/div', $msg ) ; } } /* +++ */ // How does that look? -- Regards, Ryan Ginstrom

RE: Proof of concept: Custom validation using beforeValidate

2006-06-13 Thread Ryan Ginstrom
from the database. -- Regards, Ryan Ginstrom --~--~-~--~~~---~--~~ 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

RE: Uploaded Form Helper: FormationHelper

2006-06-12 Thread Ryan Ginstrom
htmlspecialchars() ) on the value, which escapes HTML entities. Since I am using my database to store HTML text, that's not what I wanted. But the latest version of my posted code supports both $this-params['data'] and $this-data. Regards, Ryan --- Ryan Ginstrom [EMAIL PROTECTED] / [EMAIL PROTECTED] http

RE: Uploaded Form Helper: FormationHelper

2006-06-12 Thread Ryan Ginstrom
( 'validations' = $validations, 'data' = $this-controller-data ) ) ; } -- Regards, Ryan Ginstrom --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP group. To post to this group, send email to cake

RE: Having trouble with session checking.

2006-06-02 Thread Ryan Ginstrom
' ))) { $this-checkSession() ; } return true ; } Regards, -- Ryan Ginstrom --~--~-~--~~~---~--~~ 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