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
,
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
() ;
}
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
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
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
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
-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
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
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
(
'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
' )))
{
$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
11 matches
Mail list logo