EmailComponent - BAD HELO
Hi guys, im having problems using the Email component with SMTP... app_controller: $this-Email-smtpOptions = array( 'port'='465', 'timeout'='30', 'host' = 'ssl://host', 'username'='username', 'password'='123456' ); /* Set delivery method */ $this-Email-delivery = 'smtp'; Then in my users controller i have this: $this-Email-from= 'Test hostname'; $this-Email-to = ''.$row['User']['email'].''; $this-Email-subject = 'Test'; //$this-Email-sendAs = 'both'; // because we like to send pretty mail $this-Email-template = 'forgot_password'; $this-set('user', $row); $this-Email-send(); When i run this action, i get the following: 550 Access denied - Invalid HELO name (See RFC2821 4.1.1.1) ... I've also tried setting the 'client' key in the smptOptions array to the same host, but im still getting: 550-REJECTED - Bad HELO - Host impersonating Is anyone having this issues with this core component using SMTP and SSL options? Any help is appreciated! :) Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. 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 cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
CakePHP backend + Flash frontend
Hello, im kinda new in Cake, i've always been developing Flash sites and now im using Cake for the backends (or CMS) for this sites. But im having problems with the paths configurations, webroot folder, etc. This is the setup i want to acomplish: Cake core: /cake Webroot: /public_html/ App dir: /public_html/intranet/ I've managed to set the CakeCore path outside the public_html dir and webroot path to /public_html/, the problem is that people will see the cake app before the Flash front end. I want it to work this way: When a user types www.mydomain.com he will see the flash front end, and www.mydomain.com/intranet/ will take him to the cake backend. Is this possible? Thanks in advance! Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. 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 cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
Re: CakePHP backend + Flash frontend
@Richard: Thats the setup i was using in previous projects, but what i want is the webroot files from Cake (images, docs, etc) to be outside intranet directory, its just a matter of organization, its seems cleaner to me this way, because Flash will be accessing this files too. @Renato: I could try that, but what about the other external files that my flash movie needs? (XML's and some PHP scritps), where do i put them? Will the rewrite rules of cake work fine? Thanks for your responses! On Feb 9, 2:29 pm, rich...@home richardath...@gmail.com wrote: You could put your flash front in in the root (www.mydomain.com) and then install cake atwww.mydomain.com/intranet On Feb 9, 1:20 pm, VitillO vj.nu...@gmail.com wrote: Hello, im kinda new in Cake, i've always been developing Flash sites and now im using Cake for the backends (or CMS) for this sites. But im having problems with the paths configurations, webroot folder, etc. This is the setup i want to acomplish: Cake core: /cake Webroot: /public_html/ App dir: /public_html/intranet/ I've managed to set the CakeCore path outside the public_html dir and webroot path to /public_html/, the problem is that people will see the cake app before the Flash front end. I want it to work this way: When a user types www.mydomain.com he will see the flash front end, and www.mydomain.com/intranet/ will take him to the cake backend. Is this possible? Thanks in advance! Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. 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 cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
Model association
Hi, i have the following structure for a tshirt online store: Product HABTM Size Size HABTM Product Association table: products_sizes The problem is, i need a stocks system. For example, say i have 50 pieces of S (size) for a particular tshirt, before using cake i had a column 'stock' in the association table, so i could retrieve the particular stock of that size, for that product, but now with cake i dont know how i should make the association. Any help? 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 -~--~~~~--~~--~--~---
Association question
Hi, i have the following structure for a tshirt online store: Product HABTM Size Size HABTM Product Association table: products_sizes The problem is, i need a stocks system. For example, say i have 50 pieces of S (size) for a particular tshirt, before using cake i had a column 'stock' in the association table, so i could retrieve the particular stock of that size, for that product, but now with cake i dont know how i should make the association. Any help? 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 -~--~~~~--~~--~--~---
Re: Model association
Hi guys, thanks for your replies. Right now, im my 'add' view of products, im getting a multiple select for the sizes, where i can select which sizes are available for that particular product, thats fine. The problem is that i need a stock number for each of this available sizes, so a multiple select wont work for me. An example would be: [ (checkbox) ] Small --- Stock [ input (a number) ] [ (checkbox) ] Medium --- Stock [ input (a number) ] [ (checkbox) ] Large --- Stock [ input (a number) ] So when i hit submit on the form, i can see the selected sizes for that product along with the stock value for each one. Thats what i need to achieve, but i dont know how to make the associations, neither the necessary models for this to work. @Adam: how does 'with' parameter works? i cant find the documentation for it On Sep 17, 11:28 pm, Adam Royle [EMAIL PROTECTED] wrote: You can create a model for your habtm association so you can add extra fields, etc, using the with key. Something like this... class Product extends AppModel { ... var $hasAndBelongsToMany = array( 'Size' = array('className' = 'Size', 'with' = 'ProductsSize', // -- this here, class name can be changed 'joinTable' = 'products_sizes', 'foreignKey' = 'product_id', 'associationForeignKey' = 'size_id', ), ); } class ProductsSize extends AppModel { // and here is your joined class! } Hope that helps, Adam On Sep 18, 7:07 am, Luiz Poleto [EMAIL PROTECTED] wrote: You can create the column stock in the association table.In the form where you do the association, you can add a new field for the stock. At least that was what i understood from your question... Regards, Luiz Poleto 2008/9/17 VitillO [EMAIL PROTECTED] Hi, i have the following structure for a tshirt online store: Product HABTM Size Size HABTM Product Association table: products_sizes The problem is, i need a stocks system. For example, say i have 50 pieces of S (size) for a particular tshirt, before using cake i had a column 'stock' in the association table, so i could retrieve the particular stock of that size, for that product, but now with cake i dont know how i should make the association. Any help? 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 -~--~~~~--~~--~--~---
Re: Model association
Ok guys, it seems i have the data (extra field 'stock' in the association table) in $this-data when i edit a Product, something like this, so the association table is auto-modelized: [Size] = Array ( [0] = Array ( [id] = 2 [name] = S [position] = 2 [created] = [modified] = [ProductsSize] = Array ( [id] = 248 [product_id] = 4 [size_id] = 2 [stock] = 0 ) ) [1] = Array ( [id] = 5 [name] = XL [position] = 5 [created] = [modified] = [ProductsSize] = Array ( [id] = 249 [product_id] = 4 [size_id] = 5 [stock] = 0 ) ) ) But i dont know how to update that stock value, i think the idea is, like i explained before to get and input field for each row, so i can specify the stock number for that particular association, in other words, be able to fill that extra information. On Sep 18, 12:59 am, VitillO [EMAIL PROTECTED] wrote: Hi guys, thanks for your replies. Right now, im my 'add' view of products, im getting a multiple select for the sizes, where i can select which sizes are available for that particular product, thats fine. The problem is that i need a stock number for each of this available sizes, so a multiple select wont work for me. An example would be: [ (checkbox) ] Small --- Stock [ input (a number) ] [ (checkbox) ] Medium --- Stock [ input (a number) ] [ (checkbox) ] Large --- Stock [ input (a number) ] So when i hit submit on the form, i can see the selected sizes for that product along with the stock value for each one. Thats what i need to achieve, but i dont know how to make the associations, neither the necessary models for this to work. @Adam: how does 'with' parameter works? i cant find the documentation for it On Sep 17, 11:28 pm, Adam Royle [EMAIL PROTECTED] wrote: You can create a model for your habtm association so you can add extra fields, etc, using the with key. Something like this... class Product extends AppModel { ... var $hasAndBelongsToMany = array( 'Size' = array('className' = 'Size', 'with' = 'ProductsSize', // -- this here, class name can be changed 'joinTable' = 'products_sizes', 'foreignKey' = 'product_id', 'associationForeignKey' = 'size_id', ), ); } class ProductsSize extends AppModel { // and here is your joined class! } Hope that helps, Adam On Sep 18, 7:07 am, Luiz Poleto [EMAIL PROTECTED] wrote: You can create the column stock in the association table.In the form where you do the association, you can add a new field for the stock. At least that was what i understood from your question... Regards, Luiz Poleto 2008/9/17 VitillO [EMAIL PROTECTED] Hi, i have the following structure for a tshirt online store: Product HABTM Size Size HABTM Product Association table: products_sizes The problem is, i need a stocks system. For example, say i have 50 pieces of S (size) for a particular tshirt, before using cake i had a column 'stock' in the association table, so i could retrieve the particular stock of that size, for that product, but now with cake i dont know how i should make the association. Any help? 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 -~--~~~~--~~--~--~---
Help with models?
This is the case, i have a tables products, categories. Normally i would link a category to a product using product.category_id, and since a category can be assigned to many products i dont have a product_id in the categories table. So, how can i make this relationship between the 2 without using a HABTM table, because lets say i want to link a product just to 1 category, not many categories. I will appreciate a lot any help with this! Thank you --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---