Re: What is the meaning of this error in cakephp 3?

2016-03-14 Thread Clement Crownrise
mrt. 2016 om 12:43 heeft Clement Crownrise < > clementcrownr...@gmail.com> het volgende geschreven: > > Thanks All, the error has been fixed. > > > > On Saturday, March 12, 2016 at 10:30:25 AM UTC+1, Clement Crownrise wrote: >> >> Hello, I am doing the blog tu

Re: What is the meaning of this error in cakephp 3?

2016-03-14 Thread Willem Schwarte
tutorial in cakephp 3, but I got this notice at >> the top of my page, please does anyone know the meaning and how to solve it? >> >> Strict (2048): Declaration of App\Controller\AppController::beforefilter() >> should be compatible with >> Cake\Controller\Contro

Re: What is the meaning of this error in cakephp 3?

2016-03-14 Thread Clement Crownrise
Thanks All, the error has been fixed. On Saturday, March 12, 2016 at 10:30:25 AM UTC+1, Clement Crownrise wrote: > > Hello, I am doing the blog tutorial in cakephp 3, but I got this notice at > the top of my page, please does anyone know the meaning and how to solve it? > >

Re: What is the meaning of this error in cakephp 3?

2016-03-13 Thread Clement Crownrise
function beforefilter(Event $event){ //parent::beforefilter($event); //$this->Auth->allow(['add','logout']); return null; } On Sun, Mar 13, 2016 at 9:14 AM, Willem Schwarte wrote: > Yes. That should solve it. > > - willem > >

Re: What is the meaning of this error in cakephp 3?

2016-03-13 Thread Matías Croce
$event){ //parent::beforefilter($event); //$this->Auth->allow(['add','logout']); return null; } On Sat, Mar 12, 2016 at 11:52 AM, Willem Schwarte <mailto:wschwa...@gmail.com>> wrote: Just as it says. You need to have the same meth

Re: What is the meaning of this error in cakephp 3?

2016-03-13 Thread Willem Schwarte
function beforefilter(Event $event){ >> //parent::beforefilter($event); >> //$this->Auth->allow(['add','logout']); >> return null; >> } >> >>> On Sat, Mar 12, 2016 at 11:52 AM, Willem Schwarte wrote: >&g

Re: What is the meaning of this error in cakephp 3?

2016-03-12 Thread heavyKevy
I have tried it, but the error still persists , look at the code below > > > public function beforefilter(Event $event){ > //parent::beforefilter($event); > //$this->Auth->allow(['add','logout']); > return null; > } >

Re: What is the meaning of this error in cakephp 3?

2016-03-12 Thread Clement Crownrise
Hi, Thanks Willem, I have tried it, but the error still persists , look at the code below public function beforefilter(Event $event){ //parent::beforefilter($event); //$this->Auth->allow(['add','logout']); return null; } On Sat, Mar 12

Re: What is the meaning of this error in cakephp 3?

2016-03-12 Thread Willem Schwarte
ing the blog tutorial in cakephp 3, but I got this notice at > the top of my page, please does anyone know the meaning and how to solve it? > > Strict (2048) <>: Declaration of App\Controller\AppController::beforefilter() > should be compatible with > Cake\Controller\Controller::bef

What is the meaning of this error in cakephp 3?

2016-03-12 Thread Clement Crownrise
Hello, I am doing the blog tutorial in cakephp 3, but I got this notice at the top of my page, please does anyone know the meaning and how to solve it? *Strict* (2048): Declaration of App\Controller\AppController::beforefilter() should be compatible with Cake\Controller\Controller

Re: $this->render('index');

2016-02-08 Thread John Andersen
: > > I have tried for two days now to figure out why $this->render('index'); is > not working on my controller method,here is the controller action I am > running $this->render('index'); > Thanks. > public function search(){ > if($this->request-&

$this->render('index');

2016-01-29 Thread Maxwell Ochieng
I have tried for two days now to figure out why $this->render('index'); is not working on my controller method,here is the controller action I am running $this->render('index'); Thanks. public function search(){ if($this->request->is('put') || $this->

CakePHP - $this->request->data not working

2016-01-10 Thread 3one5marketing
Hi, im having problems with accessing form data in my controller. i have an if statement that checks if $this->request->data is not empty before going further but it is showing up as empty. im not sure why it is doing this so i have add my model, view and controller files. Thanks in a

Re: if($this->Auth->login($this->request->data)) Return true with right or wrong password and iden

2015-09-21 Thread euromark
Read the documentation. You are never supposed to pass anything to login() in this case. mark Am Samstag, 19. September 2015 22:11:47 UTC+2 schrieb abdessamad kassasse: > > i will show my code > utilisateurcontroller > public function login() > { > debug($t

if($this->Auth->login($this->request->data)) Return true with right or wrong password and iden

2015-09-19 Thread abdessamad kassasse
i will show my code utilisateurcontroller public function login() { debug($this->Session->read()); if($this->request->is('post')) { print_r($this->request->data); if($this->A

Re: 3.x: SessionHelper deprecated, what's the new version of this?

2015-04-23 Thread Joe Theuerkauf
Kende" a écrit : > >> Try: >> Flash->render(); ?> >> >> https://github.com/cakephp/app/blob/master/src/Template/Layout/default.ctp#L49 >> >> Andras Kende >> >> >> On Apr 21, 2015, at 8:56 PM, Joe T. wrote: >> >> Looks like Sess

Re: 3.x: SessionHelper deprecated, what's the new version of this?

2015-04-21 Thread Anthony GRASSIOT
2015, at 8:56 PM, Joe T. wrote: > > Looks like SessionHelper is/will be deprecated for 3.1 and > request->session() is recommended... i have this chunk of code found in > my Layout/default.ctp: > > > Session->flash(); ?> > > fetch('conte

Re: 3.x: SessionHelper deprecated, what's the new version of this?

2015-04-21 Thread Andras Kende
sionHelper is/will be deprecated for 3.1 and request->session() > is recommended... i have this chunk of code found in my Layout/default.ctp: > > > Session->flash(); ?> > > fetch('content'); ?> > > > i tried $this->request

3.x: SessionHelper deprecated, what's the new version of this?

2015-04-21 Thread Joe T.
Looks like SessionHelper is/will be deprecated for 3.1 and request->session() is recommended... i have this chunk of code found in my Layout/default.ctp: Session->flash(); ?> fetch('content'); ?> i tried $this->request->session()-&g

Re: how is this saving without a table

2015-02-27 Thread ajt
I did this and i cant see anything unusual find('first', array('conditions'=> array('AND' => array(array('Term.start_date <=' => $today), array('Term.end_date >=' => $today);; } public function get_neighbors

Re: how is this saving without a table

2015-02-27 Thread José Lorenzo
Open the Term model and see what table it was setup to be used On Thursday, February 26, 2015 at 10:29:20 PM UTC+1, ajt wrote: > > > $terms=$this->Term->find('all' ); //displays everything and you can edit > these fields in another page. > > There is no table c

Re: how is this saving without a table

2015-02-26 Thread ajt
$terms=$this->Term->find('all' ); //displays everything and you can edit these fields in another page. There is no table called terms in any database I have. How is this happening? -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twi

Re: how is this saving without a table

2015-02-26 Thread José Lorenzo
blecalled terms > > > App::uses('AppController', 'Controller'); > > /** > * Subjects Controller > * > * @property Subject $Subject > */ > class TermsController extends AppController { > > > public function add() { > if ($this-

how is this saving without a table

2015-02-26 Thread ajt
In cakephp I have some code which saves data without a table and I have no idea how. The model,controller show nothing like below it works fine but there is no tablecalled terms request->is('post')) { $this->Term->create(); if ($this->Term->

Cakephp 3 : use of "$this->alias()" in "where" conditions

2015-02-18 Thread Pgbi
Hi, To avoid the "Column 'xxx' in where clause is ambiguous" error when making queries involving multiple tables sharing the same name for a given column, I now systematically include $this->alias() in where conditions : $table->find()->where([$table->alias(

Re: cant send email with this provider

2015-01-26 Thread John Andersen
Please ensure that you are using the settings that applies to your mail provider. Enjoy, John On Monday, 26 January 2015 16:01:46 UTC+2, ajt wrote: > > Hi, > > My email code for cakephp worked fine when I used gmail but not for this > provider below. > I am not sure what to do

cant send email with this provider

2015-01-26 Thread ajt
Hi, My email code for cakephp worked fine when I used gmail but not for this provider below. I am not sure what to do as I have all the correct information. The error get is timed-out [code] config/email.php public $gmail2 = array( 'from' => array('x...@xx.com.

cant send email with this provider

2015-01-26 Thread ajt
Hi, My email code for cakephp worked fine when I used gmail but not for this provider below. I am not sure what to do as I have all the correct information. The error get is timed-out [code] config/email.php public $gmail2 = array( 'from' => array('i...

HOW CAN I FIX THIS

2014-12-18 Thread Pablo Rojas
HOW CAN I FIX THIS FROM HERE http://intranet/infobcake/admin/posts my inks menu show this http://intranet/infobcake/admin/admin/posts -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- You received this message because you are

The return vars from testAction are null unless I explicitly call $this->render() in my Controller

2014-12-18 Thread Roy Lindauer
The return vars from testAction are null unless I explicitly call $this->render() in my Controller. public function testAddGet() { $this->testAction('/clients/add', array( 'method' => 'GET', 'retur

Re: new to cakephp, should I learn this over yin/laravel4?

2014-11-26 Thread euromark
Find us on Twitter http://twitter.com/CakePHP --- You received this message because you are subscribed to the Google Groups "CakePHP" group. To unsubscribe from this group and stop receiving emails from it, send an email to cake-php+unsubscr...@googlegroups.com. To post to this group, send

new to cakephp, should I learn this over yin/laravel4?

2014-11-26 Thread frocco
. Thanks -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- You received this message because you are subscribed to the Google Groups "CakePHP" group. To unsubscribe from this group and stop receiving emails from it, send an emai

Re: Is CakePHP dead? (Or is it just this group?)

2014-11-16 Thread José Lorenzo
lot > more work to get the same results, an example of which is on the very first > page of Models > > Instead of doing this > > $this->request->data = $this->Articles->find('all); > > You now recommend that I do this? > > use Cake\ORM\TableRegist

Re: Is CakePHP dead? (Or is it just this group?)

2014-11-16 Thread Dave Edwards
odels Instead of doing this $this->request->data = $this->Articles->find('all); You now recommend that I do this? use Cake\ORM\TableRegistry;$articles = TableRegistry::get('Articles');$query = $articles->find();foreach ($query as $row) { echo $row->title

Re: Is CakePHP dead? (Or is it just this group?)

2014-11-14 Thread José Lorenzo
Also wanted to add for users that are still in th e2.x way of thinking you can still use arrays for expressing queries: $this->loadModel('Articles'); articles = $this->find('all', [ 'fields' => ['title', 'body'], 'conditio

Re: Is CakePHP dead? (Or is it just this group?)

2014-11-14 Thread José Lorenzo
Dave, you probably did not read the documentation. That would be the on;y explanation to say that it is not possible to get a simple find first in 3.0: Here is an example, and please not that there is absolutely no need to create any class for this example except a single controller named

Re: Is CakePHP dead? (Or is it just this group?)

2014-11-14 Thread Dave Edwards
and questions were answered very quickly but that seems to > have stopped for a while right now. > And I can also see that in this group a while ago we got like 10 updates a > day while now we only have around 3 updates a day. > > I don't want to change to an alternative framewo

Re: Is CakePHP dead? (Or is it just this group?)

2014-11-11 Thread James Watts
CakePHP is anything but dead. Here's the keynote from CakeFest this year with some stats: http://www.slideshare.net/JamesWatts4/cakephp-community-keynote-38283514 You can also listen to it here, on a podcast episode we recorded after the event: http://podcast.cakephp.org/listen/epis

Re: Is CakePHP dead? (Or is it just this group?)

2014-11-11 Thread Rumkuchen
Sometimes questions are too simple to answer. First, investigate on available docs, google, stackoverflow & co On the otherhand, ask yourself - do you answer questions in this group? I have best expierience in getting information for cakephp from a lot of ressources. I never felt a

Re: custumize $this->Html->link()

2014-11-10 Thread Yannick Nascimento
thats great thanks a lot, i will use url(). Segunda-feira, 10 de Novembro de 2014 14:08:23 UTC-1, Yannick Nascimento escreveu: > > > <https://lh3.googleusercontent.com/-wlDzHgOGX-c/VGDUvb_lDYI/BdI/QwDQB40_Y4o/s1600/link.PNG> > > > >

Re: custumize $this->Html->link()

2014-11-10 Thread Leandro Machado Pereira
see this: http://stackoverflow.com/questions/16964599/how-to-write-html-tag-in-cakephp-link I hope help you. 2014-11-10 13:08 GMT-02:00 Yannick Nascimento : > > <https://lh3.googleusercontent.com/-wlDzHgOGX-c/VGDUvb_lDYI/BdI/QwDQB40_Y4o/s1600/link.PNG> > > > >

custumize $this->Html->link()

2014-11-10 Thread Yannick Nascimento
<https://lh3.googleusercontent.com/-wlDzHgOGX-c/VGDUvb_lDYI/BdI/QwDQB40_Y4o/s1600/link.PNG> hi there ppl, i have this! Morris and i want to make ot like this! Html->link(__('list'), array( 'co

Re: custumize $this->Html->link()

2014-11-10 Thread Mike Karthauser
hi Yannick like this: Html->link(‘ '.__('list'), array( 'controller'=>'transactions', 'action'=>'index' ) ); ?> > On

custumize $this->Html->link()

2014-11-10 Thread Yannick Nascimento
hi there ppl, i have this! s and i want to make ot like this! Html->link(__('list'), array( 'controller'=>'transactions', 'action'=>'index' )

Re: Is CakePHP dead? (Or is it just this group?)

2014-11-10 Thread José Lorenzo
ea to make the switch like (apparently) lots of > others are making? > > On Monday, November 10, 2014 10:41:42 AM UTC+1, José Lorenzo wrote: >> >> I think it is mostly this group, people are not as active in google >> groups as they used to be. That holds true for most of the

Re: Is CakePHP dead? (Or is it just this group?)

2014-11-10 Thread Lucky1968
. But as mentioned before then I end up with the question if it might be a good idea to make the switch like (apparently) lots of others are making? On Monday, November 10, 2014 10:41:42 AM UTC+1, José Lorenzo wrote: > > I think it is mostly this group, people are not as active in googl

Re: Is CakePHP dead? (Or is it just this group?)

2014-11-10 Thread José Lorenzo
I think it is mostly this group, people are not as active in google groups as they used to be. That holds true for most of the groups I'm a member of. On the other hand IRC and stack overflow are constantly active with questions being answered at a good pace. CakePHP 3 is around the c

Is CakePHP dead? (Or is it just this group?)

2014-11-10 Thread Lucky1968
ast for many years now but I'm not an 'expert' programmer and when I started With CakePHP back then (1.3.x) there was a large community and questions were answered very quickly but that seems to have stopped for a while right now. And I can also see that in this group a while ago we

Re: $this->redirect not working

2014-09-07 Thread Techinfocomp.com
Thanks Friends, It's Resolved. There was a whitespace in my some model. As soon as i removed, it start working again. Thanks a lot. Now i have an experience with this kind of error. On Sunday, March 11, 2012 7:24:30 AM UTC+5:30, Brian Bowler wrote: > > So I have this function whe

Re: $this->redirect not working

2014-09-07 Thread vinit sahasrabudhe
t; I did that but still i am getting the blank page while redirecting eg: > $this->redirect('/admin_cms_travels'); > I am using CakePHP 2.5.4 > > Any suggestion ? > > > On Sunday, September 7, 2014 7:49:02 AM UTC+5:30, euromark wrote: >> >> Because it i

Re: $this->redirect not working

2014-09-06 Thread Techinfocomp
I did that but still i am getting the blank page while redirecting eg: $this->redirect('/admin_cms_travels'); I am using CakePHP 2.5.4 Any suggestion ? On Sunday, September 7, 2014 7:49:02 AM UTC+5:30, euromark wrote: > > Because it is unnecessary and can easily result in a

Re: $this->redirect not working

2014-09-06 Thread euromark
e all php files do >> not have closing ?> >> >> On Sunday, March 11, 2012 9:54:30 AM UTC+8, Brian Bowler wrote: >>> >>> So I have this function where the user can add the weight to materials >>> and save them. However after the updateAll, $this->redir

Re: $this->redirect not working

2014-09-06 Thread Techinfocomp
dy sent and your redirect cannot work anymore . > Please check the files inside app/controller, make sure all php files do > not have closing ?> > > On Sunday, March 11, 2012 9:54:30 AM UTC+8, Brian Bowler wrote: >> >> So I have this function where the user can add the weig

Re: How to convert this php array into xml?

2014-08-21 Thread Stephen S
I had some issues initially with this, I've taken a method from one of my shells and stripped it down to something basic with a multidimensional array. http://pastie.org/private/6ljulcnwc7dqwsxcpqdjbq Maybe if you try using $xmlObject = Xml::build(array('response' => $It

How to convert this php array into xml?

2014-08-21 Thread Sam
I am using cakephp v2.5. I would like to convert an array into xml. The array looks like this; $Items = array( (int) 0 => array( 'Item' => array( 'id' => '2' ) ), (int) 1 => array( 'Item' =&

Re: $this->Form->create() and View blocks

2014-08-01 Thread Tiago Barrionuevo
Helper because of > the order the views are loaded when using blocks. > > On Friday, August 1, 2014 4:35:03 PM UTC+2, Tiago Barrionuevo wrote: >> >> In this case if I have to move the Form->create() out of this view I'll >> be doing code duplication in every for

Re: $this->Form->create() and View blocks

2014-08-01 Thread José Lorenzo
I would suggest not breaking your forms across multiple blocks... and don't think there will be a change around that in the FormHelper because of the order the views are loaded when using blocks. On Friday, August 1, 2014 4:35:03 PM UTC+2, Tiago Barrionuevo wrote: > > In this case i

Re: $this->Form->create() and View blocks

2014-08-01 Thread Tiago Barrionuevo
In this case if I have to move the Form->create() out of this view I'll be doing code duplication in every form. The solution I found was create a method "setContext($context)" in a inherited Form helper to initialize before the Form->input() in the view block. Is there a

Re: $this->Form->create() and View blocks

2014-07-31 Thread Tiago Barrionuevo
Yes, it returns an entity. I can simplify a little more: Form->create($test); echo $this->fetch('cadastro_data'); echo $this->Form->end(); ?> After some debugging I guess I found the problem! Cause "$this->Form->crea

Re: $this->Form->create() and View blocks

2014-07-31 Thread José Lorenzo
What does $this->get('test') return? Is it an entity? On Thursday, July 31, 2014 3:47:47 AM UTC+2, Tiago Barrionuevo wrote: > > Hi, > > I'm trying to build a form, with a CakePHP 3 application, using view > blocks but I can't get it to work. It seens that

$this->Form->create() and View blocks

2014-07-31 Thread Tiago Barrionuevo
Hi, I'm trying to build a form, with a CakePHP 3 application, using view blocks but I can't get it to work. It seens that the Form->create() doesn't find the model. I build a simple form to test it (controller Tests): src/Template/Tests/view_block.ctp set('cada

Re: How to calculate in array from $this->model->updateAll()?

2014-07-18 Thread José Lorenzo
'CmsPage.rgt' => *'CmsPage.rgt + 2'* On Thursday, July 17, 2014 11:15:48 PM UTC+2, Sam Clauw wrote: > > I try to do an "update all" in my add action with the following method: > > $this->CmsPage->updateAll( >> array( >>

How to calculate in array from $this->model->updateAll()?

2014-07-17 Thread Sam Clauw
I try to do an "update all" in my add action with the following method: $this->CmsPage->updateAll( > array( > 'CmsPage.rgt' => *('CmsPage.rgt' + 2)* > ), > array( > 'CmsPage.rgt >' => $right >

Re: Want to be inspired and inspire great developer? Attend CakeFest this year :P

2014-07-14 Thread Dr. Tarique Sani
day, July 14, 2014 2:02:00 PM UTC+2, Dr. Tarique Sani wrote: > >> Someday... Some year... #sigh >> >> >> On Mon, Jul 14, 2014 at 5:13 PM, José Lorenzo wrote: >> >>> Hey guys! >>> >>> I wanted to personally reach out and ask how many of you

Re: Want to be inspired and inspire great developer? Attend CakeFest this year :P

2014-07-14 Thread Thomas von Hassel
> Is there anything preventing you from attending this year? Let me know if > there is anything we can help with Mostly scheduling conflicts, once again, but it's definitely on the the list! /thomas -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on T

Re: Want to be inspired and inspire great developer? Attend CakeFest this year :P

2014-07-14 Thread José Lorenzo
nd ask how many of you are attending >> CakeFest <http://cakefest.org/> this year. I'm pretty much looking >> forward meeting face to face the people in this community and learn as much >> as possible while we're there. >> >> The conference from previous

Re: Want to be inspired and inspire great developer? Attend CakeFest this year :P

2014-07-14 Thread Dr. Tarique Sani
Someday... Some year... #sigh On Mon, Jul 14, 2014 at 5:13 PM, José Lorenzo wrote: > Hey guys! > > I wanted to personally reach out and ask how many of you are attending > CakeFest <http://cakefest.org/> this year. I'm pretty much looking > forward meeting face

Want to be inspired and inspire great developer? Attend CakeFest this year :P

2014-07-14 Thread José Lorenzo
Hey guys! I wanted to personally reach out and ask how many of you are attending CakeFest <http://cakefest.org/> this year. I'm pretty much looking forward meeting face to face the people in this community and learn as much as possible while we're there. The conference fro

Re: 3.0 $this->Form->model no longer works

2014-07-11 Thread José Lorenzo
You can get most the information you need out of $this->Form->context() which will return an EntityContext object http://api.cakephp.org/3.0/class-Cake.View.Form.EntityContext.html Otherwise just pass the entity you pass to the FormHelper to the other helpers. On Friday, July 11, 2014 9

3.0 $this->Form->model no longer works

2014-07-11 Thread Michael Houghton
In 2.x, one could use $this->Form->model which would show the current model being used by the form. This was very useful when making custom helpers. I notice in 3.0 this no longer works. Is there a way to get the current form model somehow in 3.0? -- Like Us on FaceBook

Re: My $this->Auth->login() does not work, any help please? :) Cakephp 2.5.1

2014-06-24 Thread Zero Sony
ps://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- You received this message because you are subscribed to the Google Groups "CakePHP" group. To unsubscribe from this group and stop receiving emails from it, send an email to cake-php+unsubscr...@googlegroups.

Re: My $this->Auth->login() does not work, any help please? :) Cakephp 2.5.1

2014-06-19 Thread Zero Sony
Thx for your help. I have just edited it. But it's still not work T_T https://gist.github.com/0-Sony/3c052a832687e8dbb4d7 Le jeudi 19 juin 2014 18:48:05 UTC+2, euromark a écrit : > > Mind your casing > > 'Authenticate' => 'form' > >

Re: My $this->Auth->login() does not work, any help please? :) Cakephp 2.5.1

2014-06-19 Thread 0-SonY
I have just edited it. But it's still not work. T_T 2014-06-19 18:48 GMT+02:00 euromark : > Mind your casing > > 'Authenticate' => 'form' > > Compare this with what is documented: > > http://book.cakephp.org/2.0/en/core-libraries/componen

Re: My $this->Auth->login() does not work, any help please? :) Cakephp 2.5.1

2014-06-19 Thread euromark
Mind your casing 'Authenticate' => 'form' Compare this with what is documented: http://book.cakephp.org/2.0/en/core-libraries/components/authentication.html#configuring-authentication-handlers mark Am Donnerstag, 19. Juni 2014 15:32:53 UTC+2 schrieb Zero Sony: >

Re: My $this->Auth->login() does not work, any help please? :) Cakephp 2.5.1

2014-06-19 Thread Zero Sony
https://gist.github.com/0-Sony/3c052a832687e8dbb4d7 Thx for your help! -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- You received this message because you are subscribed to the Google Groups "CakePHP" group. To unsubs

Re: My $this->Auth->login() does not work, any help please? :) Cakephp 2.5.1

2014-06-19 Thread José Lorenzo
Can you share your code via gist.github.com instead? On Wednesday, June 18, 2014 5:39:02 PM UTC+2, Zero Sony wrote: > > Hi all, > > I use cakephp 2.5.1 and my $this->Auth->login() does not work. It > return me "false" each time. > Maybe if someone can s

Re: $this->Auth->authorize = array('Controller');

2014-06-15 Thread Stephen S
It allows you to do the following: http://book.cakephp.org/2.0/en/core-libraries/components/authentication.html#using-controllerauthorize On 15 June 2014 05:28, Gavindra Kalikapersaud wrote: > What does this mean > > > $this->Auth->authorize = array('Controller&

$this->Auth->authorize = array('Controller');

2014-06-14 Thread Gavindra Kalikapersaud
What does this mean $this->Auth->authorize = array('Controller'); -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- You received this message because you are subscribed to the Google Groups "CakePHP" group

Re: Access $this->Session from a model

2014-05-28 Thread Jeremy Burns : Class Outfit
dels, my solution was: >> >> function currentUser() >> { >> //pr($this->Session->read('Auth.User')); >> //pr($this->Auth->user()); >> //pr(AuthComponent::user()); >>

Re: Access $this->Session from a model

2014-05-28 Thread Thomas von Hassel
hod in > my Model (AppModel) so it can be used in others models, my solution was: > > function currentUser() > { > //pr($this->Session->read('Auth.User')); > //pr($this->Auth->user()); > /

Re: Access $this->Session from a model

2014-05-28 Thread Henry Gabriel González Montejo
> > Hi i have the same problem with the > plugin https://github.com/robwilkerson/CakePHP-Audit-Log-Plugin, i put the > method in my Model (AppModel) so it can be used in others models, my > solution was: function currentUser() { //pr($this->Session->read('Auth

saveAssociated and $this->id

2014-05-19 Thread Jeremy Burns
. When I create the form I add a control called 'MessageRecipient'. This just passes a keyed array of user ids. How can I make those sit in the user_id field? Naming the field MessageRecipient.user_id is not the answer. 2) Once the data array arrives at the model it is not in the sam

Re: Problem with $this->redirect()

2014-05-01 Thread Vikash Sharma
can you please give me the exact solution of this problem On Sunday, September 17, 2006 12:37:42 PM UTC+5:30, Troy Schmidt wrote: > > AH! Alias setup. Yes you need the RewriteBase rule. I had to use > this on my Windows setup for mod_rewrite to work properly. Also since > webr

Re: Subqueries, how to do this correctly?

2014-04-28 Thread kdubya
You should make a belongsTo association between Submits and Categories. If you do this, Cake will automatically retrieve the data you are looking for when you do a find() on Submits. To learn more about this go to: http://book.cakephp.org/2.0/en/models/associations-linking-models-together.html

Subqueries, how to do this correctly?

2014-04-27 Thread callecx
Hi, I have two tables, one Submits, the other Categories. Submits has a column called category_id which is linked to the id of Categories. I want to access the name field from Category and return it, all in one query. how can I do this in CakePHP. Normally I'd make a virtual table and s

Re: $this->field and contain

2014-03-24 Thread Matthew Kaufman
; > > Am Montag, 24. März 2014 16:23:16 UTC+1 schrieb advantage+: >> >> I was under the impression counterCache holds record counts thru the >> relationships. >> >> >> >> I use that when a user has x number of related model records. >> >&

Re: $this->field and contain

2014-03-24 Thread euromark
rCache holds record counts thru the > relationships. > > > > I use that when a user has x number of related model records. > > In this case it’s a page view count that simply updates when viewed, no > relation to anything else there is no User hasMany PageView relationshi

RE: $this->field and contain

2014-03-24 Thread Advantage+
I was under the impression counterCache holds record counts thru the relationships. I use that when a user has x number of related model records. In this case it’s a page view count that simply updates when viewed, no relation to anything else there is no User hasMany PageView relationship

Re: $this->field and contain

2014-03-24 Thread John Sposato
> > > > public function pageCount($id) { > > $this->id = $id; > > $count = $this->field('view_count', array('id' => $id)) + > 1; > > $this->saveField('view_count', $co

$this->field and contain

2014-03-24 Thread Advantage+
Can you use / is there a way to read a field and not add in extra relation queries? I have a very simple function to read 1 field and update it by +1 public function pageCount($id) { $this->id = $id; $count = $this->field('view_count', a

Re: is this a threadsafe code?

2014-03-20 Thread Борислав Събев Borislav Sabev
itself for each request does not provide threading for the PHP script running on the server. Borislav. On Thursday, 20 March 2014 11:56:03 UTC+2, nicky wrote: > > I think this is nothing to do with thread safe , dont u think so ? > > > On Wed, Mar 19, 2014 at 9:44 PM, Eugenio

Re: is this a threadsafe code?

2014-03-20 Thread Kamal Deol
I think this is nothing to do with thread safe , dont u think so ? On Wed, Mar 19, 2014 at 9:44 PM, Eugenio wrote: > Why not; > $myBoolean=(boolean) something; > > > 2014-03-18 9:29 GMT-03:00 Kamal Deol : > > YES It is Thread Safe : 100% Sure >> >> >>

Re: is this a threadsafe code?

2014-03-19 Thread Eugenio
are multiple users hitting the SomeController at >> the same time, is myBoolean threadsafe? >> >> Thanks, >> Gary. >> >> -- >> Like Us on FaceBook https://www.facebook.com/CakePHP >> Find us on Twitter http://twitter.com/CakePHP >> >> ---

Re: is this a threadsafe code?

2014-03-18 Thread Kamal Deol
//www.facebook.com/CakePHP > Find us on Twitter http://twitter.com/CakePHP > > --- > You received this message because you are subscribed to the Google Groups > "CakePHP" group. > To unsubscribe from this group and stop receiving emails from it, send an >

is this a threadsafe code?

2014-03-18 Thread Gary Kremmer
the SomeController at the same time, is myBoolean threadsafe? Thanks, Gary. -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- You received this message because you are subscribed to the Google Groups "CakePHP" group. To u

Re: How to paginate this array

2014-01-17 Thread HK
You don't paginate the find results. You rather call Paginator on the model http://book.cakephp.org/2.0/en/core-libraries/components/pagination.html $data = $this->Paginator->paginate( > 'Post', > array('Post.title LIKE' => 'a%'));

How to paginate this array

2014-01-16 Thread ashok reddycharla
Hi, I got the records using find method. Then I did some operations and I have taken them into a new array. Now how to do pagination for this new array. $newarray[]= array( (int) 0 => array( 'Area' => vivekananda nagar, 'City' => 'Kukatpally',

$this -> render() not using correct view

2013-12-15 Thread Kristen M
() { $this -> render = ('/Collection/display_collection'); } Does not use display_collection.ctp, it uses collection_one.ctp (more specifically, it complains about collection_one.ctp missing) Is there a little trick to render()? -- Like Us on FaceBook https://www.faceboo

Re: Can anybody help me with this postLink() delete?

2013-11-06 Thread kushal i s
Thanks els. You saved my time... On Wednesday, 8 August 2012 18:24:12 UTC+5:30, els wrote: > > Hi amprodes, > > I had the same problem. The cookbook states that you should not use > postlinks inside another form. > I think removing the Account form will do the trick. > >

Re: Where to place this logic?

2013-10-27 Thread Anja Liebermann
r using with model testing. > > They also provide the CakeTestCase, which is an extension of the > PHPUnitTestCase (or whatever the proper PHPUnit test case class is called). > I believe you should be able to use this, just as you would if you were > writing tests for a model, or a helpe

  1   2   3   4   5   6   7   8   9   10   >