Re: Embed images to HTML-mails
On 15 Jul., 23:42, "Renan Gonçalves" <[EMAIL PROTECTED]> wrote: > If you want put the full url, you can do this: > image()) ?> > > I think its more simple and less "weight" than embed image on a email. Yep, I think your're right. I'll do it that way. Thanks. --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Embed images to HTML-mails
Hi, I'm using cake's email-component to send multipart emails which works fine so far. But how do I add an image to the HTML-part? I tried to do something like this in the layout: image('logo.gif')); ?> But it just gives me an
Custom validation with HABTM
Hi, maybe I'm just plain stupid but I can't get my head around a custom validation rule for HABTM with 1.2 It's no problem to trigger a rule for any other associations, like: var $validate = array( 'field_name =>array( 'rule' => 'myRule' )) But how do I trigger validation for a HABTM association? I've got some checkboxes in my view which look something like this: How do I trigger validation for these fields in another model which has an HABTM-association with 'Surface'? I've tried to replace 'field_name' (from my example above) with 'Surface', 'Surface/Surface' and 'Surface.Surface' but nothing seems to work. Has somebody a hint? TIA. --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Re: Get DB Prefix
Guess you're right. Fixed. On Oct 11, 12:27 pm, dardosordi <[EMAIL PROTECTED]> wrote: > Looks like that query should be a function in your model. > > On Oct 10, 2:47 am, Meloy <[EMAIL PROTECTED]> wrote: > > > Great! > > Thanks a lot! > > > On Oct 10, 3:02 am, Grant Cox <[EMAIL PROTECTED]> wrote: > > > > $db =& ConnectionManager::getInstance(); > > > $default_prefix = $db->config->default['prefix']; > > > > On Oct 9, 10:14 pm, Meloy <[EMAIL PROTECTED]> wrote: > > > > > Hi! > > > > > I'm looking for a way to access the database-prefix (set in > > > > database.php) in a controller to use it in a custom query but can't > > > > manage to find it... > > > > Can someone help? > > > > > Regards > > > > Meloy --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Re: Get DB Prefix
Great! Thanks a lot! On Oct 10, 3:02 am, Grant Cox <[EMAIL PROTECTED]> wrote: > $db =& ConnectionManager::getInstance(); > $default_prefix = $db->config->default['prefix']; > > On Oct 9, 10:14 pm, Meloy <[EMAIL PROTECTED]> wrote: > > > Hi! > > > I'm looking for a way to access the database-prefix (set in > > database.php) in a controller to use it in a custom query but can't > > manage to find it... > > Can someone help? > > > Regards > > Meloy --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Get DB Prefix
Hi! I'm looking for a way to access the database-prefix (set in database.php) in a controller to use it in a custom query but can't manage to find it... Can someone help? Regards Meloy --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Validation and belongsTo
Hi there, I'm new to CakePHP and right now I'm struggling to get validation to work. Here are my models, views, controllers (just excerpts) and the sql stuff: http://bin.cakephp.org/view/880983724 http://bin.cakephp.org/view/1935345060 Everything else is working just fine. I can add, edit and delete data in albums/add and the associated model is handled that way I want. The thing that doesn't work is the validation of 'Artist/artist', empty values are accepted. (I am using 1.2.0.4451a) Can anyone help please? -- View this message in context: http://www.nabble.com/Validation-and-belongsTo-tf3446121.html#a9610198 Sent from the CakePHP mailing list archive at Nabble.com. --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---