Re: Problem with transaction in version 2.0

2011-12-21 Thread socrates

Thanks all for the help, I solved in this way:
1) I move the code form the controller to the model. (I don't really
know if this help!)
2) I used the Datasource to start the transaction. (Like explained in
the docs)
3) I commit or rollback with the datasource, but the SQLLog in the
page shows only the query, and no trace of the transaction SQL code.

Code:

inside the Model
?php
  [...]

  $ds = this-getDataSource();
  $ds-begin($this);
  $result = $this-saveAssociated('params');
  if ($result) {
$ds-commit($this); // in the doc there are no trace of this, that
i have to pass like parameter the refernce to $this.
  } else {
$ds-rollback($this);
  }
?

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php


Form Helper: How can I control the HTML output? Specifically for radio buttons and check boxes

2011-12-21 Thread Ronen Amiel
Hey everyone,

I'm trying to get the hang of CakePHP, I really like the way this
framework is built, but I'm having a lot of trouble getting my code
right with the form helper class.

I find it very hard to get the HTML I want from an input without
inserting a lot of my html into --before--, --after-- and --between--,
which makes my code hard to read and maintain. For instance, I'm
trying to get html that looks like this with the form helper class:

label class=nopaddingGender/label
span class=radioinput type=radio name=gender value=male /
Male/span
span class=radioinput type=radio name=gender value=female /
 Female/span

I tried searching and reading the documentation but I didn't find a
way around it without using  --before--, --after--, --between--, and --
separator--.

Is there a cleaner way to get what I want or that I have to go the
ugly way to get what I want?

Thanks in advance, ;-)

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php


Re: What's all this SQL being run when running a controller unit test plan?

2011-12-21 Thread euromark
you could also put this into your bootstrap:

/**
 * Can compare two float values
 * @link http://php.net/manual/en/language.types.float.php
 * @return boolean
 */
function isFloatEqual($x, $y, $precision = 0.001) {
return ($x+$precision = $y)  ($x-$precision = $y);
}



On 21 Dez., 03:40, José Lorenzo jose@gmail.com wrote:
 Comparing floats in PHP is super annoying, go to the line that is comparing
 those 2 numbers and cast both values as string.

 $this-assertEqual((string) $value1,  (string) $value2);

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php


Re: Form Helper: How can I control the HTML output? Specifically for radio buttons and check boxes

2011-12-21 Thread euromark
you could probably extend the form helper (FormExtHelper etc) and work
your changes in in this class.
you could also try to use inputDefaults() in each form, but will be
less DRY.


On 20 Dez., 23:04, Ronen Amiel holytay...@gmail.com wrote:
 Hey everyone,

 I'm trying to get the hang of CakePHP, I really like the way this
 framework is built, but I'm having a lot of trouble getting my code
 right with the form helper class.

 I find it very hard to get the HTML I want from an input without
 inserting a lot of my html into --before--, --after-- and --between--,
 which makes my code hard to read and maintain. For instance, I'm
 trying to get html that looks like this with the form helper class:

 label class=nopaddingGender/label
 span class=radioinput type=radio name=gender value=male /
 Male/span
 span class=radioinput type=radio name=gender value=female /

  Female/span

 I tried searching and reading the documentation but I didn't find a
 way around it without using  --before--, --after--, --between--, and --
 separator--.

 Is there a cleaner way to get what I want or that I have to go the
 ugly way to get what I want?

 Thanks in advance, ;-)

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php


CakePHP 2.0 Migration guide

2011-12-21 Thread omar.abdallah
Hello all,


Is there any CakePHP 2.0 migration guide available? It will help alot
in spreading 2.0 plus. It will enable people to use plugins designed
for 1.3

Thank you,

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php


Re: CakePHP 2.0 Migration guide

2011-12-21 Thread euromark
hey there
you do know that google has been invented a few years ago (awesome
tool!), don't you?

anyway:
http://book.cakephp.org/2.0/en/appendices/2-0-migration-guide.html


On 21 Dez., 10:28, omar.abdallah omar@gmail.com wrote:
 Hello all,

 Is there any CakePHP 2.0 migration guide available? It will help alot
 in spreading 2.0 plus. It will enable people to use plugins designed
 for 1.3

 Thank you,

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php


$this-Auth-Allow('*') and scaffold problem

2011-12-21 Thread gloop
Hello everybody,

i cant believe it. I solved my last problem with Scaffold and now ive
a new one.

I add in my AppController an Auth and allow it to all my functions:
class AppController extends Controller {
   var $components = array('Acl',
'Auth' = array(
'authError' = 'Did you really think 
you are allowed to see
that?',
'authenticate' = array('Form'),
  ), 'Session');

  function beforeFilter(){
$this-Auth-allow('*');
  }
}

Now in my Scaffold page:

class CommentsController extends AppController{
  public $scaffold;

}

i cant view the scaffold page without login. I Always redirect me to /
users/login.

I Try in the CommentsController:

function beforeFilter() {
parent::beforeFilter(); //

$this-Auth-allowedActions = array('login', 'logout');
$this-Auth-autoRedirect = false;
}
}

But it didn't works too.

How can i solve my problem?

Kind Regards
Steffen

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php


Database table users for model User was not found AuthComponent

2011-12-21 Thread pers
Hi

Have encounter the same issue as bellow after upgrading an cake
application to 1.3 when a try to use a Ajax based contact form
It makes no different if a have
function beforeFilter() {
$this-Auth-allow('*');
}
It only works if a remove the Auth component

http://cakephp.lighthouseapp.com/projects/42648/tickets/746-form-stop-working-after-upgrade-to-13-database-table-users-for-model-user-was-not-found

Database table users for model User was not found
In Cake 1.2 my contact form works without any problem .

But a do not know what they mean at the end off the link bellow that
there settings is not right do any have any ideas how to allows forms?
For now it seems that you only can allow functions/actions.

My app_controller
function beforeFilter(){
$this-Auth-authorize = 'controller';
$this-Auth-authenticate = $this-ApplLogin;
$this-Auth-userModel = 'ApplLogin';
$this-Auth-sessionKey = 'User';
// Login action
$this-Auth-loginAction =
array(Configure::read('Routing.admin') = false, 'controller' =
'appl_logins', 'action' = 'login');

// Login redirect
$this-Auth-loginRedirect = array('/', 'controller' =
'appl_logins', 'action' = 'index');

// Change fields to authenticate agains
$this-Auth-fields = array(
'username' = 'useridee',
'password' = 'passwdee'
);


// Put extra critieria to login check
$this-Auth-userScope = array(
'ApplLogin.termdate+1  SYSDATE',
'ApplLogin.applcode' = 120
);

if(!array_key_exists('0',$this-Auth-userScope))
$this-Auth-loginError = Kontrakt upphört;

// Auto redirect turned off
$this-Auth-autoRedirect = false;

//$this-set('Auth', $this-Auth-user());
}

My form
?php echo $form-create(null, array('controller'=
'Placments','action' = 'contact','id'='contact'));?
 ?php echo $form-hidden('RequestAnswer.trid', array('value' =
$trid)); ?
?php echo $form-hidden('RequestAnswer.persid', array('value' =
$persid)); ?
   ?php echo $form-textarea('RequestAnswer.comment',

array('class'='placment-textfield','rows'='5')
   ); ?
?php echo $form-submit('skicka.gif',array('class'='treatment-
button')); ?
?php echo $form-end(); ?

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php


Re: Problem with transaction in version 2.0

2011-12-21 Thread Matteo Landi
On Wed, Dec 21, 2011 at 9:52 AM, socrates socrates.alessan...@gmail.com wrote:

 Thanks all for the help, I solved in this way:

Are you telling us that now transactions are working properly?

 1) I move the code form the controller to the model. (I don't really
 know if this help!)
 2) I used the Datasource to start the transaction. (Like explained in
 the docs)
 3) I commit or rollback with the datasource, but the SQLLog in the
 page shows only the query, and no trace of the transaction SQL code.

That's strange even if I think it is possible cakephp will not log
everything; however, maybe some cakephp-sql expert guys would shed
some light on the subject.


Matteo


 Code:

 inside the Model
 ?php
  [...]

  $ds = this-getDataSource();
  $ds-begin($this);
  $result = $this-saveAssociated('params');
  if ($result) {
    $ds-commit($this); // in the doc there are no trace of this, that
 i have to pass like parameter the refernce to $this.
  } else {
    $ds-rollback($this);
  }
 ?

 --
 Our newest site for the community: CakePHP Video Tutorials 
 http://tv.cakephp.org
 Check out the new CakePHP Questions site http://ask.cakephp.org and help 
 others with their CakePHP related questions.


 To unsubscribe from this group, send email to
 cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
 http://groups.google.com/group/cake-php




-- 
http://www.matteolandi.net/

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php


Re: Problem with transaction in version 2.0

2011-12-21 Thread socrates


On 21 Dic, 14:23, Matteo Landi mat...@matteolandi.net wrote:
 On Wed, Dec 21, 2011 at 9:52 AM, socrates socrates.alessan...@gmail.com 
 wrote:

 Are you telling us that now transactions are working properly?

 That's strange even if I think it is possible cakephp will not log
 everything; however, maybe some cakephp-sql expert guys would shed
 some light on the subject.

 Matteo

Yes, i do. If I call the datasource rollback method, the query has no
effect. The same doubt I have about the SQLLog on the page.
It will be great if some cake-php developer would enlight us!

Thanks again and have a nice day.

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php


Re: CakePHP 2.0 Migration guide

2011-12-21 Thread Thiago Belem
+1 for Google

http://lmgtfy.com/?q=cakephp+2.0+migration+guide

:P
--
***Thiago Belem*
Desenvolvedor
Rio de Janeiro - RJ - Brasil

+55 (21) 8865.9250
thiagobelem.net
cont...@thiagobelem.net

*Skype / gTalk **»* thiago.belem.web
*LinkedIn* *»* br.linkedin.com/in/thiagobelem/pt*
Assando Sites*, curso de CakePHP *»* assando-sites.com.br


2011/12/21 euromark dereurom...@googlemail.com

 hey there
 you do know that google has been invented a few years ago (awesome
 tool!), don't you?

 anyway:
 http://book.cakephp.org/2.0/en/appendices/2-0-migration-guide.html


 On 21 Dez., 10:28, omar.abdallah omar@gmail.com wrote:
  Hello all,
 
  Is there any CakePHP 2.0 migration guide available? It will help alot
  in spreading 2.0 plus. It will enable people to use plugins designed
  for 1.3
 
  Thank you,

 --
 Our newest site for the community: CakePHP Video Tutorials
 http://tv.cakephp.org
 Check out the new CakePHP Questions site http://ask.cakephp.org and help
 others with their CakePHP related questions.


 To unsubscribe from this group, send email to
 cake-php+unsubscr...@googlegroups.com For more options, visit this group
 at http://groups.google.com/group/cake-php


-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php


Re: $this-Auth-Allow('*') and scaffold problem

2011-12-21 Thread Sam Sherlock
Acl and scaffold don't play nice.

Comment that comp for now add it later

- S
On 21 Dec 2011 12:47, gloop gl...@web.de wrote:

 Hello everybody,

 i cant believe it. I solved my last problem with Scaffold and now ive
 a new one.

 I add in my AppController an Auth and allow it to all my functions:
 class AppController extends Controller {
   var $components = array('Acl',
'Auth' = array(
'authError' = 'Did you really
 think you are allowed to see
 that?',
'authenticate' = array('Form'),
  ), 'Session');

  function beforeFilter(){
$this-Auth-allow('*');
  }
 }

 Now in my Scaffold page:

 class CommentsController extends AppController{
  public $scaffold;

 }

 i cant view the scaffold page without login. I Always redirect me to /
 users/login.

 I Try in the CommentsController:

 function beforeFilter() {
parent::beforeFilter(); //

$this-Auth-allowedActions = array('login', 'logout');
$this-Auth-autoRedirect = false;
}
 }

 But it didn't works too.

 How can i solve my problem?

 Kind Regards
 Steffen

 --
 Our newest site for the community: CakePHP Video Tutorials
 http://tv.cakephp.org
 Check out the new CakePHP Questions site http://ask.cakephp.org and help
 others with their CakePHP related questions.


 To unsubscribe from this group, send email to
 cake-php+unsubscr...@googlegroups.com For more options, visit this group
 at http://groups.google.com/group/cake-php


-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php


Re: Organizing Controllers into subfolders in CakePHP 2

2011-12-21 Thread Brad Koch
So, in summary:
* Don't use subfolders anymore.
* If you want to start making partitions between files, use a plugin.

@Miles, just an example.  Lots of models would equal lots of
controllers.  I've had schemas that had over 60 tables before, so it
wouldn't be unreasonable at all to see up to 100.  I promise there's
no hideous case of abuse going on =)

On Dec 20, 9:55 pm, José Lorenzo jose@gmail.com wrote:
 I would use plugins, it is a very natural way of organizing related code
 into logical and reusable chunks

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php


Re: Organizing Controllers into subfolders in CakePHP 2

2011-12-21 Thread Miles J
Yeah but that doesn't correlate to a 1-to-1 relationship to
controllers. I've had apps with 60+ models but maybe only 20-30
controllers.

But again it depends on the app.

On Dec 21, 12:05 pm, Brad Koch bradkoch2...@gmail.com wrote:
 So, in summary:
 * Don't use subfolders anymore.
 * If you want to start making partitions between files, use a plugin.

 @Miles, just an example.  Lots of models would equal lots of
 controllers.  I've had schemas that had over 60 tables before, so it
 wouldn't be unreasonable at all to see up to 100.  I promise there's
 no hideous case of abuse going on =)

 On Dec 20, 9:55 pm, José Lorenzo jose@gmail.com wrote:







  I would use plugins, it is a very natural way of organizing related code
  into logical and reusable chunks

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php


CakePHP 2.X

2011-12-21 Thread Ucha19871
Hello, I am new in CakePHP and what to know, when will be CakePHP 2.x
book available ?
Can you give me links for the new (2.0) book pleas ?

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php


Re: CakePHP 2.X

2011-12-21 Thread Timothy O'Reilly
I'm a newbie too :)
http://book.cakephp.org/2.0/en/
Regards,
Tim


On Wed, Dec 21, 2011 at 2:49 PM, Ucha19871 ucha19871...@yahoo.com wrote:

 Hello, I am new in CakePHP and what to know, when will be CakePHP 2.x
 book available ?
 Can you give me links for the new (2.0) book pleas ?

 --
 Our newest site for the community: CakePHP Video Tutorials
 http://tv.cakephp.org
 Check out the new CakePHP Questions site http://ask.cakephp.org and help
 others with their CakePHP related questions.


 To unsubscribe from this group, send email to
 cake-php+unsubscr...@googlegroups.com For more options, visit this group
 at http://groups.google.com/group/cake-php




-- 
| cellphone: +18579280348 |

| 123 10th Street | San Francisco | CA 94103 |
| web: www.zign.me | skype: timothy.o.reilly | twitter: @timothyjoreilly |

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php


Re: CakePHP 2.X

2011-12-21 Thread Tilen Majerle
http://book.cakephp.org/2.0/en/

here we are :)
--
Lep pozdrav, Tilen Majerle
http://majerle.eu



2011/12/21 Ucha19871 ucha19871...@yahoo.com

 Hello, I am new in CakePHP and what to know, when will be CakePHP 2.x
 book available ?
 Can you give me links for the new (2.0) book pleas ?

 --
 Our newest site for the community: CakePHP Video Tutorials
 http://tv.cakephp.org
 Check out the new CakePHP Questions site http://ask.cakephp.org and help
 others with their CakePHP related questions.


 To unsubscribe from this group, send email to
 cake-php+unsubscr...@googlegroups.com For more options, visit this group
 at http://groups.google.com/group/cake-php


-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php


Re: CakePHP 2.X

2011-12-21 Thread Ucha19871
ooh thx.. I know this documentation,but .. do you have a PDF version
of this documentation .. or .CHM file..
so i can use it locally, without Internet..

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php


Re: CakePHP 2.X

2011-12-21 Thread euromark
a (web)programmer that doesnt have internet? :)


On 21 Dez., 23:56, Ucha19871 ucha19871...@yahoo.com wrote:
 ooh thx.. I know this documentation,but .. do you have a PDF version
 of this documentation .. or .CHM file..
 so i can use it locally, without Internet..

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php


Re: CakePHP 2.X

2011-12-21 Thread M Kaufman (Gmail)
What about one with a 42u rack in his random location without Internet, 
operating quite securely, and avoiding theft or notice?

Sent from my iPhone

On Dec 21, 2011, at 4:50 PM, euromark dereurom...@googlemail.com wrote:

 a (web)programmer that doesnt have internet? :)
 
 
 On 21 Dez., 23:56, Ucha19871 ucha19871...@yahoo.com wrote:
 ooh thx.. I know this documentation,but .. do you have a PDF version
 of this documentation .. or .CHM file..
 so i can use it locally, without Internet..
 
 -- 
 Our newest site for the community: CakePHP Video Tutorials 
 http://tv.cakephp.org 
 Check out the new CakePHP Questions site http://ask.cakephp.org and help 
 others with their CakePHP related questions.
 
 
 To unsubscribe from this group, send email to
 cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
 http://groups.google.com/group/cake-php

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php


editing user data when password doesn't change

2011-12-21 Thread elogic
Hi All,

I am using Auth and I have an edit user details page, the password is
coming though hashed into the password field, if the user doesn't
change the password, the hashed password get re-hashed and therefore
it will be unknown to the user. How do I get around this issue?

Thanks

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php


Re: CakePHP 2.X

2011-12-21 Thread Justin Edwards
If a tree falls in a forest and no one is around to see it, do all of the
other trees make fun of it?


On Wed, Dec 21, 2011 at 7:38 PM, M Kaufman (Gmail) mkfmn...@gmail.comwrote:

 What about one with a 42u rack in his random location without Internet,
 operating quite securely, and avoiding theft or notice?

 Sent from my iPhone

 On Dec 21, 2011, at 4:50 PM, euromark dereurom...@googlemail.com wrote:

  a (web)programmer that doesnt have internet? :)
 
 
  On 21 Dez., 23:56, Ucha19871 ucha19871...@yahoo.com wrote:
  ooh thx.. I know this documentation,but .. do you have a PDF version
  of this documentation .. or .CHM file..
  so i can use it locally, without Internet..
 
  --
  Our newest site for the community: CakePHP Video Tutorials
 http://tv.cakephp.org
  Check out the new CakePHP Questions site http://ask.cakephp.org and
 help others with their CakePHP related questions.
 
 
  To unsubscribe from this group, send email to
  cake-php+unsubscr...@googlegroups.com For more options, visit this
 group at http://groups.google.com/group/cake-php

 --
 Our newest site for the community: CakePHP Video Tutorials
 http://tv.cakephp.org
 Check out the new CakePHP Questions site http://ask.cakephp.org and help
 others with their CakePHP related questions.


 To unsubscribe from this group, send email to
 cake-php+unsubscr...@googlegroups.com For more options, visit this group
 at http://groups.google.com/group/cake-php


-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php


Re: Problem with transaction in version 2.0

2011-12-21 Thread José Lorenzo
Only the model queries and those you manually do with query() will be 
logged. There is actually no reason for that, except that it make logs a 
lot more cleaner. If you think transaction queries should be logged, please 
open a ticket explaining your use case.

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php


Re: Organizing Controllers into subfolders in CakePHP 2

2011-12-21 Thread Jeremy Burns | Class Outfit
Having an admin interface that allows you to manage 'static' data would lead to 
at least one controller for each model/table, probably.

Jeremy Burns
Class Outfit

http://www.classoutfit.com

On 21 Dec 2011, at 20:05:29, Brad Koch wrote:

 So, in summary:
 * Don't use subfolders anymore.
 * If you want to start making partitions between files, use a plugin.
 
 @Miles, just an example.  Lots of models would equal lots of
 controllers.  I've had schemas that had over 60 tables before, so it
 wouldn't be unreasonable at all to see up to 100.  I promise there's
 no hideous case of abuse going on =)
 
 On Dec 20, 9:55 pm, José Lorenzo jose@gmail.com wrote:
 I would use plugins, it is a very natural way of organizing related code
 into logical and reusable chunks
 
 -- 
 Our newest site for the community: CakePHP Video Tutorials 
 http://tv.cakephp.org 
 Check out the new CakePHP Questions site http://ask.cakephp.org and help 
 others with their CakePHP related questions.
 
 
 To unsubscribe from this group, send email to
 cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
 http://groups.google.com/group/cake-php

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php


Removing On behalf of from the Email From field Cakephp 1.3

2011-12-21 Thread hunny
Hi All,

I am using the email component of cakephp 1.3 to send emails.
In the From Field, I am using the following code.

$this-Email-from = 'my_default_n...@sitename.com'

However, when the user recieves the email it reads as
sta...@servername.com on behalf of my_default_n...@sitename.com

What I would like to do is to remove the text coming before and
including on behalf of. Is this something that can be managed by
using the Email Component. Do I need to ask the hosting company to
make some changes on server. Shall I consider using the SMTP Server.

Waiting for the suggestions.

Thanks in advance.

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php


Choosing cakephp version

2011-12-21 Thread Kiran Ambati
Hi All,

After working with drupal and wordpress for past 6 months i am switching
back to cakephp for a game project. I see cakephp 2.04 is latest version
available. I want to know what is the right version to start project with.
Are there any major differences in terms of cake API.

it is a multiplayer project, coded on flex and it needs to be integrated in
cake.

What is the best choice? cakephp 1.3 or 2.x ?

I also want to know is there any better options for flex and php
integration?

I searched forum before posing but i dint find relevant answer.


*
*

-- 
*Thank you,*
*Kiran.*

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php


facebook bug

2011-12-21 Thread arti grover
Hi,


Hello all,


i  have made a logout button in my app.in userheader and header
respectively.But when i click on logout button it logs me out of app but
not from facebook and also after logging out from app again when i login it
doesnot delete the session but again logs me in via my facebook
accountplz help...

Header code
if($this-Session-read(facebook_id)==1)
{
echo $html-link('logout', array('controller' = 'users',
'action' = 'logout'));








}
else
{

a href=?php echo ABSOLUTE_URL; ?/users/logout?php
__('logout')?/a
   }


logout function in controller code
$this-Session-delete('userdetails');
 $this-Session-delete('facebook_id');
  $language_name=$this-Session-read('language');
 $this-Session-destroy();

-- 
Regards
Arti Grover

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php


Re: Problem with transaction in version 2.0

2011-12-21 Thread Alessandro Manias
No it's ok, now that i know that! Surely it's a lot clearer the log in this
way. Thank you

2011/12/22 José Lorenzo jose@gmail.com

 Only the model queries and those you manually do with query() will be
 logged. There is actually no reason for that, except that it make logs a
 lot more cleaner. If you think transaction queries should be logged, please
 open a ticket explaining your use case.

 --
 Our newest site for the community: CakePHP Video Tutorials
 http://tv.cakephp.org
 Check out the new CakePHP Questions site http://ask.cakephp.org and help
 others with their CakePHP related questions.


 To unsubscribe from this group, send email to
 cake-php+unsubscr...@googlegroups.com For more options, visit this group
 at http://groups.google.com/group/cake-php


-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php


Re: facebook bug

2011-12-21 Thread flo.kl...@googlemail.com
Hi arti,

In your code both if-else statements say 'logout', one should be 'login'. 
And I also dont see that you actually log off facebook. You just destroy the 
cake session, the fb session is still valid.
If you want to use facebook with cake I recommend the Plugin by webtechnick. It 
also works perfectly with cakes Auth component.

-flosky



arti grover groverar...@gmail.com schrieb:

Hi,


Hello all,


i  have made a logout button in my app.in userheader and header 
respectively.But when i click on logout button it logs me out of app but not 
from facebook and also after logging out from app again when i login it doesnot 
delete the session but again logs me in via my facebook accountplz help...

Header code
if($this-Session-read(facebook_id)==1)
{ 
echo $html-link('logout', array('controller' = 'users', 
'action' = 'logout'));


  




  
}
else
{
   
a href=?php echo ABSOLUTE_URL; ?/users/logout?php 
__('logout')?/a
   } 


logout function in controller code
$this-Session-delete('userdetails');
 $this-Session-delete('facebook_id');
  $language_name=$this-Session-read('language');
 $this-Session-destroy();

-- 
Regards
Arti Grover

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.
 
 
To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php