Re: hasMany bind on the fly

2008-10-31 Thread Ita

Well since no shiny knight in white armor came to my rescue I wound up
creating my query.
I guess cake has its own limitations.

On Oct 30, 7:41 am, Ita <[EMAIL PROTECTED]> wrote:
> So it just can't handle the conditions?
> What should I do in this case? create my own query?
>
> On Oct 29, 7:29 pm, teknoid <[EMAIL PROTECTED]> wrote:
>
> > cake does not create joins for hasMany (only hasOne and belongsTo)
>
> > On Oct 29, 12:27 pm, Ita <[EMAIL PROTECTED]> wrote:
>
> > > Hi,
> > > I have 2 models Item and Defect.
> > > both of them have description.
> > > an Item can have many Defects and my defects table has a an item_id
> > > field.
>
> > > Now I'm trying to create a search query that will search both the item
> > > description and the defect description.
> > > What I do is this:
>
> > > $this->Item->bindModel(
> > >                             array('hasMany' => array(
> > >                                 'Defect' => array(
> > >                                     'className' => 'Defect',
> > >                                     'foreignKey' => 'item_id',
> > >                                     'type' => 'INNER'
> > >                                     )
> > >                                 )
> > >                             )
> > >                     );
> > > then I run findAll.
>
> > > Now when I use findAll with no conditions everything works fine. cake
> > > seems to run 2 queries:
> > > SELECT `Item`.`id`,.. FROM `items` AS `Item` WHERE 1 = 1
> > > SELECT `Defect`.`id`,.. FROM `defects` AS `Defect` WHERE
> > > `Defect`.`item_id` IN (1, 2, 16, 15, 14, 13, 12, 11, 10, 17, 18, 19,
> > > 20)
>
> > > My first question is why does cake doesn't create one query with INNER
> > > JOIN?
> > > The second problem is when I add conditions:
> > > $conditions[] = "`Item`.`name` LIKE '%" .$search_term ."%' OR
> > > `Defect`.`description` LIKE '%" . $search_term . "%'";
>
> > > It seems that cake in this case ignores the join all together and just
> > > does a regular select so I get an error:
> > > 1054: Unknown column 'Defect.description' in 'where clause'
>
> > > Does anyone know what I'm doing wrong?
--~--~-~--~~~---~--~~
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: hasMany bind on the fly

2008-10-29 Thread Ita

So it just can't handle the conditions?
What should I do in this case? create my own query?

On Oct 29, 7:29 pm, teknoid <[EMAIL PROTECTED]> wrote:
> cake does not create joins for hasMany (only hasOne and belongsTo)
>
> On Oct 29, 12:27 pm, Ita <[EMAIL PROTECTED]> wrote:
>
> > Hi,
> > I have 2 models Item and Defect.
> > both of them have description.
> > an Item can have many Defects and my defects table has a an item_id
> > field.
>
> > Now I'm trying to create a search query that will search both the item
> > description and the defect description.
> > What I do is this:
>
> > $this->Item->bindModel(
> >                             array('hasMany' => array(
> >                                 'Defect' => array(
> >                                     'className' => 'Defect',
> >                                     'foreignKey' => 'item_id',
> >                                     'type' => 'INNER'
> >                                     )
> >                                 )
> >                             )
> >                     );
> > then I run findAll.
>
> > Now when I use findAll with no conditions everything works fine. cake
> > seems to run 2 queries:
> > SELECT `Item`.`id`,.. FROM `items` AS `Item` WHERE 1 = 1
> > SELECT `Defect`.`id`,.. FROM `defects` AS `Defect` WHERE
> > `Defect`.`item_id` IN (1, 2, 16, 15, 14, 13, 12, 11, 10, 17, 18, 19,
> > 20)
>
> > My first question is why does cake doesn't create one query with INNER
> > JOIN?
> > The second problem is when I add conditions:
> > $conditions[] = "`Item`.`name` LIKE '%" .$search_term ."%' OR
> > `Defect`.`description` LIKE '%" . $search_term . "%'";
>
> > It seems that cake in this case ignores the join all together and just
> > does a regular select so I get an error:
> > 1054: Unknown column 'Defect.description' in 'where clause'
>
> > Does anyone know what I'm doing wrong?
--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



hasMany bind on the fly

2008-10-29 Thread Ita

Hi,
I have 2 models Item and Defect.
both of them have description.
an Item can have many Defects and my defects table has a an item_id
field.

Now I'm trying to create a search query that will search both the item
description and the defect description.
What I do is this:

$this->Item->bindModel(
array('hasMany' => array(
'Defect' => array(
'className' => 'Defect',
'foreignKey' => 'item_id',
'type' => 'INNER'
)
)
)
);
then I run findAll.

Now when I use findAll with no conditions everything works fine. cake
seems to run 2 queries:
SELECT `Item`.`id`,.. FROM `items` AS `Item` WHERE 1 = 1
SELECT `Defect`.`id`,.. FROM `defects` AS `Defect` WHERE
`Defect`.`item_id` IN (1, 2, 16, 15, 14, 13, 12, 11, 10, 17, 18, 19,
20)

My first question is why does cake doesn't create one query with INNER
JOIN?
The second problem is when I add conditions:
$conditions[] = "`Item`.`name` LIKE '%" .$search_term ."%' OR
`Defect`.`description` LIKE '%" . $search_term . "%'";

It seems that cake in this case ignores the join all together and just
does a regular select so I get an error:
1054: Unknown column 'Defect.description' in 'where clause'

Does anyone know what I'm doing wrong?

--~--~-~--~~~---~--~~
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: Several Custom SQL Pagination 1.2

2008-10-29 Thread Ita

OK it wasn't that simple but it worked.
I managed to move transfer the query terms and the query types into
the model this way.
its not a pretty sight but it does the job.

I have one problem but its a thing for another thread

On Oct 29, 12:54 am, Ita <[EMAIL PROTECTED]> wrote:
> Now that I think about it maybe its not that difficult.
> The paginate function has a scope parameter which can be used to pass
> sql condition.
> I could try and pass some kind of hint in this array about the search
> I want to preform.
> h.
> Should work.
>
> Too late to check it now but will do it tomorrow and write about it
> afterwards.
>
> On Oct 29, 12:34 am, Ita <[EMAIL PROTECTED]> wrote:
>
> > Hello,
> > I have just implemented pagination successfully but seem to have a
> > problem with expanding this.
> > Iĺl explain.
>
> > I have a controller that can do several kind of searches.
> > lets say it has the following functions:
> > searchByAAA
> > searchByBBB
> > searchByCCC
> > searchByDDD
>
> > each search is complicated and has to be done using custom SQL query.
> > Now when I implement pagination I need to pass this SQL to the
> > paginator which I undestand cannot be done.
> > I know I can override the model paginate and paginateCount functions
> > but this will only help me in one case.
> > How do I know which SQL to run?
> > Can I pass some kind of parameter to the paginate function so Iĺl know
> > from where I´m coming?
--~--~-~--~~~---~--~~
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: Several Custom SQL Pagination 1.2

2008-10-28 Thread Ita

Now that I think about it maybe its not that difficult.
The paginate function has a scope parameter which can be used to pass
sql condition.
I could try and pass some kind of hint in this array about the search
I want to preform.
h.
Should work.

Too late to check it now but will do it tomorrow and write about it
afterwards.


On Oct 29, 12:34 am, Ita <[EMAIL PROTECTED]> wrote:
> Hello,
> I have just implemented pagination successfully but seem to have a
> problem with expanding this.
> Iĺl explain.
>
> I have a controller that can do several kind of searches.
> lets say it has the following functions:
> searchByAAA
> searchByBBB
> searchByCCC
> searchByDDD
>
> each search is complicated and has to be done using custom SQL query.
> Now when I implement pagination I need to pass this SQL to the
> paginator which I undestand cannot be done.
> I know I can override the model paginate and paginateCount functions
> but this will only help me in one case.
> How do I know which SQL to run?
> Can I pass some kind of parameter to the paginate function so Iĺl know
> from where I´m coming?
--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



Several Custom SQL Pagination 1.2

2008-10-28 Thread Ita

Hello,
I have just implemented pagination successfully but seem to have a
problem with expanding this.
Iĺl explain.

I have a controller that can do several kind of searches.
lets say it has the following functions:
searchByAAA
searchByBBB
searchByCCC
searchByDDD

each search is complicated and has to be done using custom SQL query.
Now when I implement pagination I need to pass this SQL to the
paginator which I undestand cannot be done.
I know I can override the model paginate and paginateCount functions
but this will only help me in one case.
How do I know which SQL to run?
Can I pass some kind of parameter to the paginate function so Iĺl know
from where I´m coming?

--~--~-~--~~~---~--~~
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: Helpers inside Helpers

2007-07-17 Thread Ita

Actually I think he did remember the $this
what he didn't is to use ->Form and not ->form

On Jul 17, 10:56 am, "Christian \"Jippi\" Winther" <[EMAIL PROTECTED]>
wrote:
>  Class FooHelper extends AppHelper {
> Var $helpers = array('Form','Html');
>
> Function testMethod()
> {
> $this->output = $this->Form->input(...);
> }
>
> }
>
> Remember the '$this->'
>
> Its not a view where it get injected as a local variable :)
>
> ---
> Christian "Jippi" Wintherhttp://docs.cakephp.nu(Unofficial CakePHP 
> API)http://logs.cakephp.nu(Unofficial CakePHP IRC log)
>
> -Original Message-
> From: cake-php@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf
>
> Of [EMAIL PROTECTED]
> Sent: 17. juli 2007 10:22
> To: Cake PHP
> Subject: Helpers inside Helpers
>
> Hi to all,
>
> I'm writing a helper and I need to use a form helper inside this.
>
> ex:
> $this->output = $form->input('imagen', array('type' => 'file' ));
>
> But I get the next error:
> Notice (8): Undefined variable: form
>
> I've tried to set helpers array in the beggining of the helper like:
>
>  class FilerHelper extends Helper {
>
> var $helpers = array('Form');
> ..
> ..
> and after:
>$this->output = $form->input('imagen', array('type' => 'file' ));
> or:
>   $this->output = $this->form->input('imagen', array('type' =>
> 'file' ));
>
> But always have an error.
>
> I'm using the last 1.2 alpha release.
>
> Anyone know what can i do?
>
> Thanks for advance!
> faemino.
>
> PD: Sorrry for my poor English.


--~--~-~--~~~---~--~~
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: Routing to an external application

2007-07-17 Thread Ita

OK I solved the problem.
couldn't find how to do it via routes.php so I searched the net for an
hour and managed to do it via .htacess.

For anyone who has the same problem:
change the main .htaccess from:


   RewriteEngine on
   RewriteRule^$ app/webroot/[L]
   RewriteRule(.*) app/webroot/$1 [L]


to:

   RewriteEngine on
   rewritecond %{REQUEST_URI} ^/(phpmyadmin|fm)/
   RewriteRule .* - [S=2]
   RewriteRule^$ app/webroot/[L]
   RewriteRule(.*) app/webroot/$1 [L]


in plain words this means if the url has 'phpmyadmin' or 'fm' in it
skip the next 2 rules.


On Jul 17, 9:56 am, Ita <[EMAIL PROTECTED]> wrote:
> Hi,
> In my app I have several controllers.
> I wanted to create a friendly url for each registered user so I added
> this line to the routes.php
> Router::connect('/*', array('controller' => 'msgs', 'action' =>
> 'getMsg'));
>
> before that I added a route line for each existing controller so that
> the /* will not override them.
>
> I have uploaded my app to my hosting server and encountered a problem.
> phpmyadmin is hosted there like so:http://www.example.com/phpmyadmin/
> when I try to access it cake "thinks" its a username and routes it to
> 'msgs' controller.
> I have tried to add something like that:
> Router::connect('/phpmyadmin', null);
> to the routes.php but it didn't help.
>
> How do I get around it.
> editing the .htaccess is possible but I'm really lost there.


--~--~-~--~~~---~--~~
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: Helpers inside Helpers

2007-07-17 Thread Ita

what is the error that you get?

On Jul 17, 10:21 am, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote:
> Hi to all,
>
> I'm writing a helper and I need to use a form helper inside this.
>
> ex:
> $this->output = $form->input('imagen', array('type' => 'file' ));
>
> But I get the next error:
> Notice (8): Undefined variable: form
>
> I've tried to set helpers array in the beggining of the helper like:
>
>  class FilerHelper extends Helper {
>
> var $helpers = array('Form');
> ..
> ..
> and after:
>$this->output = $form->input('imagen', array('type' => 'file' ));
> or:
>   $this->output = $this->form->input('imagen', array('type' =>
> 'file' ));
>
> But always have an error.
>
> I'm using the last 1.2 alpha release.
>
> Anyone know what can i do?
>
> Thanks for advance!
> faemino.
>
> PD: Sorrry for my poor English.


--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



Routing to an external application

2007-07-17 Thread Ita

Hi,
In my app I have several controllers.
I wanted to create a friendly url for each registered user so I added
this line to the routes.php
Router::connect('/*', array('controller' => 'msgs', 'action' =>
'getMsg'));

before that I added a route line for each existing controller so that
the /* will not override them.

I have uploaded my app to my hosting server and encountered a problem.
phpmyadmin is hosted there like so:
http://www.example.com/phpmyadmin/
when I try to access it cake "thinks" its a username and routes it to
'msgs' controller.
I have tried to add something like that:
Router::connect('/phpmyadmin', null);
to the routes.php but it didn't help.

How do I get around it.
editing the .htaccess is possible but I'm really lost there.


--~--~-~--~~~---~--~~
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: dynamic url in $ajax->link

2007-07-03 Thread Ita

OK - managed.
Didn't notice the ajax 'with' option.
BTW it should be better documented since its really not clear how it
should be used.
for future ref it can be found here:
http://groups.google.com/group/cake-php/browse_thread/thread/ac6d7e82cdebff0d/419c61467f610e69


On Jul 3, 3:06 pm, Ita <[EMAIL PROTECTED]> wrote:
> Hi,
> I'm trying to create an ajax link that will pass a dynamic parameter
> according to something the user inputs.
> what I mean is that I want the link that will call an action but with
> a different parameter each time and this parameter is given by the
> user on the client side, during the creation of the link on the serer
> side I have no idea what this parameter is going to be.
>
> I have tried to user the "before" option but I couldn't find a way to
> update the url that the ajax link calls.
>
> Maybe what I'm trying to do is not possible but I'm asking anyway.


--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



dynamic url in $ajax->link

2007-07-03 Thread Ita

Hi,
I'm trying to create an ajax link that will pass a dynamic parameter
according to something the user inputs.
what I mean is that I want the link that will call an action but with
a different parameter each time and this parameter is given by the
user on the client side, during the creation of the link on the serer
side I have no idea what this parameter is going to be.

I have tried to user the "before" option but I couldn't find a way to
update the url that the ajax link calls.

Maybe what I'm trying to do is not possible but I'm asking anyway.


--~--~-~--~~~---~--~~
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: Cake 1.2 - Duplicate form id

2007-06-19 Thread Ita

OK - you are right.
It just seems that no one picked up on this "feature".
Nothing to be done then :)

On Jun 19, 7:42 pm, nate <[EMAIL PROTECTED]> wrote:
> Providing a DOM ID in the create() *and* end() method. um.
> why
>
> Can someone please enlighten me as to where that fits into the core
> philosophy of "Don't Repeat Yourself"?
>
> FormHelper::create() already allows you to pass an ID in the $options
> array parameter.
>
> On Jun 19, 10:05 am, Ita <[EMAIL PROTECTED]> wrote:
>
> > I think that giving an id in the create and end is not a bad idea.
> > I'll file a request...
> > Thanks
>
> > On Jun 19, 3:59 pm, "Chris Hartjes" <[EMAIL PROTECTED]> wrote:
>
> > > On 6/19/07, Ita <[EMAIL PROTECTED]> wrote:
>
> > > > -
> > > > Back to 2 forms with he same ID?
>
> > > Well, the problem is that the magic methods aren't smart enough to
> > > know you are having two forms on the same page pointing to the same
> > > controller.
>
> > > What I have done in the past is use a separate controller for my
> > > ajax-based actions (whether it's accepting form data or performing
> > > other requests) so that I don't have any namespace collisions.  If you
> > > were to try it this way, you'd get your two forms with two different
> > > ID's.
>
> > > I suggest that if you are insistent on trying to do it your way,
> > > instead of working within the rules that CakePHP has set out, go over
> > > to trac.cakephp.org and file an enhancement request to add a parameter
> > > to form->create() to allow for your edge case.
>
> > > --
> > > Chris Hartjes
> > > Senior Developer
> > > Cake Development Corporation
>
> > > My motto for 2007:  "Just build it, damnit!"
>
> > > @TheBallpark -http://www.littlehart.net/attheballpark
> > > @TheKeyboard -http://www.littlehart.net/atthekeyboard


--~--~-~--~~~---~--~~
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: Cake 1.2 - Duplicate form id

2007-06-19 Thread Ita

I think that giving an id in the create and end is not a bad idea.
I'll file a request...
Thanks

On Jun 19, 3:59 pm, "Chris Hartjes" <[EMAIL PROTECTED]> wrote:
> On 6/19/07, Ita <[EMAIL PROTECTED]> wrote:
>
> > -
> > Back to 2 forms with he same ID?
>
> Well, the problem is that the magic methods aren't smart enough to
> know you are having two forms on the same page pointing to the same
> controller.
>
> What I have done in the past is use a separate controller for my
> ajax-based actions (whether it's accepting form data or performing
> other requests) so that I don't have any namespace collisions.  If you
> were to try it this way, you'd get your two forms with two different
> ID's.
>
> I suggest that if you are insistent on trying to do it your way,
> instead of working within the rules that CakePHP has set out, go over
> to trac.cakephp.org and file an enhancement request to add a parameter
> to form->create() to allow for your edge case.
>
> --
> Chris Hartjes
> Senior Developer
> Cake Development Corporation
>
> My motto for 2007:  "Just build it, damnit!"
>
> @TheBallpark -http://www.littlehart.net/attheballpark
> @TheKeyboard -http://www.littlehart.net/atthekeyboard


--~--~-~--~~~---~--~~
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: Cake 1.2 - Duplicate form id

2007-06-19 Thread Ita

Iulian - as I wrote a few posts ago:
"My Bad.
I used $from->submit when I should have used $form->end

ok now each form send the right data but still both of them have the
same ID.
Even if this doesn't cause any problem should they have different ID's
just so things will be clearer? "

So the missing  was in caused by me since I used the wrong
$form function to end a form.

On Jun 19, 2:30 pm, "Iulian Ilea" <[EMAIL PROTECTED]> wrote:
> Are you sure  appears in your HTML source? From what are you saying
> it seems your first form is not closed.


--~--~-~--~~~---~--~~
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: Cake 1.2 - Duplicate form id

2007-06-19 Thread Ita

The why is not related to the fact that 2 forms should not have the
same ID but I'll clarify.

I'm creating a web site.
On the top right corner there will be a login box. This login box
allows loin via ajax from and always sits the no matter what the
website displays.
When the user logs in it says "Hello USER" instead of the login box.
You can see it in may web sites on the web.

Now the can ask to reset his password in which case the website now
shows 2 forms:
1. the one on the top right corner. login form.
2. in the middle of the screen a form to send the user name of the
user who forgot his password. regular POST form.

Both forms go to the same controller "Users" one to login and the
other to reset the password.

You may say that when the reset password form appears the login box
should not, but I think its not that important and certainly not bad
design case.

Now that we have this covered.
-
Back to 2 forms with he same ID?


On Jun 19, 3:45 pm, "Chris Hartjes" <[EMAIL PROTECTED]> wrote:
> On 6/19/07, Ita <[EMAIL PROTECTED]> wrote:
>
>
>
> > The problem is that when I have 2 forms in the same page they both get
> > the same ID.
> > And when I submit one form via get (in my example) I also get an empty
> > field from another from.
>
> Perhaps you can clarify this for me:  why do you have two forms on the
> same page that update the same model?  Sounds like a poorly-thought
> out design.
>
> --
> Chris Hartjes
> Senior Developer
> Cake Development Corporation
>
> My motto for 2007:  "Just build it, damnit!"
>
> @TheBallpark -http://www.littlehart.net/attheballpark
> @TheKeyboard -http://www.littlehart.net/atthekeyboard


--~--~-~--~~~---~--~~
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: Cake 1.2 - Duplicate form id

2007-06-19 Thread Ita

My Bad.
I used $from->submit when I should have used $form->end

ok now each form send the right data but still both of them have the
same ID.
Even if this doesn't cause any problem should they have different ID's
just so things will be clearer?


On Jun 19, 2:24 pm, Ita <[EMAIL PROTECTED]> wrote:
> To end the first form I use $ajax->submit() and then  since I
> noticed ajax->submit doesn't add a form end
> the second form is ended using $form->submit('XXX'); which adds a  form>
>
> On Jun 19, 2:21 pm, "Jonathan Langevin" <[EMAIL PROTECTED]> wrote:
>
> > Are you ending each form properly?
>
> > On 6/19/07, Ita <[EMAIL PROTECTED]> wrote:
>
> > > Actually now that I rechecked this a problem for me.
> > > It seems that submitting the second form sends the data in the first
> > > form and ignores the fields in the second form.
>
> > > Am I doing something wrong?
>
> > > On Jun 19, 2:11 pm, Ita <[EMAIL PROTECTED]> wrote:
> > > > Hi,
> > > > I'm using cake 1.2.0.5146alpha.
>
> > > > When I create a form using the $from->create method The from ID I get
> > > > is always the same ID.
> > > > For my Users controller I do:
> > > > echo $form->create('User',array('action'=>'/
> > > > resetPassword','type'=>'get'));
> > > > and get the id of 'UserAddForm'.
>
> > > > I have dug in the code and notice that the id is generated by this
> > > > line:
> > > > 'id' => $model . ife($created, 'Edit', 'Add') . 'Form',
>
> > > > which means every form can have 1 of 2 id possibilities:
> > > > UserAddForm or UserEditForm
>
> > > > The problem is that when I have 2 forms in the same page they both get
> > > > the same ID.
> > > > And when I submit one form via get (in my example) I also get an empty
> > > > field from another from.
>
> > > > Bug?


--~--~-~--~~~---~--~~
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: Cake 1.2 - Duplicate form id

2007-06-19 Thread Ita

To end the first form I use $ajax->submit() and then  since I
noticed ajax->submit doesn't add a form end
the second form is ended using $form->submit('XXX'); which adds a 

On Jun 19, 2:21 pm, "Jonathan Langevin" <[EMAIL PROTECTED]> wrote:
> Are you ending each form properly?
>
> On 6/19/07, Ita <[EMAIL PROTECTED]> wrote:
>
>
>
> > Actually now that I rechecked this a problem for me.
> > It seems that submitting the second form sends the data in the first
> > form and ignores the fields in the second form.
>
> > Am I doing something wrong?
>
> > On Jun 19, 2:11 pm, Ita <[EMAIL PROTECTED]> wrote:
> > > Hi,
> > > I'm using cake 1.2.0.5146alpha.
>
> > > When I create a form using the $from->create method The from ID I get
> > > is always the same ID.
> > > For my Users controller I do:
> > > echo $form->create('User',array('action'=>'/
> > > resetPassword','type'=>'get'));
> > > and get the id of 'UserAddForm'.
>
> > > I have dug in the code and notice that the id is generated by this
> > > line:
> > > 'id' => $model . ife($created, 'Edit', 'Add') . 'Form',
>
> > > which means every form can have 1 of 2 id possibilities:
> > > UserAddForm or UserEditForm
>
> > > The problem is that when I have 2 forms in the same page they both get
> > > the same ID.
> > > And when I submit one form via get (in my example) I also get an empty
> > > field from another from.
>
> > > Bug?


--~--~-~--~~~---~--~~
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: Cake 1.2 - Duplicate form id

2007-06-19 Thread Ita

Actually now that I rechecked this a problem for me.
It seems that submitting the second form sends the data in the first
form and ignores the fields in the second form.

Am I doing something wrong?


On Jun 19, 2:11 pm, Ita <[EMAIL PROTECTED]> wrote:
> Hi,
> I'm using cake 1.2.0.5146alpha.
>
> When I create a form using the $from->create method The from ID I get
> is always the same ID.
> For my Users controller I do:
> echo $form->create('User',array('action'=>'/
> resetPassword','type'=>'get'));
> and get the id of 'UserAddForm'.
>
> I have dug in the code and notice that the id is generated by this
> line:
> 'id' => $model . ife($created, 'Edit', 'Add') . 'Form',
>
> which means every form can have 1 of 2 id possibilities:
> UserAddForm or UserEditForm
>
> The problem is that when I have 2 forms in the same page they both get
> the same ID.
> And when I submit one form via get (in my example) I also get an empty
> field from another from.
>
> Bug?


--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



Cake 1.2 - Duplicate form id

2007-06-19 Thread Ita

Hi,
I'm using cake 1.2.0.5146alpha.

When I create a form using the $from->create method The from ID I get
is always the same ID.
For my Users controller I do:
echo $form->create('User',array('action'=>'/
resetPassword','type'=>'get'));
and get the id of 'UserAddForm'.

I have dug in the code and notice that the id is generated by this
line:
'id' => $model . ife($created, 'Edit', 'Add') . 'Form',

which means every form can have 1 of 2 id possibilities:
UserAddForm or UserEditForm

The problem is that when I have 2 forms in the same page they both get
the same ID.
And when I submit one form via get (in my example) I also get an empty
field from another from.

Bug?


--~--~-~--~~~---~--~~
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: Changes to SecurityComponent - every form I submit gets blackholed

2007-06-06 Thread Ita

OK - just an update.
The problem is not with the form->create + ajax->submit but rather
with the form->XXX_Control.
When producing the security token at least form->textarea is not
hashed correctly.
To get around it I found I can produce a text area using:

echo $form->input('message',array('label' => 'Enter Your Message',
'empty' => false,'type' => 'textarea'));

And the security problem was gone.
Hope this helps to someone else who encounter this in the future...

On Jun 6, 10:22 am, Ita <[EMAIL PROTECTED]> wrote:
> Hello,
> I have just encountered this problem.
> I'm trying to post the form via ajax.
> I just can't seem to get around the problem.
>
> I used form->create together with ajax->submit or plain HTML form tag
> with ajax->submit or ajax->form all of them fail in the security
> component.
>
> What combination should I use to submit the form in ajax?
>
> On May 24, 9:41 am, Mika <[EMAIL PROTECTED]> wrote:
>
> > Hey Larry,
>
> > It was more that I developed the site with 1.2 while it was still
> > changing a lot so I decided to keep the forms "pure". I will have a
> > look at converting them to helper calls and see how well it works with
> > what I have already.
>
> > One comment though is that you really should make the message more
> > pronounced (at least on debug mode) as the form would just stop
> > working and give back a totally blank screen, I had to set up a whole
> > XDebug session just to step through the application to see that the
> > actual post back was being blackholed. The result I was getting was a
> > blank page with the database trace, and even if I put statements like
> > die('here') in my action, it would never hit it so I was getting
> > pretty confused for a while ;)
>
> > Loving 1.2 though, and I can't wait for it to become stable.
>
> > Cheers,
> > Mladen (Mika)
>
> > On May 23, 4:20 pm, "Larry E. Masters aka PhpNut" <[EMAIL PROTECTED]>
> > wrote:
>
> > > Mika,
>
> > > If you are using hand-written forms you will need to follow the example
> > > here:https://trac.cakephp.org/changeset/4978toremoveany fields that are
> > > added by hand.
>
> > > Note when the security component is used you should still use the
> > > $form->create(); and the $form->submit(); if not your forms will not have
> > > the expected hidden fields and will be considered invalid anyway.
>
> > > Do you really like writing all the forms yourself or is there another 
> > > reason
> > > you are not using the helper?
>
> > > --
> > > /**
> > > * @author Larry E. Masters
> > > * @var string $userName
> > > * @param string $realName
> > > * @returns string aka PhpNut
> > > * @access  public
> > > */


--~--~-~--~~~---~--~~
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: Changes to SecurityComponent - every form I submit gets blackholed

2007-06-06 Thread Ita

Hello,
I have just encountered this problem.
I'm trying to post the form via ajax.
I just can't seem to get around the problem.

I used form->create together with ajax->submit or plain HTML form tag
with ajax->submit or ajax->form all of them fail in the security
component.

What combination should I use to submit the form in ajax?


On May 24, 9:41 am, Mika <[EMAIL PROTECTED]> wrote:
> Hey Larry,
>
> It was more that I developed the site with 1.2 while it was still
> changing a lot so I decided to keep the forms "pure". I will have a
> look at converting them to helper calls and see how well it works with
> what I have already.
>
> One comment though is that you really should make the message more
> pronounced (at least on debug mode) as the form would just stop
> working and give back a totally blank screen, I had to set up a whole
> XDebug session just to step through the application to see that the
> actual post back was being blackholed. The result I was getting was a
> blank page with the database trace, and even if I put statements like
> die('here') in my action, it would never hit it so I was getting
> pretty confused for a while ;)
>
> Loving 1.2 though, and I can't wait for it to become stable.
>
> Cheers,
> Mladen (Mika)
>
> On May 23, 4:20 pm, "Larry E. Masters aka PhpNut" <[EMAIL PROTECTED]>
> wrote:
>
> > Mika,
>
> > If you are using hand-written forms you will need to follow the example
> > here:https://trac.cakephp.org/changeset/4978toremove any fields that are
> > added by hand.
>
> > Note when the security component is used you should still use the
> > $form->create(); and the $form->submit(); if not your forms will not have
> > the expected hidden fields and will be considered invalid anyway.
>
> > Do you really like writing all the forms yourself or is there another reason
> > you are not using the helper?
>
> > --
> > /**
> > * @author Larry E. Masters
> > * @var string $userName
> > * @param string $realName
> > * @returns string aka PhpNut
> > * @access  public
> > */


--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



How to model the DB with HABTM

2007-05-31 Thread Ita

I posted a problem I had yesterday and now thats its solved I began to
question my DB structure.
What I have:
Users, Comments, Votes
A user can enter a comment to the system and other users can vote if
the like or dislike the comment.

Initially I created 3 tables, 3 views, 3 models and 3 controllers.
But now I read the hasAndBelongsToMany section I undestand that my
votes table is actually a join table that needs to be called
users_comments, and that I should specify the hasAndBelongsToMany
array in both models and discard the Votes MVC.

All that sounds nice but while a comment belongs to many users who
voted for it, it also belongs to only 1 user who entered it. Since I'm
new to this I'm asking will that cause me problems in the future and
maybe I should model the DB differently.

Your input will be very much welcome...


--~--~-~--~~~---~--~~
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: how can a controller access another model

2007-05-30 Thread Ita

Hi,
Thanks for the tip I\ll try and use it today and see if it works.
I actually do not use the object name it was just to simplify the
example...
Thanks again,
Ita

On May 30, 4:46 pm, AD7six <[EMAIL PROTECTED]> wrote:
> Ita wrote:
> > Hi,
> > In my DB I have 3 tables
> > objects, users & votes
>
> You are going to have problems with a model class named 'Object' since
> it already exists - you need to choose a different  name.
>
> regarding the check, as I'm here, simply use your associations:
>
> if ($this->Vote->Thing->hasAny(array('Thing.name'=>$objectName)) {
> // cast vote.
>
> }
>
> hth,
>
> AD


--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



how can a controller access another model

2007-05-30 Thread Ita

Hi,
In my DB I have 3 tables
objects, users & votes

as you probably guessed a user can vote for an object.
I've created models, controllers and views for all 3.
I've also made a user login and saved him on the session object.

Now I want him to be able to vote.
so on the objects view I created a form that calls the votes
controller
votes/castVote
and sent the object ID via hidden form field.

before I add the data to the DB I want to check that the object exists
in the objects table.
the problem is that I'm in the votes controller - how do I gain access
to the objects model from a controller that is not his?
What am I missing?


--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



debugging methods with cakePHP

2007-05-30 Thread Ita

Hi,
I'm trying to find my way around cake and having trouble as I'm new to
it.
I'm trying to find debug methods to debug the application I'm
building.

So far I installed xampp and the zend debugger so the phpinfo show:

Expose Zend Debuggeralways
Passive Mode Timeout20 seconds

Directive   Local Value Master Value
zend_debugger.allow_hosts   127.0.0.1   127.0.0.1
zend_debugger.allow_tunnel  no valueno value
zend_debugger.connect_password  no valueno value
zend_debugger.connector_port10013   10013
zend_debugger.deny_hostsno valueno value
zend_debugger.httpd_uid -1  -1
zend_debugger.max_msg_size  2097152 2097152

To develop and debug I use eclipse pdt all in one.

next I was able to debug a single page php application(not cake
related) , but I put a breakpoint in one of the cake controllers it
never stops there.

What I'm asking is does anyone uses the eclipse PTD to develop in
cake?
If so how do I debug it?
thanks...


--~--~-~--~~~---~--~~
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: $form->create not producing anything

2007-05-27 Thread Ita

OK its working now again a mess I made on my computer.

On May 24, 9:20 pm, "John David Anderson (_psychic_)"
<[EMAIL PROTECTED]> wrote:
> On May 24, 2007, at 12:50 PM, Ita wrote:
>
>
>
> > Oh man,
> > That was painful.
> > I was hoping that my mistake was bigger than that.
> > Thanks for pointing out my stupidity...
> > you saved me a bunch of time
>
> I'm just wondering how you verified the enctype when the tag wasn't
> there. :)
>
> - John
>
>
>
> > On May 24, 9:30 pm, "Samuel DeVore" <[EMAIL PROTECTED]> wrote:
> >> you need to echo theform->create
>
> >> On 5/24/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
>
> >>> Hi,
> >>> I'm new to CakePHP but I have followed the blog tutorial and now
> >>> trying to devlop something on my own using cake 1.2.
>
> >>> I have the following template to add a user to the system:
> >>> Add User
>
> >>> create('User',array('action'=>'/users/add'))?>
> >>> 
> >>> input('User/user_name', array('size' =>
> >>> '40'))?>
> >>> error('User/user_name', 'Username is
> >>> required.') ?>
> >>> 
> >>> 
> >>> input('User/password', array
> >>> ('size'=>'10')) ?
>
> >>> error('User/password', 'Password is
> >>> required.') ?>
> >>> 
> >>> 
> >>> input('User/email', array
> >>> ('size'=>'50')) ?>
> >>> error('User/email', 'eMail is
> >>> required.') ?>
> >>> 
> >>> submit('Save') ?>
> >>> 
> >>> end('User')?>
>
> >>> I have addedFormhelper to the users_controller.php file so I don't
> >>> get an error about $formnot being recognized.
> >>> When I call the template theformcontrol appear but there is no
> >>>form
> >>> tag like so:
> >>> Add User
> >>> 
> >>> User
> >>> Name >>> size="40"
> >>> maxlength="255" value="" id="UserUserName" />
>
> >>> 
> >>>  >>> for="UserPassword">Password >>> name="data[User][password]" size="10" value="" id="UserPassword" /
> >>> > >>> div>
> >>> 
> >>> Email >>> label> >>> maxlength="100" value="" id="UserEmail" />
> >>>  >>> div>
>
> >>> Anyone knows what am I doing wrong?
>
> >> --
> >> (the old fart) the advice is free, the lack of crankiness will
> >> cost you
>
> >> - its a fine line between a real question and an idiot
>
> >>http://blog.samdevore.com/archives/2007/03/05/when-open-source-
> >> bugs-me/


--~--~-~--~~~---~--~~
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: $form->create not producing anything

2007-05-27 Thread Ita

Hi again,
I'm not sure what "enctype" is.
as simple as the problem seemed to be I still can't get the $form-
>create to produce anything.
it now looks like this:
Add User

create('User',array('action'=>'/users/add'))?>

input('User/user_name', array('size' =>
'40'))?>
error('User/user_name', 'Username is
required.') ?>


input('User/password', array('size'=>'10')) ?
>
error('User/password', 'Password is
required.') ?>


input('User/email', array('size'=>'50')) ?>
error('User/email', 'eMail is required.') ?>

submit('Save') ?>

end('User')?>

Sorry - but have tested it just now and maybe I missing something that
is obvious but I just can't see it...

On May 24, 9:20 pm, "John David Anderson (_psychic_)"
<[EMAIL PROTECTED]> wrote:
> On May 24, 2007, at 12:50 PM, Ita wrote:
>
>
>
> > Oh man,
> > That was painful.
> > I was hoping that my mistake was bigger than that.
> > Thanks for pointing out my stupidity...
> > you saved me a bunch of time
>
> I'm just wondering how you verified the enctype when the tag wasn't
> there. :)
>
> - John
>
>
>
> > On May 24, 9:30 pm, "Samuel DeVore" <[EMAIL PROTECTED]> wrote:
> >> you need to echo theform->create
>
> >> On 5/24/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
>
> >>> Hi,
> >>> I'm new to CakePHP but I have followed the blog tutorial and now
> >>> trying to devlop something on my own using cake 1.2.
>
> >>> I have the following template to add a user to the system:
> >>> Add User
>
> >>> create('User',array('action'=>'/users/add'))?>
> >>> 
> >>> input('User/user_name', array('size' =>
> >>> '40'))?>
> >>> error('User/user_name', 'Username is
> >>> required.') ?>
> >>> 
> >>> 
> >>> input('User/password', array
> >>> ('size'=>'10')) ?
>
> >>> error('User/password', 'Password is
> >>> required.') ?>
> >>> 
> >>> 
> >>> input('User/email', array
> >>> ('size'=>'50')) ?>
> >>> error('User/email', 'eMail is
> >>> required.') ?>
> >>> 
> >>> submit('Save') ?>
> >>> 
> >>> end('User')?>
>
> >>> I have addedFormhelper to the users_controller.php file so I don't
> >>> get an error about $formnot being recognized.
> >>> When I call the template theformcontrol appear but there is no
> >>>form
> >>> tag like so:
> >>> Add User
> >>> 
> >>> User
> >>> Name >>> size="40"
> >>> maxlength="255" value="" id="UserUserName" />
>
> >>> 
> >>>  >>> for="UserPassword">Password >>> name="data[User][password]" size="10" value="" id="UserPassword" /
> >>> > >>> div>
> >>> 
> >>> Email >>> label> >>> maxlength="100" value="" id="UserEmail" />
> >>>  >>> div>
>
> >>> Anyone knows what am I doing wrong?
>
> >> --
> >> (the old fart) the advice is free, the lack of crankiness will
> >> cost you
>
> >> - its a fine line between a real question and an idiot
>
> >>http://blog.samdevore.com/archives/2007/03/05/when-open-source-
> >> bugs-me/


--~--~-~--~~~---~--~~
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: $form->create not producing anything

2007-05-24 Thread Ita

Oh man,
That was painful.
I was hoping that my mistake was bigger than that.
Thanks for pointing out my stupidity...
you saved me a bunch of time

On May 24, 9:30 pm, "Samuel DeVore" <[EMAIL PROTECTED]> wrote:
> you need to echo the form->create
>
> On 5/24/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
>
>
>
>
>
> > Hi,
> > I'm new to CakePHP but I have followed the blog tutorial and now
> > trying to devlop something on my own using cake 1.2.
>
> > I have the following template to add a user to the system:
> > Add User
>
> > create('User',array('action'=>'/users/add'))?>
> > 
> > input('User/user_name', array('size' =>
> > '40'))?>
> > error('User/user_name', 'Username is
> > required.') ?>
> > 
> > 
> > input('User/password', array('size'=>'10')) ?
>
> > error('User/password', 'Password is
> > required.') ?>
> > 
> > 
> > input('User/email', array('size'=>'50')) ?>
> > error('User/email', 'eMail is required.') ?>
> > 
> > submit('Save') ?>
> > 
> > end('User')?>
>
> > I have added Form helper to the users_controller.php file so I don't
> > get an error about $form not being recognized.
> > When I call the template the form control appear but there is no form
> > tag like so:
> > Add User
> > 
> > User
> > Name > maxlength="255" value="" id="UserUserName" />
>
> > 
> >  > for="UserPassword">Password > name="data[User][password]" size="10" value="" id="UserPassword" /> > div>
> > 
> > Email > label> > maxlength="100" value="" id="UserEmail" />
> >  > div>
>
> > Anyone knows what am I doing wrong?
>
> --
> (the old fart) the advice is free, the lack of crankiness will cost you
>
> - its a fine line between a real question and an idiot
>
> http://blog.samdevore.com/archives/2007/03/05/when-open-source-bugs-me/


--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---