Thursday, May 31, 2012

Re: browser compatibility: the weirdest thing ever with IE. throws flash message all the time!!!

If it only occurs on IE it might be a prolem with the user session.
Try setting Session.checkAgent to false in core.php and see if that
helps.
I had problems with sessions getting dropped in IE, with this setting
on.

On May 31, 9:33 pm, luftlinie <thomasfuch...@googlemail.com> wrote:
> hi everyone,
>
> I try to explain it shortly. When a user clicks on any profile, my
> controller function checks if that user is active oder locked. active
> means account is activated, locked means locked ;).
>
> now i have been testing this with chrome, safari and firefox for
> months!!! the process works, 100%.
>
> BUT with Internet Explorer... if I go on any users profile, activated
> or unlocked, cake throws me the message, although, logically, it is
> correct in my code. it worked in other browsers and IE goes to those
> profile without redirecting..
> I am not even close to getting this. I am totally stunned. Its so
> weird.
>
> Is there any way, that IE cant handle cakes flash messages, or the CSS
> with it?
>
> here is my controller profile code:
> =======================================================
> $locked = $this->User->find('first', array(
>                             'fields' => array('User.id','User.locked', 'User.active'),
>                             'conditions' => array('User.id = \''.$id.'\' AND User.locked =
> false')
>                             ));
>
>                 if(!empty($locked))
>                 {
>                         if($locked['User']['active'] == true)
>                         {
>
>                                 if($id != $this->Session->read('User.id')) //visitor!!
>                                 {
>
>                             some code here........
>                                 }
>                                 else //profile owner!!
>                                 {
>                                         some code here........
>                                 }
>
>                         }//active
>                         else
>                         {
>                                 $this->Session->setFlash('this account is not active.');
>                                 $this->redirect(array('controller' => 'users', 'action' =>
> 'profile', $this->Session->read('User.id')));
>                         exit();
>                         }
>
>         }//unlocked
>         else
>         {
>                 $this->Session->setFlash('user has been deleted');
>                 $this->redirect(array('controller' => 'users', 'action' =>
> 'profile', $this->Session->read('User.id')));
>                 exit();
>         }
>
>      }
> =====================================================
>
> so IE always(!) goes to that certain profile throws this line
> $this->Session->setFlash('this account is not active.');
>
> BTW i am using this code to throw the cake typical messages
> if($session->check('Message.flash')):
>                                         echo $session->flash();
>                                 endif;
>
> appreciate your help. thanks soooo much

--
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+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php

Re: Missing Controller Error

is that controller in app/controllers?
and try to add 
  var $name = "Posts";
in the class

On Fri, Jun 1, 2012 at 1:16 PM, ying yang <yingyang99999@gmail.com> wrote:
<?php
class PostsController extends AppController {

}

?>

On Fri, Jun 1, 2012 at 10:13 AM, Kid Noire <thiskidnoire@gmail.com> wrote:
I've just installed CakePHP and trying to get myself through
Andrewperk's blog tutorial but I get this error  after the second
video...

Missing Controller
Error: PostsController could not be found.
Error: Create the class PostsController below in file: app/Controller/
PostsController.php
<?php
class PostsController extends AppController {

}

I've tried to Google my way out of this one but don't have the
technical expertise to comprehend the suggestions I find.  I'm
assuming my routes are a bit f'd up so if anyone could help me I would
be greatly appreciative.



Sincerely,

A Noob


------------

BTW I'm using XAMPP on a Mac

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+unsubscribe@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+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php



--
Rui WANG(王瑞)
Murray
School of Electronics Engineering and Computer Science,
Peking University

--
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+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php

Re: Missing Controller Error

<?php
class PostsController extends AppController {

}

?>

On Fri, Jun 1, 2012 at 10:13 AM, Kid Noire <thiskidnoire@gmail.com> wrote:
I've just installed CakePHP and trying to get myself through
Andrewperk's blog tutorial but I get this error  after the second
video...

Missing Controller
Error: PostsController could not be found.
Error: Create the class PostsController below in file: app/Controller/
PostsController.php
<?php
class PostsController extends AppController {

}

I've tried to Google my way out of this one but don't have the
technical expertise to comprehend the suggestions I find.  I'm
assuming my routes are a bit f'd up so if anyone could help me I would
be greatly appreciative.



Sincerely,

A Noob


------------

BTW I'm using XAMPP on a Mac

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+unsubscribe@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+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php

Re: Missing Controller Error

Hello

Please share your code here.

Thanks

On Friday, 1 June 2012 07:43:09 UTC+5:30, Kid Noire wrote:
I've just installed CakePHP and trying to get myself through
Andrewperk's blog tutorial but I get this error  after the second
video...

Missing Controller
Error: PostsController could not be found.
Error: Create the class PostsController below in file: app/Controller/
PostsController.php
<?php
class PostsController extends AppController {

}

I've tried to Google my way out of this one but don't have the
technical expertise to comprehend the suggestions I find.  I'm
assuming my routes are a bit f'd up so if anyone could help me I would
be greatly appreciative.



Sincerely,

A Noob


------------

BTW I'm using XAMPP on a Mac

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+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php

A session problem using database(cake-sessions)

I'm planning to use the database session mode in cake 1.3 for load
balance through servers. However, in one of my servers, the session
expires immediately while i write a session value, and the records in
the database is odd and very very long.(The records from other servers
are short). It's something like this:

Config|N;s:9:&amp;amp;quot;userAgent&amp;amp;quot;;s:
0:&amp;amp;quot;&amp;amp;quot;;s:4:&amp;amp;quot;time&amp;amp;quot;;i:
1339560686;s:7:&amp;amp;quot;timeout&amp;amp;quot;;i:10;}s:
9:&amp;amp;amp;quot;userAgent&amp;amp;amp;quot;;s:
0:&amp;amp;amp;quot;&amp;amp;amp;quot;;s:
4:&amp;amp;amp;quot;time&amp;amp;amp;quot;;i:1339560681;s:
7:&amp;amp;amp;quot;timeout&amp;amp;amp;quot;;i:10;}s:
9:&amp;amp;amp;amp;quot;userAgent&amp;amp;amp;amp;quot;;s:
0:&amp;amp;amp;amp;quot;&amp;amp;amp;amp;quot;;s:
4:&amp;amp;amp;amp;quot;time&amp;amp;amp;amp;quot;;i:1339560681;s:
7:&amp;amp;amp;amp;quot;timeout&amp;amp;amp;amp;quot;;i:10;}s:
9:&amp;amp;amp;amp;amp;quot;userAgent&amp;amp;amp;amp;amp;quot;;s:
0:&amp;amp;amp;amp;amp;quot;&amp;amp;amp;amp;amp;quot;;s:
4:&amp;amp;amp;amp;amp;quot;time&amp;amp;amp;amp;amp;quot;;i:
1339560681;s:
7:&amp;amp;amp;amp;amp;quot;timeout&amp;amp;amp;amp;amp;quot;;i:10;}s:
9:&amp;amp;amp;amp;amp;amp;quot;userAgent&amp;amp;amp;amp;amp;amp;quot;;s:
0:&amp;amp;amp;amp;amp;amp;quot;&amp;amp;amp;amp;amp;amp;quot;;s:
4:&amp;amp;amp;amp;amp;amp;quot;time&amp;amp;amp;amp;amp;amp;quot;;i:
1339560681;s:
7:&amp;amp;amp;amp;amp;amp;quot;timeout&amp;amp;amp;amp;amp;amp;quot;;i:
10;}s:
9:&amp;amp;amp;amp;amp;amp;amp;quot;userAgent&amp;amp;amp;amp;amp;amp;amp;quot;;s:
0:&amp;amp;amp;amp;amp;amp;amp;quot;&amp;amp;amp;amp;amp;amp;amp;quot;;s:
4:&amp;amp;amp;amp;amp;amp;amp;quot;time&amp;amp;amp;amp;amp;amp;amp;quot;;i:
1339560681;s:
7:&amp;amp;amp;amp;amp;amp;amp;quot;timeout&amp;amp;amp;amp;amp;amp;amp;quot;;i:
10;}s:
9:&amp;amp;amp;amp;amp;amp;amp;amp;quot;userAgent&amp;amp;amp;amp;amp;amp;amp;amp;quot;;s:
0:&amp;amp;amp;amp;amp;amp;amp;amp;quot;&amp;amp;amp;amp;amp;amp;amp;amp;quot;;s:
4:&amp;amp;amp;amp;amp;amp;amp;amp;quot;time&amp;amp;amp;amp;amp;amp;amp;amp;quot;;i:
1339560680;s:
7:&amp;amp;amp;amp;amp;amp;amp;amp;quot;timeout&amp;amp;amp;amp;amp;amp;amp;amp;quot;;i:
10;}s:
9:&amp;amp;amp;amp;amp;amp;amp;amp;amp;quot;userAgent&amp;amp;amp;amp;amp;amp;amp;amp;amp;quot;;s:
0:&amp;amp;amp;amp;amp;amp;amp;amp;amp;quot;&amp;amp;amp;amp;amp;amp;amp;amp;amp;quot;;s:
4:&amp;amp;amp;amp;amp;amp;amp;amp;amp;quot;time&amp;amp;amp;amp;amp;amp;amp;amp;amp;quot;;i:
1339560637;s:
7:&amp;amp;amp;amp;amp;amp;amp;amp;amp;quot;timeout&amp;amp;amp;amp;amp;amp;amp;amp;amp;quot;;i:
10;}s:
9:&amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;quot;userAgent&amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;quot;;s:
0:&amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;quot;&amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;quot;;s:
4:&amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;quot;time&amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;quot;;i:
1339560636;s:
7:&amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;quot;timeout&amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;quot;;i:
10;}s:
9:&amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;quot;userAgent&amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;quot;;s:
0:&amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;quot;&amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;quot;;s:
4:&amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;quot;time&amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;quot;;i:
1339560636;s:
7:&amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;quot;timeout&amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;quot;;i:
10;}s:
9:&amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;quot;userAgent&amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;quot;;s:
0:&amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;quot;&amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;quot;;s:
4:&amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;quot;time&amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;quot;;i:
1339560635;s:
7:&amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;quot;timeout&amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;quot;;i:
10;}s:
9:&amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;quot;userAgent&amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;quot;;s:
0:&amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;quot;&amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;quot;;s:
4:&amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;quot;time&amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;quot;;i:
1339560634;s:
7:&amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;quot;timeout&amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;quot;;i:
10;}s:
9:&amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;quot;userAgent&amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;quot;;s:
0:&amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;quot;&amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;quot;;s:
4:&amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;quot;time&amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;quot;;i:
1339560633;s:
7:&amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;quot;timeout&amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;quot;;i:
10;}s:
9:&amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;quot;userAgent&amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;quot;;s:
0:&amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;quot;&amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;quot;;s:
4:&amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;quot;time&amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;quot;;i:
1339560625;s:
7:&amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;quot;timeout&amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;quot;;i:
10;}s:
9:&amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;quot;userAgent&amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;quot;;s:
0:&amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;quot;&amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;quot;;s:
4:&amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;quot;time&amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;quot;;i:
1339560625;s:
7:&amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;quot;timeout&amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;quot;;i:
10;}s:
9:&amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;quot;userAgent&amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;quot;;s:
0:&amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;quot;&amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;quot;;s:
4:&amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;quot;time&amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;quot;;i:
1339560624;s:
7:&amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;quot;timeout&amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;quot;;i:
10;}s:
9:&amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;quot;userAgent&amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;quot;;s:
0:&amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;quot;&amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;quot;;s:
4:&amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;quot;time&amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;quot;;i:
1339560624;s:
7:&amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;quot;timeout&amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;quot;;i:
10;}s:
9:&amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;quot;userAgent&amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;quot;;s:
0:&amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;quot;&amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;quot;;s:
4:&amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;quot;time&amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;quot;;i:
1339560623;s:
7:&amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;quot;timeout&amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;quot;;i:
10;}s:
9:&amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;quot;userAgent&amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;quot;;s:
0:&amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;quot;&amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;quot;;s:
4:&amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;quot;time&amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;quot;;i:
1339560622;s:
7:&amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;quot;timeout&amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;quot;;i:
10;}s:
9:&amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;quot;userAgent&amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;quot;;s:
0:&amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;quot;&amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;quot;;s:
4:&amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;quot;time&amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;quot;;i:
1339560621;s:
7:&amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;quot;timeout&amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;quot;;i:
10;}s:
9:&amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;quot;userAgent&amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;quot;;s:
0:&amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;quot;&amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;quot;;s:
4:&amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;quot;time&amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;quot;;i:
1339560620;s:
7:&amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;quot;timeout&amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;quot;;i:
10;}login_errors|i:0;s:
3:&amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;quot;uid&amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;quot;;s:
4:&amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;quot;
2096&amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;quot;;s:
8:&amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;quot;username&amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;quot;;s:
17:&amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;quot;
渣克
_benedicted&amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;quot;;}
login_errors|i:0;s:
3:&amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;quot;uid&amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;quot;;s:
4:&amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;quot;
2096&amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;quot;;s:
8:&amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;quot;username&amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;quot;;s:
17:&amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;quot;
渣克
_benedicted&amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;quot;;}
login_errors|i:0;s:
3:&amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;quot;uid&amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;quot;;s:
4:&amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;quot;
2096&amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;quot;;s:
8:&amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;quot;username&amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;quot;;s:
17:&amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;quot;
渣克
_benedicted&amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;quot;;s:
5:&amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;quot;email&amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;quot;;s:
17:&amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;quot;
渣克
_benedicted&amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;quot;;s:
6:&amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;quot;avatar&amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;quot;;s:
0:&amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;quot;&amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;quot;;s:
8:&amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;quot;fullname&amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;quot;;s:
0:&amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;quot;&amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;quot;;s:
8:&amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;quot;is_agent&amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;quot;;s:
1:&amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;quot;
1&amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;quot;;}
login_errors|i:0;s:
3:&amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;quot;uid&amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;quot;;s:
4:&amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;quot;
2096&amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;quot;;s:
8:&amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;quot;username&amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;quot;;s:
17:&amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;quot;
渣克
_benedicted&amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;quot;;}
login_errors|i:0;login_errors|i:0;FrontendLogin|N;s:
3:&amp;amp;quot;uid&amp;amp;quot;;s:4:&amp;amp;quot;
2096&amp;amp;quot;;s:8:&amp;amp;quot;username&amp;amp;quot;;s:
17:&amp;amp;quot;渣克_benedicted&amp;amp;quot;;}s:
3:&amp;amp;amp;quot;uid&amp;amp;amp;quot;;s:4:&amp;amp;amp;quot;
2096&amp;amp;amp;quot;;s:
8:&amp;amp;amp;quot;username&amp;amp;amp;quot;;s:17:&amp;amp;amp;quot;渣
克_benedicted&amp;amp;amp;quot;;}s:
3:&amp;amp;amp;amp;amp;quot;uid&amp;amp;amp;amp;amp;quot;;s:
4:&amp;amp;amp;amp;amp;quot;2096&amp;amp;amp;amp;amp;quot;;s:
8:&amp;amp;amp;amp;amp;quot;username&amp;amp;amp;amp;amp;quot;;s:
17:&amp;amp;amp;amp;amp;quot;渣克_benedicted&amp;amp;amp;amp;amp;quot;;}
s:3:&amp;amp;amp;amp;amp;amp;quot;uid&amp;amp;amp;amp;amp;amp;quot;;s:
4:&amp;amp;amp;amp;amp;amp;quot;2096&amp;amp;amp;amp;amp;amp;quot;;s:
8:&amp;amp;amp;amp;amp;amp;quot;username&amp;amp;amp;amp;amp;amp;quot;;s:
17:&amp;amp;amp;amp;amp;amp;quot;渣克
_benedicted&amp;amp;amp;amp;amp;amp;quot;;}s:
3:&amp;amp;amp;amp;amp;amp;amp;amp;quot;uid&amp;amp;amp;amp;amp;amp;amp;amp;quot;;s:
4:&amp;amp;amp;amp;amp;amp;amp;amp;quot;
2096&amp;amp;amp;amp;amp;amp;amp;amp;quot;;s:
8:&amp;amp;amp;amp;amp;amp;amp;amp;quot;username&amp;amp;amp;amp;amp;amp;amp;amp;quot;;s:
17:&amp;amp;amp;amp;amp;amp;amp;amp;quot;渣克
_benedicted&amp;amp;amp;amp;amp;amp;amp;amp;quot;;}s:
3:&amp;amp;amp;amp;amp;amp;amp;amp;amp;quot;uid&amp;amp;amp;amp;amp;amp;amp;amp;amp;quot;;s:
4:&amp;amp;amp;amp;amp;amp;amp;amp;amp;quot;
2096&amp;amp;amp;amp;amp;amp;amp;amp;amp;quot;;s:
8:&amp;amp;amp;amp;amp;amp;amp;amp;amp;quot;username&amp;amp;amp;amp;amp;amp;amp;amp;amp;quot;;s:
17:&amp;amp;amp;amp;amp;amp;amp;amp;amp;quot;渣克
_benedicted&amp;amp;amp;amp;amp;amp;amp;amp;amp;quot;;}
verification_code|N;s:
4:&amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;quot;ppgb&amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;quot;;FrontendLogin|
N;s:
3:&amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;quot;uid&amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;quot;;s:
4:&amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;quot;
2096&amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;quot;;s:
8:&amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;quot;username&amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;quot;;s:
17:&amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;quot;渣克
_benedicted&amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;quot;;}s:
3:&amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;quot;uid&amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;quot;;s:
4:&amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;quot;
2096&amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;quot;;s:
8:&amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;quot;username&amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;quot;;s:
17:&amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;quot;渣克
_benedicted&amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;quot;;s:
5:&amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;quot;email&amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;quot;;s:
17:&amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;quot;渣克
_benedicted&amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;quot;;s:
6:&amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;quot;avatar&amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;quot;;s:
0:&amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;quot;&amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;quot;;s:
8:&amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;quot;fullname&amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;quot;;s:
0:&amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;quot;&amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;quot;;s:
8:&amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;quot;is_agent&amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;quot;;s:
1:&amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;quot;
1&amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;quot;;}
weibo_access_token|N;s:
12:&amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;quot;access_token&amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;quot;;s:
32:&amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;quot;
2.00MDvwrCT7LoOC573942f521uChIZD&amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;quot;;s:
9:&amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;quot;remind_in&amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;quot;;s:
5:&amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;quot;
60337&amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;quot;;s:
10:&amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;quot;expires_in&amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;quot;;i:
60337;s:
3:&amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;quot;uid&amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;quot;;s:
10:&amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;quot;
2629453802&amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;quot;;}s:
3:&amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;quot;uid&amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;quot;;s:
4:&amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;quot;
2096&amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;quot;;s:
8:&amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;quot;username&amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;quot;;s:
17:&amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;quot;渣克
_benedicted&amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;quot;;}
last_visiting_url|N;s:
1:&amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;quot;/
&amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;quot;;s:
3:&amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;quot;uid&amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;quot;;s:
4:&amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;quot;
2096&amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;quot;;s:
8:&amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;quot;username&amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;quot;;s:
17:&amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;quot;渣克
_benedicted&amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;quot;;}
verification_code|N;s:
4:&amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;quot;
2ie6&amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;quot;;FrontendLogin|
N;s:
12:&amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;quot;access_token&amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;quot;;s:
32:&amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;quot;
2.00MDvwrCT7LoOC573942f521uChIZD&amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;quot;;s:
9:&amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;quot;remind_in&amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;quot;;s:
5:&amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;quot;
60347&amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;quot;;s:
10:&amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;quot;expires_in&amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;quot;;i:
60347;s:
3:&amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;quot;uid&amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;quot;;s:
10:&amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;quot;
2629453802&amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;quot;;}
s:
3:&amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;quot;uid&amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;quot;;s:
4:&amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;quot;
2096&amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;quot;;s:
8:&amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;quot;username&amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;quot;;s:
17:&amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;quot;
渣克
_benedicted&amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;quot;;}
last_visiting_url|N;verification_code|N;

what happens????

--
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+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php

Missing Controller Error

I've just installed CakePHP and trying to get myself through
Andrewperk's blog tutorial but I get this error after the second
video...

Missing Controller
Error: PostsController could not be found.
Error: Create the class PostsController below in file: app/Controller/
PostsController.php
<?php
class PostsController extends AppController {

}

I've tried to Google my way out of this one but don't have the
technical expertise to comprehend the suggestions I find. I'm
assuming my routes are a bit f'd up so if anyone could help me I would
be greatly appreciative.



Sincerely,

A Noob


------------

BTW I'm using XAMPP on a Mac

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+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php

Re: View

not really understanding the question... are you having trouble setting values in the controller to expose them in the view?

really hard to help without code. Do you have some code you can share?


On Fri, Jun 1, 2012 at 10:07 AM, ying yang <yingyang99999@gmail.com> wrote:
I have a problem here, i have tableA and tableB in tableA i can view the information or data I input.
but I want to know how i can view tableB information using tableA view? how i can do that in cakephp2.0?
thank you 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+unsubscribe@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+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php

View

I have a problem here, i have tableA and tableB in tableA i can view the information or data I input.
but I want to know how i can view tableB information using tableA view? how i can do that in cakephp2.0?
thank you 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+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php

Re: Using PHP's Interface as Extension Point

Over engineering.

Second system effect?

The Mythical Man Month

http://en.wikipedia.org/wiki/The_Mythical_Man_Month#The_second-system_effect

On May 31, 2012, at 1:39 PM, Jamie wrote:

I suggest that you use the event system to accomplish this, as it does
exactly what you're describing:

http://book.cakephp.org/2.0/en/core-libraries/events.html

So, let's say you have a Navigation plugin and you want to gather
navigation items from every plugin in your app. When you want to
gather the items, you'd broadcast an event. You'd have listeners in
each plugin that would listen for the broadcast and return the items
you want.

- Jamie

On May 31, 9:53 am, Vinicius Dusso <vinidu...@gmail.com> wrote:
Sure, I know I'm able to use Interfaces where I want to. I just want to
know if there is a easier way to do this using the CakePHP Plugins. And if
isn't, if there is a pattern to use Interfaces and let the CakePHP
autoinclude them, like it did with the MVC classes.

Thanks,

Vinicius







On Thursday, May 31, 2012 1:07:35 PM UTC-3, jeremyharris wrote:

CakePHP is just PHP, so there's no reason you couldn't use interfaces
where you wanted to. The users of the plugins would just need to understand
that they need to implement them.

On Thursday, May 31, 2012 4:07:13 AM UTC-7, Vinicius Dusso wrote:

Hello all,

Did everyone tried to use PHP's Interface as Extension Point in CakePHP?
My idea is to create a fully modular app. To build a menu, for example, I
would be able to do something like this:

The method 'getExtensionPoint' will get all the classes that implements
the given interface, at run time.

// The core of extension point
class MenuController {

  function _buildMenu() {
    $menu = array();

    $menuProviders = $this->getExtensionPoint('IMenu');
    foreach($menuProviders as $menuProvider) {
      $menu += $menuProvider->getMenu();
    }
  }

}

// Some class ( could be a Controller or a Model ) which uses this
extension point
class User implements IMenu {

  function getMenu() {
    return array('Users' => '/user/list');
  }

}

// The Interface, to bind the extended classes
public interface IMenu {
  function getMenu();
}

Sorry for write all this code here.
Someone already did something like this? This can be done using the
plugins in CakePHP ?

Thanks in advance !

Vinicius

--
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+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php

Re: Using PHP's Interface as Extension Point

I suggest that you use the event system to accomplish this, as it does
exactly what you're describing:

http://book.cakephp.org/2.0/en/core-libraries/events.html

So, let's say you have a Navigation plugin and you want to gather
navigation items from every plugin in your app. When you want to
gather the items, you'd broadcast an event. You'd have listeners in
each plugin that would listen for the broadcast and return the items
you want.

- Jamie

On May 31, 9:53 am, Vinicius Dusso <vinidu...@gmail.com> wrote:
> Sure, I know I'm able to use Interfaces where I want to. I just want to
> know if there is a easier way to do this using the CakePHP Plugins. And if
> isn't, if there is a pattern to use Interfaces and let the CakePHP
> autoinclude them, like it did with the MVC classes.
>
> Thanks,
>
> Vinicius
>
>
>
>
>
>
>
> On Thursday, May 31, 2012 1:07:35 PM UTC-3, jeremyharris wrote:
>
> > CakePHP is just PHP, so there's no reason you couldn't use interfaces
> > where you wanted to. The users of the plugins would just need to understand
> > that they need to implement them.
>
> > On Thursday, May 31, 2012 4:07:13 AM UTC-7, Vinicius Dusso wrote:
>
> >> Hello all,
>
> >> Did everyone tried to use PHP's Interface as Extension Point in CakePHP?
> >> My idea is to create a fully modular app. To build a menu, for example, I
> >> would be able to do something like this:
>
> >> The method 'getExtensionPoint' will get all the classes that implements
> >> the given interface, at run time.
>
> >> // The core of extension point
> >> class MenuController {
>
> >>   function _buildMenu() {
> >>     $menu = array();
>
> >>     $menuProviders = $this->getExtensionPoint('IMenu');
> >>     foreach($menuProviders as $menuProvider) {
> >>       $menu += $menuProvider->getMenu();
> >>     }
> >>   }
>
> >> }
>
> >> // Some class ( could be a Controller or a Model ) which uses this
> >> extension point
> >> class User implements IMenu {
>
> >>   function getMenu() {
> >>     return array('Users' => '/user/list');
> >>   }
>
> >> }
>
> >> // The Interface, to bind the extended classes
> >> public interface IMenu {
> >>   function getMenu();
> >> }
>
> >> Sorry for write all this code here.
> >> Someone already did something like this? This can be done using the
> >> plugins in CakePHP ?
>
> >> Thanks in advance !
>
> >> Vinicius

--
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+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php

Re: Logout user on browser close

Worked perfectly.

Thanks

Just for the record: I used Google but I didn't know there was a session cookie and that I could set the timeout to zero.

--
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+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php

Re: Logout user on browser close

Set the session cookie timeout to "0" "Zero" in core.


Google: Very common application used by web developers.

On May 31, 2012, at 12:41 PM, Andrés Manikis wrote:

I don't know if the data itself is stored in a cookie or in a session.
But what is stored in a cookie is some info for the login.
Anyway, do you know how to logout the user when I close the browser?

I suppose it's a very common feature of any web application.

Thank you!
Andrés

El jueves, 31 de mayo de 2012 12:51:10 UTC-3, AD7six escribió:


On Thursday, 31 May 2012 17:02:17 UTC+2, Andrés Manikis wrote:
Another thing to note.
In the cookbook explains that the user data is stored in a cookie.

Your user data is not stored in a cookie - where is that stated?
 
I don't want that. I would like to store the user data in a session so after closure the session expires and the user is not logged in anymore.

That's how it works.

AD

--
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+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php

Re: Custom Find with Paging Problem - Cake 2.1.3



On Thursday, 31 May 2012 18:43:04 UTC+1, Glauco Custódio wrote:
Hi guys, I have created my own custom find method, it is working
properly, but does not work with paging.

See the code here:

http://bin.cakephp.org/view/1245017297

I get these errors:

Notice (8): Undefined index: popularity [CORE\Cake\Model\Model.php,
line 2734]

Notice (8): Undefined index: popularity [CORE\Cake\Model\Model.php,
line 2710]

I have followed this official tutorial:
http://book.cakephp.org/2.0/en/models/retrieving-your-data.html#model-custom-find

Anyone can help?

Thank you.

From your code, you seem to have a model named 'Model'. This is not a good idea since Model is a class in the Core code. Change the name of your app/Model/Model.php file and the model object within it and you should get further. Your references to the Model object in Product will need to change to the new name too of course.


--
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+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php

Re: Logout user on browser close

I don't know if the data itself is stored in a cookie or in a session.
But what is stored in a cookie is some info for the login.
Anyway, do you know how to logout the user when I close the browser?

I suppose it's a very common feature of any web application.

Thank you!
Andrés

El jueves, 31 de mayo de 2012 12:51:10 UTC-3, AD7six escribió:


On Thursday, 31 May 2012 17:02:17 UTC+2, Andrés Manikis wrote:
Another thing to note.
In the cookbook explains that the user data is stored in a cookie.

Your user data is not stored in a cookie - where is that stated?
 
I don't want that. I would like to store the user data in a session so after closure the session expires and the user is not logged in anymore.

That's how it works.

AD

--
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+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php

browser compatibility: the weirdest thing ever with IE. throws flash message all the time!!!

hi everyone,

I try to explain it shortly. When a user clicks on any profile, my
controller function checks if that user is active oder locked. active
means account is activated, locked means locked ;).

now i have been testing this with chrome, safari and firefox for
months!!! the process works, 100%.


BUT with Internet Explorer... if I go on any users profile, activated
or unlocked, cake throws me the message, although, logically, it is
correct in my code. it worked in other browsers and IE goes to those
profile without redirecting..
I am not even close to getting this. I am totally stunned. Its so
weird.

Is there any way, that IE cant handle cakes flash messages, or the CSS
with it?

here is my controller profile code:
=======================================================
$locked = $this->User->find('first', array(
'fields' => array('User.id','User.locked', 'User.active'),
'conditions' => array('User.id = \''.$id.'\' AND User.locked =
false')
));

if(!empty($locked))
{
if($locked['User']['active'] == true)
{

if($id != $this->Session->read('User.id')) //visitor!!
{

some code here........
}
else //profile owner!!
{
some code here........
}

}//active
else
{
$this->Session->setFlash('this account is not active.');
$this->redirect(array('controller' => 'users', 'action' =>
'profile', $this->Session->read('User.id')));
exit();
}


}//unlocked
else
{
$this->Session->setFlash('user has been deleted');
$this->redirect(array('controller' => 'users', 'action' =>
'profile', $this->Session->read('User.id')));
exit();
}

}
=====================================================

so IE always(!) goes to that certain profile throws this line
$this->Session->setFlash('this account is not active.');

BTW i am using this code to throw the cake typical messages
if($session->check('Message.flash')):
echo $session->flash();
endif;

appreciate your help. thanks soooo much

--
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+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php

Custom Find with Paging Problem - Cake 2.1.3

Hi guys, I have created my own custom find method, it is working
properly, but does not work with paging.

See the code here:

http://bin.cakephp.org/view/1245017297

I get these errors:

Notice (8): Undefined index: popularity [CORE\Cake\Model\Model.php,
line 2734]

Notice (8): Undefined index: popularity [CORE\Cake\Model\Model.php,
line 2710]

I have followed this official tutorial:
http://book.cakephp.org/2.0/en/models/retrieving-your-data.html#model-custom-find

Anyone can help?

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+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php

Re: Using PHP's Interface as Extension Point


Sure, I know I'm able to use Interfaces where I want to. I just want to know if there is a easier way to do this using the CakePHP Plugins. And if isn't, if there is a pattern to use Interfaces and let the CakePHP autoinclude them, like it did with the MVC classes.

Thanks,

Vinicius

On Thursday, May 31, 2012 1:07:35 PM UTC-3, jeremyharris wrote:
CakePHP is just PHP, so there's no reason you couldn't use interfaces where you wanted to. The users of the plugins would just need to understand that they need to implement them.

On Thursday, May 31, 2012 4:07:13 AM UTC-7, Vinicius Dusso wrote:
Hello all,

Did everyone tried to use PHP's Interface as Extension Point in CakePHP? 
My idea is to create a fully modular app. To build a menu, for example, I would be able to do something like this:

The method 'getExtensionPoint' will get all the classes that implements the given interface, at run time.

// The core of extension point
class MenuController {

  function _buildMenu() {
    $menu = array();

    $menuProviders = $this->getExtensionPoint('IMenu');
    foreach($menuProviders as $menuProvider) {
      $menu += $menuProvider->getMenu();
    }
  }

}

// Some class ( could be a Controller or a Model ) which uses this extension point
class User implements IMenu {

  function getMenu() {
    return array('Users' => '/user/list');
  }  

}

// The Interface, to bind the extended classes
public interface IMenu {
  function getMenu();
}


Sorry for write all this code here. 
Someone already did something like this? This can be done using the plugins in CakePHP ?


Thanks in advance !


Vinicius

--
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+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php

Re: Cakephp Benchmark with debug is 2 and 0

I agree with euromark. There's literally no point in comparing the two, unless you are going to launch a production app in debug mode (uh....).

On Thursday, May 31, 2012 8:12:59 AM UTC-7, euromark wrote:
NO, i am saying that this shoudn't have been in this blog post in the first place
it is absolute nonsense to say that this a performance gain - since debug 0 is the absolute requirement for any (live) app
therefore there is nothing to compare

you develop with 2, you deploy with 0
2 will always be slower (due to more debug stuff) - and no one actually cares how much slower since only the productive one matters

you see that there is no point in doing that?



Am Donnerstag, 31. Mai 2012 16:22:01 UTC+2 schrieb Điển vũ:
I  used ab apache's benchmark , command line: ab -k -n 100 http://b/
please read this :


It seems debug 0 is litle faster compare with debug 2. But i remember in previous version debug 0 is a lot faster . 

--
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+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php

Re: Using PHP's Interface as Extension Point

CakePHP is just PHP, so there's no reason you couldn't use interfaces where you wanted to. The users of the plugins would just need to understand that they need to implement them.

On Thursday, May 31, 2012 4:07:13 AM UTC-7, Vinicius Dusso wrote:
Hello all,

Did everyone tried to use PHP's Interface as Extension Point in CakePHP? 
My idea is to create a fully modular app. To build a menu, for example, I would be able to do something like this:

The method 'getExtensionPoint' will get all the classes that implements the given interface, at run time.

// The core of extension point
class MenuController {

  function _buildMenu() {
    $menu = array();

    $menuProviders = $this->getExtensionPoint('IMenu');
    foreach($menuProviders as $menuProvider) {
      $menu += $menuProvider->getMenu();
    }
  }

}

// Some class ( could be a Controller or a Model ) which uses this extension point
class User implements IMenu {

  function getMenu() {
    return array('Users' => '/user/list');
  }  

}

// The Interface, to bind the extended classes
public interface IMenu {
  function getMenu();
}


Sorry for write all this code here. 
Someone already did something like this? This can be done using the plugins in CakePHP ?


Thanks in advance !


Vinicius

--
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+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php

Re: app/tmp permissions

Changing the ENTIRE folder to 777 is a TERRIBLE idea and a massive security risk. I highly suggest you don't do it this way. Assuming you have the proper user and groups on the folder, 660 should be sufficient.

On Tuesday, May 29, 2012 8:28:29 PM UTC-7, Nikhil Agrawal wrote:

Try changing the mode of entire cake folder using chmod to 777
-R , it will work.
Pls give the error which is displayed, if it don't work.

On May 27, 2012 3:23 PM, "Steve Found" <stephen@foundfamily.co.uk> wrote:
On 26/05/12 06:30, Kid Noire wrote:
I'm a total newbie to Cake and believe I've put everything in their
proper folders.  Everything is green on my local host except my tmp
Directory is not writable (yellow)  I have no idea how to set
permissions and have tried chmod in terminal but really not sure even
if I'm doing this part properly.  Any step by step would be much
appreciated.  Thanks!


Assuming you are on a linux server running apache2:

The easiest (but most unsafe) method is to change to your app directory and do 'chmod -R 777 tmp' which makes tmp and everything below it readable and writeable by everyone.

A better method is to change group ownership of tmp and everthing below it to www-data ( or whatever group your apache server runs in ) with 'chgrp -R www-data tmp' followed by 'chmod -R 774 tmp' This makes tmp read/write for you and the www-data group but readonly for everyone else

If you have access to /etc/apache2 on your system, you could also modify /etc/apache2/envvars and change 'APACHE_RUN_USER' and 'APACHE_RUN_GROUP' to be your username and group. This will make the webserver run as you. This is OK for local systems but you are unlikely to have access to this file in a hosted environment unless you have your own server.

--
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+unsubscribe@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+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php

Re: Logout user on browser close



On Thursday, 31 May 2012 17:02:17 UTC+2, Andrés Manikis wrote:
Another thing to note.
In the cookbook explains that the user data is stored in a cookie.

Your user data is not stored in a cookie - where is that stated?
 
I don't want that. I would like to store the user data in a session so after closure the session expires and the user is not logged in anymore.

That's how it works.

AD

--
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+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php

Re: how to have dynamic multilingual text strings

__('Dummy text with string %s inside', 'something');

See sprintf() api for % type specifiers.

--
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+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php

Re: Cakephp Benchmark with debug is 2 and 0

NO, i am saying that this shoudn't have been in this blog post in the first place
it is absolute nonsense to say that this a performance gain - since debug 0 is the absolute requirement for any (live) app
therefore there is nothing to compare

you develop with 2, you deploy with 0
2 will always be slower (due to more debug stuff) - and no one actually cares how much slower since only the productive one matters

you see that there is no point in doing that?



Am Donnerstag, 31. Mai 2012 16:22:01 UTC+2 schrieb Điển vũ:
I  used ab apache's benchmark , command line: ab -k -n 100 http://b/
please read this :


It seems debug 0 is litle faster compare with debug 2. But i remember in previous version debug 0 is a lot faster . 

--
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+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php

Re: Logout user on browser close

"Use a session cookie vs a cookie set to expire at a future date. This will clear the cookie every time the browser closes."

Could you give me an idea on how to do that?

Thank you!
Andrés

--
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+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php

Re: Logout user on browser close

PHP uses a browser cookie to store the visitors session id. The only other way is to daisy chain the ID on the URL....... you don't want that trust me :-)

On May 31, 2012 8:02 AM, "Andrés Manikis" <andresmanikis@gmail.com> wrote:
Another thing to note.
In the cookbook explains that the user data is stored in a cookie. I don't want that. I would like to store the user data in a session so after closure the session expires and the user is not logged in anymore.

Thanks

El jueves, 31 de mayo de 2012 11:48:09 UTC-3, Andrés Manikis escribió:
Hello, i'm trying to force logout after I close the browser but I don't know how to do it.
If I close the browser without logging out and then I go back to the application the user is still logged in.

Is there a way to configure Auth to logout users after I close the browser?

Thank you!
Andrés

--
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+unsubscribe@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+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php

Re: Logout user on browser close

Another thing to note.
In the cookbook explains that the user data is stored in a cookie. I don't want that. I would like to store the user data in a session so after closure the session expires and the user is not logged in anymore.

Thanks

El jueves, 31 de mayo de 2012 11:48:09 UTC-3, Andrés Manikis escribió:
Hello, i'm trying to force logout after I close the browser but I don't know how to do it.
If I close the browser without logging out and then I go back to the application the user is still logged in.

Is there a way to configure Auth to logout users after I close the browser?

Thank you!
Andrés

--
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+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php

Re: Logout user on browser close

Use a session cookie vs a cookie set to expire at a future date. This will clear the cookie every time the browser closes

On May 31, 2012 7:48 AM, "Andrés Manikis" <andresmanikis@gmail.com> wrote:
Hello, i'm trying to force logout after I close the browser but I don't know how to do it.
If I close the browser without logging out and then I go back to the application the user is still logged in.

Is there a way to configure Auth to logout users after I close the browser?

Thank you!
Andrés

--
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+unsubscribe@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+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php

Logout user on browser close

Hello, i'm trying to force logout after I close the browser but I don't know how to do it.
If I close the browser without logging out and then I go back to the application the user is still logged in.

Is there a way to configure Auth to logout users after I close the browser?

Thank you!
Andrés

--
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+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php

Re: Cakephp Benchmark with debug is 2 and 0

I  used ab apache's benchmark , command line: ab -k -n 100 http://b/ . 
please read this :


It seems debug 0 is litle faster compare with debug 2. But i remember in previous version debug 0 is a lot faster . 

--
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+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php

how to have dynamic multilingual text strings

HI,

I wonder how I can handle this:

I have a multilingual project and would like to have a text string like this:

__('This is a dummy text and here I want to have a %variable% inside the text string');

I am working with .po files
msgid " This is a dummy text and here I want to have a %variable% inside the text string' "
msg ""

How do I put a placeholder into those text strings?
And how do I replace the placeholder with the wanted value?

Thanks for any tips!!

--
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+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php

Re: Cakephp Benchmark with debug is 2 and 0

On 31/05/12 11:47, Điển vũ wrote:
I still think with debug is 0 , cakephp will be run faster when debug is 2. 
But when i use ApacheBench : ab -n 100 http://example.com in localhost . It showed results is same.
I ever read this article: 8 ways to speed up Cakephp from long time ago when cakephp 1.3
Did cakephp 2.0 improved performance  ? 
--
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+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php

I'm not really sure I understand your message... are you saying that CakePHP performs the same with debug set to 2 as it does with it set to 0 ?

If this is the case, then I am sorry but the way you are performing your tests is probably very flawed since debug=2 will output far more per response than debug=0 does and should therefore be slower in benchmark tests.

You should have a look at what it is you are actually testing before assuming you have cake performance problems.

Re: Cakephp Benchmark with debug is 2 and 0

you cannot compare debug mode 2 and 0
thats nonsense and like comparing cars to screws


Am Donnerstag, 31. Mai 2012 12:47:46 UTC+2 schrieb Điển vũ:
I still think with debug is 0 , cakephp will be run faster when debug is 2. 
But when i use ApacheBench : ab -n 100 http://example.com in localhost . It showed results is same.
I ever read this article: 8 ways to speed up Cakephp from long time ago when cakephp 1.3
Did cakephp 2.0 improved performance  ? 

--
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+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php

Using PHP's Interface as Extension Point

Hello all,

Did everyone tried to use PHP's Interface as Extension Point in CakePHP? 
My idea is to create a fully modular app. To build a menu, for example, I would be able to do something like this:

The method 'getExtensionPoint' will get all the classes that implements the given interface, at run time.

// The core of extension point
class MenuController {

  function _buildMenu() {
    $menu = array();

    $menuProviders = $this->getExtensionPoint('IMenu');
    foreach($menuProviders as $menuProvider) {
      $menu += $menuProvider->getMenu();
    }
  }

}

// Some class ( could be a Controller or a Model ) which uses this extension point
class User implements IMenu {

  function getMenu() {
    return array('Users' => '/user/list');
  }  

}

// The Interface, to bind the extended classes
public interface IMenu {
  function getMenu();
}


Sorry for write all this code here. 
Someone already did something like this? This can be done using the plugins in CakePHP ?


Thanks in advance !


Vinicius

--
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+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php