Re: how to get SQL queries dump in shell (CLI) mode

2007-08-25 Thread isk

already found :)

Add in shell class something like this:

function initialize() {
Configure::write('debug', 2);
$this->_loadDbConfig();
$this->_loadModels();
}



On Aug 25, 4:21 pm, isk <[EMAIL PROTECTED]> wrote:
> Hi all!
>
> Quick question (no time to dig code) - how to get SQL queries dump in
> shell (CLI) mode ?
>
> Thanks,
> Isk


--~--~-~--~~~---~--~~
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 get SQL queries dump in shell (CLI) mode

2007-08-25 Thread isk

Hi all!

Quick question (no time to dig code) - how to get SQL queries dump in
shell (CLI) mode ?

Thanks,
Isk


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



ife() aim ?

2007-05-15 Thread isk

Hi all!

Who can explain me why ife() function is implemented by cake ? I mean
why just not use ternary operation:
cond ? expr1 : expr2
??

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



named parameters with zero value ?

2007-04-16 Thread isk

Hi all!

I need to pass named parameter with value 0 - but it seems
Router::url(array('par' => 0)) just ignores such parameter. But why?
Is this a bug ?

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: pagination issue in 1.2

2007-02-22 Thread isk

CAN  ANYBODY HELP?


--~--~-~--~~~---~--~~
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: pagination issue in 1.2

2007-02-22 Thread isk

this does not help too :) parameters still repeated.

On Feb 22, 1:19 am, "Cynthia" <[EMAIL PROTECTED]> wrote:
> Try it with:
>
> var $paginate= array( 'limit' => 2);
>
> I don't set any page value and it works *great* for me :)
>
> On Feb 21, 3:34 pm, "isk" <[EMAIL PROTECTED]> wrote:
>
> > thanks Preloader, I saw your trick in the groups - but it does not
> > work for me (I use
> > 1.2.0.4451alpha), parameters stay repeated even I do unset($this-
>
> > >params['pass']['page']) in the view before all paginator calls.
>
> > when I add  filtering parameters by array('url' => $this->params['pass']) 
> > my links does not work at all - they repeat all
>
> > parameters twice (like page:1page:1.. and so on), so links become
> > twice longer :)
>
> > but when I do your trick in the view - it makes links working (though
> > they are ugly)
>
> > 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: pagination issue in 1.2

2007-02-21 Thread isk

thanks Preloader, I saw your trick in the groups - but it does not
work for me (I use
1.2.0.4451alpha), parameters stay repeated even I do unset($this-
>params['pass']['page']) in the view before all paginator calls.

when I add  filtering parameters by array('url' => $this-
>params['pass']) my links does not work at all - they repeat all
parameters twice (like page:1page:1.. and so on), so links become
twice longer :)

but when I do your trick in the view - it makes links working (though
they are ugly)

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



pagination issue in 1.2

2007-02-21 Thread isk

I have this code in the AgentsController
var $paginate = array('limit' => 2, 'page' => 1);
...
function index() {
..
$this->set('table', $this->paginate('Agent'));
..
}

and this in the view:

prev('<< Previous', null, null, array('class' => 'nav-
dis')) ?>
|next('Next >>', null, null, array('class' => 'nav-
dis')) ?>

on the first page I get next link as action/page:2 - what is correct,
but on second page prev link generates as action/page:1page:1 (page
parameter repeated)

No extra code related to paginator.
Any thought ?
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
-~--~~~~--~~--~--~---