Saving related model data

2008-02-06 Thread lgarcia
I have this scenario: * Products table: product_id manufacturer_id avail * ProductDescriptions table: product_id lang_code short_description full_description Primary key in products table is product_id while in the second table is both

Re: Question about sessions

2008-02-06 Thread lgarcia
The difference is just the path PHP stores the session. CAKE: app/tmp/sessions PHP: php tmp directory defined in php.ini DATABASE: cake_sessions table. Check you have sessions folder in tmp directory created and check it permissions. Regards. On 6 feb, 22:02, rafael bonifaz [EMAIL PROTECTED]

Re: Saving related model data

2008-02-06 Thread lgarcia
I would prefer a solution without touching the database... finally if there aren't solutions i would make that change, but i'm asking for a non-database solution. thanks!!! On 6 feb, 23:23, Robby Anderson [EMAIL PROTECTED] wrote: My take on using Cake is that you need a single-column primary

Price with commas

2008-01-29 Thread lgarcia
Why my prices are showing up with commas Sometimes i got from the DB prices with 25,43924234 instead of 25.43924234 ... my math operations are going wrong because of that --~--~-~--~~~---~--~~ You received this message because you are subscribed to the

Excel exporting fails on Internet explorer with SSL

2008-01-23 Thread lgarcia
I have some weird issue here Since i update my apache to work with SSL i can't export my reports to excel. I haven't any excel component, just writing html and forcing the browser to open it with Excel... The weird here is with firefox works perfect but not with explorer, why? any hint? If i

Fetching data from model not binded

2007-07-26 Thread lgarcia
I need an urgent solution. I have all my products associated to a category and owned by a project. The association between this three models is: * Project.id = Product.project_id * product and category == HABTM (products_categories) So, products and projects are related, but categories and

Re: Session vars in the Model

2007-07-24 Thread lgarcia
But if i have not any association between categories and projects, how i'll achieve my goal? On 24 jul, 00:43, Grant Cox [EMAIL PROTECTED] wrote: You should temporarily bind the association with the required project_id, in the controller action. There are a large number of ways of binding an

Flash message error

2007-07-24 Thread lgarcia
I have this message function to show flash messages and it returns me a 1 after any message is showed... anyone knows why? code function _message($message, $url = false, $value = false, $error = false) { if ($value) { $message =

Session vars in the Model

2007-07-23 Thread lgarcia
Ok... I have this scenario: PRODUCTS: * product_id * name * project_id CATEGORIES: * category_id * name CATEGORIES_PRODUCTS * category_id * product_id I have a hasAndBelongsToMany association in categories against products and i want to show in the categories-show method