HABTM and extra foreign keys

2009-07-27 Thread matias
Hi! I have a problem. I want to link relational table of two habtm tables with another one. I have table `types` (id, name) that is habtm `characteristics` (id, name). Their rel table is `characteristics_types` (id, characteristic_id, type_id). I want to link each record from this table with many

Re: $data always empty - Please HELP!

2008-04-20 Thread Matias Veleda
, Matias Veleda [EMAIL PROTECTED] wrote: Hey guys, I'm new to CakePHP. I followed the instructions in the manual, the example case and everytime I want to update my databaser from a form my $data is always empty, what am I doing wrong? It's like nothing happens when I press submit button

Re: $data always empty - Please HELP!

2008-04-20 Thread Matias Veleda
syntax you don't need it, though. ?= $form-input(...) ? On Sun, Apr 20, 2008 at 2:52 AM, Matias Veleda [EMAIL PROTECTED] wrote: Hey guys, Thanks for the answers. I think I'm doing things right, I mean, I followed the Post/Comments example on the CakePHP Manual. In my case, I hace Masters

Re: $data always empty - Please HELP!

2008-04-20 Thread Matias Veleda
or not, class name, etc). On Sun, Apr 20, 2008 at 2:55 PM, Matias Veleda [EMAIL PROTECTED] wrote: B Logica ot works!! Thank you so much!! Now I can keep moving on this amazing framework!! Thanks to all you guys for your answers!! Hope someday I can help you on something. Just the last

$data always empty - Please HELP!

2008-04-19 Thread Matias Veleda
Hey guys, I'm new to CakePHP. I followed the instructions in the manual, the example case and everytime I want to update my databaser from a form my $data is always empty, what am I doing wrong? It's like nothing happens when I press submit button. Sorry my english, I'm from Argentina. Hope

Re: Custom html helper

2008-04-04 Thread Matias Lespiau
views, but I have a lot of code changing to do in this one if I do that. -- Matias Lespiau http://www.gignus.com/ --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP group. To post to this group, send

Re: Model find() to return object; instead of array (?)

2008-04-03 Thread Matias Lespiau
://rajeshanbiah.blogspot.com/ -- Matias Lespiau http://www.gignus.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

Re: Unbind Reverse Relations in Recursive Queries

2008-03-02 Thread Matias Lespiau
of handling model bindings, try out Mariano Iglesia's Bindable Behavior: http://bakery.cakephp.org/articles/view/bindable-behavior-control-your-model-bindings -- Matias Lespiau http://www.gignus.com/ --~--~-~--~~~---~--~~ You received this message because you

Re: formHelper-inputs example

2008-02-25 Thread Matias Lespiau
('ftp_user', 'ftp_password') )); -- Matias Lespiau http://www.gignus.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

Re: hasAndBelongsToMany with additional join table columns?

2008-02-21 Thread Matias
Another solution might be (don't know how elegant this is) to add a finderQuery in your HABTM-relation. Just copy the present habtm-query (you'll see it with debug level 2, for example), modify it a bit and add it to your models habtm-statement. In your case the modification should be something

Re: Model primarykey

2008-02-12 Thread Matias Lespiau
. -- Matias Lespiau http://www.gignus.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

Re: how images stored in database

2008-02-12 Thread Matias Lespiau
-- Matias Lespiau http://www.gignus.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

Re: New install: default layout is not being applied

2008-02-10 Thread Matias Lespiau
and it should work. -- Matias Lespiau http://www.gignus.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

Re: New install: default layout is not being applied

2008-02-10 Thread Matias Lespiau
Matias! I set apache's document root to /var/www/html/cake/app/ webroot and the default layout applied immediately after restarting apache. Thank you very much for your help! On Feb 10, 6:06 am, Matias Lespiau [EMAIL PROTECTED] wrote: Hi drimo, On Feb 10, 2008 2:28 AM, drimo [EMAIL PROTECTED

Re: cakephp 1.2 pdfb helper

2008-02-07 Thread Matias Lespiau
... -- Matias Lespiau http://www.gignus.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

Re: cakePHP redirect

2008-02-05 Thread Matias Lespiau
to know of these referrals. Does anyone know if the cakePHP redirect function will achieve this for me? Thank you. -- Matias Lespiau http://www.gignus.com/ --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP

Re: Case by case validation

2008-02-05 Thread Matias Lespiau
? Regards, Alexander -- Matias Lespiau http://www.gignus.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

Re: How to update myprofile data in more than one table

2008-02-01 Thread Matias Lespiau
'); } ! Userprofile Table code ends- Hope that works, good luck! -- Matias Lespiau http://www.gignus.com/ --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP group. To post to this group, send email

Re: WYSIWYG + source code formatting

2008-01-31 Thread Matias Lespiau
or whatever language (supported by GeSHi) that you want to highlight and then parse all the text with this helper. -- Matias Lespiau http://www.gignus.com/ On Jan 31, 2008 9:31 AM, grigri [EMAIL PROTECTED] wrote: Markdown does indeed preserve indentation, because code blocks are wrapped in pre tags

Re: WYSIWYG + source code formatting

2008-01-31 Thread Matias Lespiau
the formatting, then it would be a piece ofCake (pun intended) to implement highlighting withdp.SyntaxHighlighter ..probably.. ..I hope.. :-) Btw, how do I go about downloading the Bakery code? I'm unable to doan export, it seems like the SVN repo is for devs only.. :-/ -- Matias Lespiau http

Re: Controller confusion

2008-01-31 Thread Matias Lespiau
help would be gratefully received. Thanks JudoUK -- Matias Lespiau http://www.gignus.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

Re: Controller confusion

2008-01-31 Thread Matias Lespiau
://manager.id/', 'Manager.user_id', 'User.first_name ', 'User.surname'))); $result = Set::combine($l, {n}.Manager.id, {n}.Manager.user_id); $this-set('managers', $result); Good luck, I hope that works! On Jan 31, 2008 10:14 PM, judouk [EMAIL PROTECTED] wrote: On 31 Jan, 23:49, Matias

Re: Help me with Associations

2008-01-30 Thread Matias Lespiau
to display the result: $taskslist = $this-TasksList-findAll(); pr($taskslist); The array here only prints the data from TasksList and not the associated data. I don't know any way I could use to find where I am wrong. I will really appreciate any idea! -- Matias Lespiau http

Re: how to update a profile in cakephp

2008-01-30 Thread Matias Lespiau
'); } } } That should fix it. Cheers, -- Matias Lespiau http://www.gignus.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

Re: Error testing my View Helper with SimpleTest -- class not found

2008-01-29 Thread Matias Lespiau
, for whatever reason. I don't suppose you have a sample project or something that I could download and try? Wayne On 1/28/08, Matias Lespiau [EMAIL PROTECTED] wrote: Before the XsltHelperTest class call App::import('Helper', 'XsltHelper'); Good luck and happy testing! -- Matias Lespiau

Re: Extending Email Component

2008-01-29 Thread Matias Lespiau
be called instead of the others. Is that what you need? This way you can extend the component while keeping the core clean. Cheers, -- Matias Lespiau http://www.gignus.com/ On Jan 29, 2008 2:49 PM, Jeraimee [EMAIL PROTECTED] wrote: In our project when we need to send email we actually input

Re: Global View Variable?

2008-01-29 Thread Matias Lespiau
us more ideas. Cheers, -- Matias Lespiau http://www.gignus.com/ On Jan 29, 2008 3:42 PM, Siebren Bakker [EMAIL PROTECTED] wrote: I have an array of Strings, that I use in a couple of different places throughout my cake-app, in a couple different models, and was wondering if there was any way

Re: Extending Email Component

2008-01-29 Thread Matias Lespiau
Haven't tested it, but in the send function of the EmailComponent I see this code: function send() // lot of code $__method = '__'.$this-delivery; return $this-$__method(); } So I think it should call the db method. Good luck -- Matias Lespiau http://www.gignus.com

Re: Yet another Auth and ACL question

2008-01-29 Thread Matias Lespiau
Maybe the Auth $loginAction property is what you're looking for. Set the url of the controller that handles login (As a string or array). Cheers, -- Matias Lespiau http://www.gignus.com/ On Jan 29, 2008 4:10 PM, Braindead [EMAIL PROTECTED] wrote: Hello group, I'm using Auth and ACL

Re: Making RSS feeds with CakePHP

2008-01-28 Thread Matias Lespiau
as a parameter to the function. -- Matias Lespiau http://www.gignus.com/ On Jan 28, 2008 8:45 AM, MonkeyGirl [EMAIL PROTECTED] wrote: Thanks for the links everyone! To answer my own first question, then: 1. How can I tell if someone's requesting the RSS version of a page or the regular HTML

Re: Making RSS feeds with CakePHP

2008-01-28 Thread Matias Lespiau
You're exactly right, thank you *very* much! You're welcome =). -- Matias Lespiau http://www.gignus.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

Re: best practices: dev and production environments

2008-01-28 Thread Matias Lespiau
changes? I hadn't solved this on linux yet, but if you work with some mysql program like mysqlfront on win, you can check the logs and save every alteration to you database, save them to a text file, and run them on production. Good luck! -- Matias Lespiau http://www.gignus.com

Re: best practices: dev and production environments

2008-01-28 Thread Matias Lespiau
changes to it if you wish). Thanks for the tip, I'll try it out. -- Matias Lespiau http://www.gignus.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

Re: Error testing my View Helper with SimpleTest -- class not found

2008-01-28 Thread Matias Lespiau
Before the XsltHelperTest class call App::import('Helper', 'XsltHelper'); Good luck and happy testing! -- Matias Lespiau http://www.gignus.com/ On Jan 28, 2008 4:46 PM, Wayne Fay [EMAIL PROTECTED] wrote: So I've created my own View helper (it just dispatches to the XSL module), and now I

Re: upload photo and files

2008-01-22 Thread Matias Lespiau
from http://labs.iamkoa.net/2007/10/23/image-upload-component-cakephp/ this site. But my application is work fine on local machine but it is not working on server. Can you please help me. Thanks. -- Matias Lespiau http://www.gignus.com