auth problem

2007-12-26 Thread ricarou51

Hi everybody !

How can I resolve this problem :

if I try to connect to my application, it asks me a login and
password , that's ok !
I'm now connected to the restricted area , that's ok too !

but now if I open a new window and try to connect to the application,
it asks me nothing and connects me directly because I'm already
connect in the another window ...

Thanks to help 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
-~--~~~~--~~--~--~---



uses a component in only one action of a contoller

2007-09-11 Thread ricarou51

Hey !

I would like to know if it's possible to use a component in only one
action of a controller  and not declaring for exemple

var $components=array('mycomponent'), at the beginning of the
contoller


If so, what is the syntax ?

Thanks a lot


--~--~-~--~~~---~--~~
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: Select which populate another select

2007-07-05 Thread ricarou51

thanks !

it's exactly that I would like !

On 6 juil, 06:56, francky06l <[EMAIL PROTECTED]> wrote:
> Good sample here :
>
> http://www.devmoz.com/blog/2007/04/04/cakephp-update-a-select-box-usi...
>
> On Jul 5, 4:53 pm, Jon Molesa <[EMAIL PROTECTED]> wrote:
>
> > *On Thu, Jul 05, 2007 at 07:36:06AM -0700 ricarou51 <[EMAIL PROTECTED]> 
> > wrote:
>
> > > From: ricarou51 <[EMAIL PROTECTED]>
> > > To: Cake PHP 
> > > Subject: Select which populate another select
> > > Date: Thu, 05 Jul 2007 07:36:06 -0700
>
> > > Hello !
>
> > > I have a select tag in a view and I would like to populate a second
> > > select tag in the same view with the id selected of the first select
> > > tag .
>
> > > It means for example, a select tag with id and province name, and i
> > > would like to populate a second select tag with id and town name with
> > > the id of province selected before.
>
> > > How can I do this ?
>
> > I'm not expert, but the most common method would be to use some
> > javascript (AJAX), watch the event for the first select, then populate the
> > second.  OTOH, post/get could work too.
>
> > > Thanks
>
> > --
> > Jon Molesa
> > [EMAIL PROTECTED]
> > if you're bored or curioushttp://rjmolesa.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
-~--~~~~--~~--~--~---



Select which populate another select

2007-07-05 Thread ricarou51

Hello !

I have a select tag in a view and I would like to populate a second
select tag in the same view with the id selected of the first select
tag .

It means for example, a select tag with id and province name, and i
would like to populate a second select tag with id and town name with
the id of province selected before.

How can I do this ?

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



Define a different layout for several actions in a controller

2007-06-08 Thread ricarou51

Hi

Is it possible to define a layout different for example , with the
'add_user' view and login view, in the controler users ?

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: Before saving data

2007-05-28 Thread ricarou51

thanks a lot

On 28 mai, 16:24, francky06l <[EMAIL PROTECTED]> wrote:
> beforeSave() (the name id really explicit), is where you should place
> any specific data modification. If you use cake 1.2, you can make a
> behavior.
>
> On May 28, 4:01 pm, ricarou51 <[EMAIL PROTECTED]> wrote:
>
> > ( How can I do this ?)
>
> > On 28 mai, 15:13, ricarou51 <[EMAIL PROTECTED]> wrote:
>
> > > Hello,
>
> > > In my forms, when I 've got an input text, for example for a name, I
> > > would like to "look" the data , is meaning making for example a
> > > strtoupper of the data posted before saving in the database ...
>
> > > Why can I do this ?
>
> > > 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: Before saving data

2007-05-28 Thread ricarou51

( How can I do this ?)

On 28 mai, 15:13, ricarou51 <[EMAIL PROTECTED]> wrote:
> Hello,
>
> In my forms, when I 've got an input text, for example for a name, I
> would like to "look" the data , is meaning making for example a
> strtoupper of the data posted before saving in the database ...
>
> Why can I do this ?
>
> 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
-~--~~~~--~~--~--~---



Before saving data

2007-05-28 Thread ricarou51

Hello,

In my forms, when I 've got an input text, for example for a name, I
would like to "look" the data , is meaning making for example a
strtoupper of the data posted before saving in the database ...

Why can I do this ?

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: Why cake save to 0 value if you are editing a model ?

2007-05-23 Thread ricarou51

So cake considers 0 as default value for an integer isn't it ?

On 23 mai, 15:44, "Davide" <[EMAIL PROTECTED]> wrote:
> Chris Hartjes wrote:
> > Perhaps I'm wrong, but last I checked you can't set an integer to
> > NULL...the default for an integer would be zero, wouldn't it?
>
> on MySQL 4.1.14-nt (Windows XP)
>
> CREATE TABLE `xyz` (
>   `field1` int(11) default NULL,
>   `field2` int(11) default NULL
> ) ENGINE=MyISAM DEFAULT CHARSET=latin1
>
> mysql> insert into xyz (field2) value (1);
> Query OK, 1 row affected (0.00 sec)
>
> mysql> select * from xyz;
> +++
> | field1 | field2 |
> +++
> |   NULL |  1 |
> +++
> 1 row in set (0.00 sec)
>
> I had the doubt too :)
>
> Bye
> Davide


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



Why cake save to 0 value if you are editing a model ?

2007-05-23 Thread ricarou51

Hello,

I've this problem :

for any table which contains 'int' fields ( I put default value at
NULL in the database) , when I add a row whitout filling the input for
my int field, there is no problem but when I edit a row , if the input
for int field is empty, cake saves it to 0 and not to NULL 

Thanks for yours answers


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