Re: Inner Join cakephp

2013-02-26 Thread Mateusz Kapusta
Have you already populated the second table? In case not you could use a 
hasOne or hasMany association, but you might have to change the layout of 
the table itself.

Il giorno lunedì 25 febbraio 2013 14:10:45 UTC+1, bau ha scritto:
>
> I have these 2 tables: cd_biblio (which contains a list of books) and 
> cd_bibliotem (which contains only the id of book and id of tag).
> I want to make a query where the user can choose also the tag of a book 
> (in both tables the tags are numeric).
> In the cd_biblios controller I add:
>
> App::import('Model', 'CdBibliotem');$CdBibliotem = new CdBibliotem();
>
> I made the queries for cd_biblio table in this way:
>
> // General query$conditions = array(
> 'editore LIKE' => "%$e%",
> 'titolo LIKE' => "%$t%");
>
> And then for example: 
>
> if (!$anno)
> $conditions[] = array('anno <=' => "$anno2");  if (!$anno2)
> $conditions[] = array('anno >=' => "$anno");
>
> Or: 
>
> if (isset($menu)&&$menu!='')
> $conditions[]=array('classe LIKE' => "%$menu%");
>
> Now I need to do a inner join between these 2 tables to get all the books 
> with a specific tags. 
> I save tags in string, so I use: 
> SELECT ... WHERE tags IN ('$tags'); 
> But I can't make a inner join using $conditions. 
>
> I tried something like this: 
>
> $tem = $CdBibliotem->query("SELECT * FROM cd_biblio INNER JOIN cd_bibliotem 
> ON cd_biblio.codiceBiblio = cd_bibliotem.codiceBiblio WHERE codiceTematica IN 
> ('$tematiche')"); $tem = Set::extract($tem, 
> '{n}.cd_biblio');$conditions[]=array('cd_biblio.codiceBiblio IN (?)' => 
> '$tem'); 
>
> But it's not working. (I'm using ver 1.2)
>
>

-- 
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 email 
to cake-php+unsubscr...@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Viewing 2 or more elements in the same view in Cakephp

2013-02-26 Thread Victor Musvibe
I am using Google API for displaying charts on my app. I am trying to view 
more than two elements on the same view page (index.ctp). Meaning i am 
trying to have more than 2 Charts on the same view page. The index page is 
only showing the policies_accessible2012.ctp element. 

Here is how i am calling the elements in my index.ctp




element('SurveyResults/2011/policies_accessible2011'); ?>

element('SurveyResults/2012/policies_accessible2012'); ?>




I do understand that if i have the following code, this will result in 
SurveyResults/2012/policies_accessible2012 rendered as the parent view to 
the current view

element('SurveyResults/2011/policies_accessible2011'); ?>
element('SurveyResults/2012/policies_accessible2012'); ?>

I am just wondering if they is a way to show the 2 or more elements on the 
same view. Thank you in advance

-- 
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 email 
to cake-php+unsubscr...@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: What happeened to the API Documentation on CakePHP.org?

2013-02-26 Thread jodator
Hi there,

they've changed the API yesterday, and i found it quite good.

Here is 1.3 debugger: http://api.cakephp.org/1.3/class-Debugger.html

I've found it by using the search box (it has a very nice autocomplete).

Just remember to choose CakePHP version.


On Tuesday, February 26, 2013 7:52:10 PM UTC+1, kdubya wrote:
>
> Exactly. When I used to go there I could choose to see the ALL the classes 
> and choose from an alphabetical list. Now it shows a structure off to the 
> left but when I try to find something like Debugger it is nowhere I can 
> find.
>
> When I go to the 2.0 version of the API (http://api.cakephp.org/2.0) to 
> the left there is a structure that makes some sense. Debugger is found 
> under Utilities. Not so under 1.3.
>
> Is there still some work going on here that the structure is not complete?
>
> Ken
>
> On Tuesday, February 26, 2013 1:26:43 PM UTC-5, kdubya wrote:
>>
>> I can't find the classes anymore. I was specifically looking for the 
>> Debugger class in 1.3. The structure that used to be there until recently 
>> is gone. What happened? Did I miss something?
>>
>> Ken
>>
>

-- 
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 email 
to cake-php+unsubscr...@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




reset form input after submission with jQuery and unique ID

2013-02-26 Thread Chris
hi guys,... can anyone help please,... 
how can I reset form after submission with unique ID, with jquery? Where 
unique ID is $photo_comment['PhotoComment']['id'] 

this is what I have so far,... and how do I 
code $photo_comment['PhotoComment']['id'] when complete: 
, 'complete' => 'javascript:resetReportPhotoCommentForm();'


submit('Report', array('url'=> 
array('controller'=>'photo_comments', 'action'=>'report_spam/'. 
$photo_comment['PhotoComment']['id']), 'update' => 
"updateReportPhotoComment_".$photo_comment['PhotoComment']['id'], 
'complete' => 'javascript:resetReportPhotoCommentForm();')); ?> 
end(); ?>



function resetReportPhotoCommentForm()
{
document.getElementById("ReportCommentFormId").reset();
}


thanks in advance 
chris 

-- 
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 email 
to cake-php+unsubscr...@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: error on installation -db config file

2013-02-26 Thread Osgaldor Storm
OMG, I'm s stupid!  I found the whole problem, On my local mysql I 
didn't set up the same user and password I had on my remote machine. 
 Derhh!!  it's fixed now.  Close this thread.  Sorry folks, i'm not a 
newbie, i just make absentminded mistakes.

On Monday, February 25, 2013 6:40:14 PM UTC-6, Osgaldor Storm wrote:
>
> I have just set up a fresh install of Cake, When I set the db credentials, 
> it threw the following fatal error when I browsed to the cake directory.
>
> Fatal Error
>
> *Error: *syntax error, unexpected T_CONSTANT_ENCAPSED_STRING, expecting 
> ')' 
> *File: *C:\wamp\www\Cake\cakephp-2.2.7\app\Config\database.php 
> *Line: *67
>

-- 
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 email 
to cake-php+unsubscr...@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: error on installation -db config file

2013-02-26 Thread Osgaldor Storm
I downloaded the debug kit, but i don't know how to install it.

On Tuesday, February 26, 2013 10:39:06 PM UTC-6, Osgaldor Storm wrote:
>
> Your version of PHP is 5.2.8 or higher.
>
> Your tmp directory is writable.
>
> The *FileEngine* is being used for core caching. To change the config 
> edit APP/Config/core.php
>
> Your database configuration file is present.
>
> Cake is NOT able to connect to the database.
>
> Database connection "Mysql" is missing, or could not be created.
> SQLSTATE[28000] [1045] Access denied for user 'root'@'localhost' (using 
> password: YES)
>
> DebugKit is not installed. It will help you inspect and debug different 
> aspects of your application.
> You can install it from github 
>
> On Monday, February 25, 2013 6:40:14 PM UTC-6, Osgaldor Storm wrote:
>>
>> I have just set up a fresh install of Cake, When I set the db 
>> credentials, it threw the following fatal error when I browsed to the cake 
>> directory.
>>
>> Fatal Error
>>
>> *Error: *syntax error, unexpected T_CONSTANT_ENCAPSED_STRING, expecting 
>> ')' 
>> *File: *C:\wamp\www\Cake\cakephp-2.2.7\app\Config\database.php 
>> *Line: *67
>>
>

-- 
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 email 
to cake-php+unsubscr...@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: error on installation -db config file

2013-02-26 Thread Osgaldor Storm


Your version of PHP is 5.2.8 or higher.

Your tmp directory is writable.

The *FileEngine* is being used for core caching. To change the config edit 
APP/Config/core.php

Your database configuration file is present.

Cake is NOT able to connect to the database.

Database connection "Mysql" is missing, or could not be created.
SQLSTATE[28000] [1045] Access denied for user 'root'@'localhost' (using 
password: YES)

DebugKit is not installed. It will help you inspect and debug different 
aspects of your application.
You can install it from github 

On Monday, February 25, 2013 6:40:14 PM UTC-6, Osgaldor Storm wrote:
>
> I have just set up a fresh install of Cake, When I set the db credentials, 
> it threw the following fatal error when I browsed to the cake directory.
>
> Fatal Error
>
> *Error: *syntax error, unexpected T_CONSTANT_ENCAPSED_STRING, expecting 
> ')' 
> *File: *C:\wamp\www\Cake\cakephp-2.2.7\app\Config\database.php 
> *Line: *67
>

-- 
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 email 
to cake-php+unsubscr...@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: error on installation -db config file

2013-02-26 Thread Osgaldor Storm
Now i have a whole different can of worms.  using the same credentials that 
errored before, i now get a green light on my db config file is present, 
but yellows on  cake could not connect to database, it says it can't find 
the MySQL connection.  i'm developing locally on WAMP, and my db is on 
localhost (I assume).

On Tuesday, February 26, 2013 10:19:38 PM UTC-6, Osgaldor Storm wrote:
>
> Ok, i started over with a brand new install.
>
> On Monday, February 25, 2013 6:40:14 PM UTC-6, Osgaldor Storm wrote:
>>
>> I have just set up a fresh install of Cake, When I set the db 
>> credentials, it threw the following fatal error when I browsed to the cake 
>> directory.
>>
>> Fatal Error
>>
>> *Error: *syntax error, unexpected T_CONSTANT_ENCAPSED_STRING, expecting 
>> ')' 
>> *File: *C:\wamp\www\Cake\cakephp-2.2.7\app\Config\database.php 
>> *Line: *67
>>
>

-- 
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 email 
to cake-php+unsubscr...@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: error on installation -db config file

2013-02-26 Thread Osgaldor Storm
Ok, i started over with a brand new install.

On Monday, February 25, 2013 6:40:14 PM UTC-6, Osgaldor Storm wrote:
>
> I have just set up a fresh install of Cake, When I set the db credentials, 
> it threw the following fatal error when I browsed to the cake directory.
>
> Fatal Error
>
> *Error: *syntax error, unexpected T_CONSTANT_ENCAPSED_STRING, expecting 
> ')' 
> *File: *C:\wamp\www\Cake\cakephp-2.2.7\app\Config\database.php 
> *Line: *67
>

-- 
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 email 
to cake-php+unsubscr...@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: error on installation -db config file

2013-02-26 Thread Osgaldor Storm
Now that IS strange, i deleted the file and still have the same error.

On Tuesday, February 26, 2013 10:06:27 PM UTC-6, Thiago Belem wrote:
>
> Rename or delete the file and see if the error go away.
>
> --
> Thiago Belem
>
> Enviado pelo celular
> Em 27/02/2013 00:58, "Osgaldor Storm" > 
> escreveu:
>
>> The file is renamed database.php  and I went and got a fresh copy of the 
>> file and the error was the same.  I tried commenting out  that prefix value 
>> and it made no difference.  The fresh copy throws the same error without 
>> any of my config values.
>>
>> On Monday, February 25, 2013 6:40:14 PM UTC-6, Osgaldor Storm wrote:
>>>
>>> I have just set up a fresh install of Cake, When I set the db 
>>> credentials, it threw the following fatal error when I browsed to the cake 
>>> directory.
>>>
>>> Fatal Error
>>>
>>> *Error: *syntax error, unexpected T_CONSTANT_ENCAPSED_STRING, expecting 
>>> ')' 
>>> *File: *C:\wamp\www\Cake\**cakephp-2.2.7\app\Config\**database.php 
>>> *Line: *67
>>>
>>  -- 
>> 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 
>> email to cake-php+u...@googlegroups.com .
>> To post to this group, send email to cake...@googlegroups.com
>> .
>> Visit this group at http://groups.google.com/group/cake-php?hl=en.
>> For more options, visit https://groups.google.com/groups/opt_out.
>>  
>>  
>>
>

-- 
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 email 
to cake-php+unsubscr...@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: error on installation -db config file

2013-02-26 Thread Thiago Belem
Rename or delete the file and see if the error go away.

--
Thiago Belem

Enviado pelo celular
Em 27/02/2013 00:58, "Osgaldor Storm"  escreveu:

> The file is renamed database.php  and I went and got a fresh copy of the
> file and the error was the same.  I tried commenting out  that prefix value
> and it made no difference.  The fresh copy throws the same error without
> any of my config values.
>
> On Monday, February 25, 2013 6:40:14 PM UTC-6, Osgaldor Storm wrote:
>>
>> I have just set up a fresh install of Cake, When I set the db
>> credentials, it threw the following fatal error when I browsed to the cake
>> directory.
>>
>> Fatal Error
>>
>> *Error: *syntax error, unexpected T_CONSTANT_ENCAPSED_STRING, expecting
>> ')'
>> *File: *C:\wamp\www\Cake\**cakephp-2.2.7\app\Config\**database.php
>> *Line: *67
>>
>  --
> 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
> email to cake-php+unsubscr...@googlegroups.com.
> To post to this group, send email to cake-php@googlegroups.com.
> Visit this group at http://groups.google.com/group/cake-php?hl=en.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>

-- 
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 email 
to cake-php+unsubscr...@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: error on installation -db config file

2013-02-26 Thread Osgaldor Storm
The file is renamed database.php  and I went and got a fresh copy of the 
file and the error was the same.  I tried commenting out  that prefix value 
and it made no difference.  The fresh copy throws the same error without 
any of my config values.

On Monday, February 25, 2013 6:40:14 PM UTC-6, Osgaldor Storm wrote:
>
> I have just set up a fresh install of Cake, When I set the db credentials, 
> it threw the following fatal error when I browsed to the cake directory.
>
> Fatal Error
>
> *Error: *syntax error, unexpected T_CONSTANT_ENCAPSED_STRING, expecting 
> ')' 
> *File: *C:\wamp\www\Cake\cakephp-2.2.7\app\Config\database.php 
> *Line: *67
>

-- 
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 email 
to cake-php+unsubscr...@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: error on installation -db config file

2013-02-26 Thread Thiago Belem
I would say the problem is here:

'prefix' => '',);

Please, try again with the default database.php.default renamed to
database.php without altering anything.

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

*Assando Sites* - Curso online de *CakePHP*
assando-sites.com.br 

thiagobelem.net
cont...@thiagobelem.net

*Skype / gTalk **»* thiago.belem.web
*LinkedIn* *»* br.linkedin.com/in/thiagobelem/pt


On Wed, Feb 27, 2013 at 12:41 AM, Osgaldor Storm  wrote:

> ok, I updated it with the whole file Thiago.
>
>
> On Tuesday, February 26, 2013 9:36:43 PM UTC-6, Thiago Belem wrote:
>
>> There's the } from the class definition? That's why I asked for the whole
>> file.
>>
>> Maybe there's something wrong with your password? It contains ' ?
>>
>> And what about your PHP version?
>>
>> --
>> ***Thiago Belem*
>> Desenvolvedor
>> Rio de Janeiro - RJ - Brasil
>>
>> *Assando Sites* - Curso online de *CakePHP*
>> assando-sites.com.br 
>>
>> thiagobelem.net
>>
>> con...@thiagobelem.net
>>
>> *Skype / gTalk **»* thiago.belem.web
>> *LinkedIn* *»* 
>> br.linkedin.com/in/**thiagobelem/pt
>>
>>
>> On Wed, Feb 27, 2013 at 12:21 AM, Osgaldor Storm wrote:
>>
>>> https://gist.github.com/**osgaldor/5044721
>>>
>>>
>>> On Tuesday, February 26, 2013 8:47:24 PM UTC-6, Thiago Belem wrote:
>>>
 Please, copy the content of the file to: https://gist.github.com/ and
 post the link here.

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

 *Assando Sites* - Curso online de *CakePHP*
 assando-sites.com.br 

 thiagobelem.net
 con...@thiagobelem.net


 *Skype / gTalk **»* thiago.belem.web
 *LinkedIn* *»* 
 br.linkedin.com/in/**thiagobelem**/pt


 On Tue, Feb 26, 2013 at 11:44 PM, Osgaldor Storm wrote:

> Yes, I read the message but this is in code written by the Cake team,
> it doesn't make sense that it wants a closing parenthesis because it's
> right in the middle of a long, multi-line array definition.  Look in your
> own copy of the code at that point.  That's not user code, that's just the
> place where we plug in our own database variables.  i'm used to dealing
> with code Igniter, but I'm new to Cake.
>
> On Tuesday, February 26, 2013 4:40:15 PM UTC-6, AD7six wrote:
>>
>> Did you cheat and read the error message =)?
>>
>> On Tuesday, 26 February 2013 21:12:31 UTC+1, Jeremy Burns wrote:
>>>
>>> It's just a wild guess, but I reckon you are missing a closing
>>> bracket on line 67 of /app/Config/database.php
>>>
>>> Jeremy Burns
>>> Class Outfit
>>>
>>> http://www.classoutfit.com
>>>
>>> On 26 Feb 2013, at 00:40:14, Osgaldor Storm 
>>> wrote:
>>>
>>> I have just set up a fresh install of Cake, When I set the db
>>> credentials, it threw the following fatal error when I browsed to the 
>>> cake
>>> directory.
>>>
>>> Fatal Error
>>>
>>> *Error: *syntax error, unexpected T_CONSTANT_ENCAPSED_STRING,
>>> expecting ')'
>>> *File: *C:\wamp\www\Cake\**cakephp-2.2.7\app\Config\**database.php
>>>
>>> *Line: *67
>>>
>>> --
>>> 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 email to cake-php+u...@googlegroups.com**.
>>> To post to this group, send email to cake...@googlegroups.com.
>>> Visit this group at http://groups.google.com/**group
>>> /cake-php?hl=en .
>>> For more options, visit https://groups.google.com/**grou
>>> ps/opt_out .
>>>
>>>
>>>
>>>
>>>  --
> Like Us on FaceBook 
> https://www.facebook.com/**CakeP**HP
> 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+u...@**googlegroups.com**.
> To post to this group, send email to cake...@googlegroups.com.
> Visit this group at 
> http://groups.google.com/**group**/cake-php?hl=en
> .
> For more options, visit 
> https://groups.google.com/**grou**ps/opt_out
> .
>
>
>

  --
>>> Lik

Re: error on installation -db config file

2013-02-26 Thread Osgaldor Storm
password contains only letters and numbers, no '  php version is 5.2.8

On Tuesday, February 26, 2013 9:36:43 PM UTC-6, Thiago Belem wrote:
>
> There's the } from the class definition? That's why I asked for the whole 
> file.
>
> Maybe there's something wrong with your password? It contains ' ?
>
> And what about your PHP version?
>
> --
> ***Thiago Belem*
> Desenvolvedor
> Rio de Janeiro - RJ - Brasil
>
> *Assando Sites* - Curso online de *CakePHP*
> assando-sites.com.br 
>
> thiagobelem.net
> con...@thiagobelem.net 
>
> *Skype / gTalk **»* thiago.belem.web
> *LinkedIn* *»* br.linkedin.com/in/thiagobelem/pt
>  
>
> On Wed, Feb 27, 2013 at 12:21 AM, Osgaldor Storm 
> 
> > wrote:
>
>> https://gist.github.com/osgaldor/5044721
>>
>>
>> On Tuesday, February 26, 2013 8:47:24 PM UTC-6, Thiago Belem wrote:
>>
>>> Please, copy the content of the file to: https://gist.github.com/ and 
>>> post the link here.
>>>
>>> --
>>> ***Thiago Belem*
>>> Desenvolvedor
>>> Rio de Janeiro - RJ - Brasil
>>>
>>> *Assando Sites* - Curso online de *CakePHP*
>>> assando-sites.com.br 
>>>
>>> thiagobelem.net
>>> con...@thiagobelem.net
>>>
>>>
>>> *Skype / gTalk **»* thiago.belem.web
>>> *LinkedIn* *»* 
>>> br.linkedin.com/in/**thiagobelem/pt
>>>  
>>>
>>> On Tue, Feb 26, 2013 at 11:44 PM, Osgaldor Storm wrote:
>>>
 Yes, I read the message but this is in code written by the Cake team, 
 it doesn't make sense that it wants a closing parenthesis because it's 
 right in the middle of a long, multi-line array definition.  Look in your 
 own copy of the code at that point.  That's not user code, that's just the 
 place where we plug in our own database variables.  i'm used to dealing 
 with code Igniter, but I'm new to Cake.

 On Tuesday, February 26, 2013 4:40:15 PM UTC-6, AD7six wrote:
>
> Did you cheat and read the error message =)?
>
> On Tuesday, 26 February 2013 21:12:31 UTC+1, Jeremy Burns wrote:
>>
>> It's just a wild guess, but I reckon you are missing a closing 
>> bracket on line 67 of /app/Config/database.php
>>  
>> Jeremy Burns
>> Class Outfit
>>
>> http://www.classoutfit.com 
>>
>> On 26 Feb 2013, at 00:40:14, Osgaldor Storm  
>> wrote:
>>
>> I have just set up a fresh install of Cake, When I set the db 
>> credentials, it threw the following fatal error when I browsed to the 
>> cake 
>> directory.
>>
>> Fatal Error
>>
>> *Error: *syntax error, unexpected T_CONSTANT_ENCAPSED_STRING, 
>> expecting ')' 
>> *File: *C:\wamp\www\Cake\**cakephp**-2.2.7\app\Config\**database.php 
>> *Line: *67
>>
>> -- 
>> Like Us on FaceBook 
>> https://www.facebook.com/**CakeP**HP
>> 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+u...@googlegroups.com.
>> To post to this group, send email to cake...@googlegroups.com.
>> Visit this group at 
>> http://groups.google.com/**group**/cake-php?hl=en
>> .
>> For more options, visit 
>> https://groups.google.com/**grou**ps/opt_out
>> .
>>  
>>  
>>
>>
>>  -- 
 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 email to cake-php+u...@**googlegroups.com.
 To post to this group, send email to cake...@googlegroups.com.
 Visit this group at 
 http://groups.google.com/**group/cake-php?hl=en
 .
 For more options, visit 
 https://groups.google.com/**groups/opt_out
 .
  
  

>>>
>>>  -- 
>> 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 
>> email to cake-php+u...@googlegroups.com .
>> To post to this group, send email to cake...@googlegroups.com
>> .
>> Visit this group at http://groups.google.com/group/cake-php?hl=en.
>> For more options, visit https://groups.google.com/groups/opt_out.
>>  
>>  
>>
>
>

-- 
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP

--- 

Re: error on installation -db config file

2013-02-26 Thread Osgaldor Storm
ok, I updated it with the whole file Thiago.

On Tuesday, February 26, 2013 9:36:43 PM UTC-6, Thiago Belem wrote:
>
> There's the } from the class definition? That's why I asked for the whole 
> file.
>
> Maybe there's something wrong with your password? It contains ' ?
>
> And what about your PHP version?
>
> --
> ***Thiago Belem*
> Desenvolvedor
> Rio de Janeiro - RJ - Brasil
>
> *Assando Sites* - Curso online de *CakePHP*
> assando-sites.com.br 
>
> thiagobelem.net
> con...@thiagobelem.net 
>
> *Skype / gTalk **»* thiago.belem.web
> *LinkedIn* *»* br.linkedin.com/in/thiagobelem/pt
>  
>
> On Wed, Feb 27, 2013 at 12:21 AM, Osgaldor Storm 
> 
> > wrote:
>
>> https://gist.github.com/osgaldor/5044721
>>
>>
>> On Tuesday, February 26, 2013 8:47:24 PM UTC-6, Thiago Belem wrote:
>>
>>> Please, copy the content of the file to: https://gist.github.com/ and 
>>> post the link here.
>>>
>>> --
>>> ***Thiago Belem*
>>> Desenvolvedor
>>> Rio de Janeiro - RJ - Brasil
>>>
>>> *Assando Sites* - Curso online de *CakePHP*
>>> assando-sites.com.br 
>>>
>>> thiagobelem.net
>>> con...@thiagobelem.net
>>>
>>>
>>> *Skype / gTalk **»* thiago.belem.web
>>> *LinkedIn* *»* 
>>> br.linkedin.com/in/**thiagobelem/pt
>>>  
>>>
>>> On Tue, Feb 26, 2013 at 11:44 PM, Osgaldor Storm wrote:
>>>
 Yes, I read the message but this is in code written by the Cake team, 
 it doesn't make sense that it wants a closing parenthesis because it's 
 right in the middle of a long, multi-line array definition.  Look in your 
 own copy of the code at that point.  That's not user code, that's just the 
 place where we plug in our own database variables.  i'm used to dealing 
 with code Igniter, but I'm new to Cake.

 On Tuesday, February 26, 2013 4:40:15 PM UTC-6, AD7six wrote:
>
> Did you cheat and read the error message =)?
>
> On Tuesday, 26 February 2013 21:12:31 UTC+1, Jeremy Burns wrote:
>>
>> It's just a wild guess, but I reckon you are missing a closing 
>> bracket on line 67 of /app/Config/database.php
>>  
>> Jeremy Burns
>> Class Outfit
>>
>> http://www.classoutfit.com 
>>
>> On 26 Feb 2013, at 00:40:14, Osgaldor Storm  
>> wrote:
>>
>> I have just set up a fresh install of Cake, When I set the db 
>> credentials, it threw the following fatal error when I browsed to the 
>> cake 
>> directory.
>>
>> Fatal Error
>>
>> *Error: *syntax error, unexpected T_CONSTANT_ENCAPSED_STRING, 
>> expecting ')' 
>> *File: *C:\wamp\www\Cake\**cakephp**-2.2.7\app\Config\**database.php 
>> *Line: *67
>>
>> -- 
>> Like Us on FaceBook 
>> https://www.facebook.com/**CakeP**HP
>> 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+u...@googlegroups.com.
>> To post to this group, send email to cake...@googlegroups.com.
>> Visit this group at 
>> http://groups.google.com/**group**/cake-php?hl=en
>> .
>> For more options, visit 
>> https://groups.google.com/**grou**ps/opt_out
>> .
>>  
>>  
>>
>>
>>  -- 
 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 email to cake-php+u...@**googlegroups.com.
 To post to this group, send email to cake...@googlegroups.com.
 Visit this group at 
 http://groups.google.com/**group/cake-php?hl=en
 .
 For more options, visit 
 https://groups.google.com/**groups/opt_out
 .
  
  

>>>
>>>  -- 
>> 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 
>> email to cake-php+u...@googlegroups.com .
>> To post to this group, send email to cake...@googlegroups.com
>> .
>> Visit this group at http://groups.google.com/group/cake-php?hl=en.
>> For more options, visit https://groups.google.com/groups/opt_out.
>>  
>>  
>>
>
>

-- 
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP

--- 
You received this message

Re: error on installation -db config file

2013-02-26 Thread Thiago Belem
There's the } from the class definition? That's why I asked for the whole
file.

Maybe there's something wrong with your password? It contains ' ?

And what about your PHP version?

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

*Assando Sites* - Curso online de *CakePHP*
assando-sites.com.br 

thiagobelem.net
cont...@thiagobelem.net

*Skype / gTalk **»* thiago.belem.web
*LinkedIn* *»* br.linkedin.com/in/thiagobelem/pt


On Wed, Feb 27, 2013 at 12:21 AM, Osgaldor Storm  wrote:

> https://gist.github.com/osgaldor/5044721
>
>
> On Tuesday, February 26, 2013 8:47:24 PM UTC-6, Thiago Belem wrote:
>
>> Please, copy the content of the file to: https://gist.github.com/ and
>> post the link here.
>>
>> --
>> ***Thiago Belem*
>> Desenvolvedor
>> Rio de Janeiro - RJ - Brasil
>>
>> *Assando Sites* - Curso online de *CakePHP*
>> assando-sites.com.br 
>>
>> thiagobelem.net
>> con...@thiagobelem.net
>>
>>
>> *Skype / gTalk **»* thiago.belem.web
>> *LinkedIn* *»* 
>> br.linkedin.com/in/**thiagobelem/pt
>>
>>
>> On Tue, Feb 26, 2013 at 11:44 PM, Osgaldor Storm wrote:
>>
>>> Yes, I read the message but this is in code written by the Cake team, it
>>> doesn't make sense that it wants a closing parenthesis because it's right
>>> in the middle of a long, multi-line array definition.  Look in your own
>>> copy of the code at that point.  That's not user code, that's just the
>>> place where we plug in our own database variables.  i'm used to dealing
>>> with code Igniter, but I'm new to Cake.
>>>
>>> On Tuesday, February 26, 2013 4:40:15 PM UTC-6, AD7six wrote:

 Did you cheat and read the error message =)?

 On Tuesday, 26 February 2013 21:12:31 UTC+1, Jeremy Burns wrote:
>
> It's just a wild guess, but I reckon you are missing a closing bracket
> on line 67 of /app/Config/database.php
>
> Jeremy Burns
> Class Outfit
>
> http://www.classoutfit.com
>
> On 26 Feb 2013, at 00:40:14, Osgaldor Storm  wrote:
>
> I have just set up a fresh install of Cake, When I set the db
> credentials, it threw the following fatal error when I browsed to the cake
> directory.
>
> Fatal Error
>
> *Error: *syntax error, unexpected T_CONSTANT_ENCAPSED_STRING,
> expecting ')'
> *File: *C:\wamp\www\Cake\**cakephp**-2.2.7\app\Config\**database.php
> *Line: *67
>
> --
> Like Us on FaceBook 
> https://www.facebook.com/**CakeP**HP
> 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+u...@googlegroups.com.
> To post to this group, send email to cake...@googlegroups.com.
> Visit this group at 
> http://groups.google.com/**group**/cake-php?hl=en
> .
> For more options, visit 
> https://groups.google.com/**grou**ps/opt_out
> .
>
>
>
>
>  --
>>> 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 email to cake-php+u...@**googlegroups.com.
>>> To post to this group, send email to cake...@googlegroups.com.
>>> Visit this group at 
>>> http://groups.google.com/**group/cake-php?hl=en
>>> .
>>> For more options, visit 
>>> https://groups.google.com/**groups/opt_out
>>> .
>>>
>>>
>>>
>>
>>  --
> 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
> email to cake-php+unsubscr...@googlegroups.com.
> To post to this group, send email to cake-php@googlegroups.com.
> Visit this group at http://groups.google.com/group/cake-php?hl=en.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>

-- 
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 email 
to cake-php+unsubscr...@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en.
For more options, visit ht

Re: error on installation -db config file

2013-02-26 Thread Osgaldor Storm
https://gist.github.com/osgaldor/5044721

On Tuesday, February 26, 2013 8:47:24 PM UTC-6, Thiago Belem wrote:
>
> Please, copy the content of the file to: https://gist.github.com/ and 
> post the link here.
>
> --
> ***Thiago Belem*
> Desenvolvedor
> Rio de Janeiro - RJ - Brasil
>
> *Assando Sites* - Curso online de *CakePHP*
> assando-sites.com.br 
>
> thiagobelem.net
> con...@thiagobelem.net 
>
> *Skype / gTalk **»* thiago.belem.web
> *LinkedIn* *»* br.linkedin.com/in/thiagobelem/pt
>  
>
> On Tue, Feb 26, 2013 at 11:44 PM, Osgaldor Storm 
> 
> > wrote:
>
>> Yes, I read the message but this is in code written by the Cake team, it 
>> doesn't make sense that it wants a closing parenthesis because it's right 
>> in the middle of a long, multi-line array definition.  Look in your own 
>> copy of the code at that point.  That's not user code, that's just the 
>> place where we plug in our own database variables.  i'm used to dealing 
>> with code Igniter, but I'm new to Cake.
>>
>> On Tuesday, February 26, 2013 4:40:15 PM UTC-6, AD7six wrote:
>>>
>>> Did you cheat and read the error message =)?
>>>
>>> On Tuesday, 26 February 2013 21:12:31 UTC+1, Jeremy Burns wrote:

 It's just a wild guess, but I reckon you are missing a closing bracket 
 on line 67 of /app/Config/database.php
  
 Jeremy Burns
 Class Outfit

 http://www.classoutfit.com 

 On 26 Feb 2013, at 00:40:14, Osgaldor Storm  wrote:

 I have just set up a fresh install of Cake, When I set the db 
 credentials, it threw the following fatal error when I browsed to the cake 
 directory.

 Fatal Error

 *Error: *syntax error, unexpected T_CONSTANT_ENCAPSED_STRING, 
 expecting ')' 
 *File: *C:\wamp\www\Cake\**cakephp-2.2.7\app\Config\**database.php 
 *Line: *67

 -- 
 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 email to cake-php+u...@googlegroups.com**.
 To post to this group, send email to cake...@googlegroups.com.
 Visit this group at 
 http://groups.google.com/**group/cake-php?hl=en
 .
 For more options, visit 
 https://groups.google.com/**groups/opt_out
 .
  
  


  -- 
>> 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 
>> email to cake-php+u...@googlegroups.com .
>> To post to this group, send email to cake...@googlegroups.com
>> .
>> Visit this group at http://groups.google.com/group/cake-php?hl=en.
>> For more options, visit https://groups.google.com/groups/opt_out.
>>  
>>  
>>
>
>

-- 
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 email 
to cake-php+unsubscr...@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




jQuery dialog box with remoteFunction Ajax Call

2013-02-26 Thread Chris
hi guys,... can someone help me please,... 
I need to call jQuery dialog box from page currently called 
from remoteFunction,... when I call another remoteFunction in that page, 
the page is not responding. 

How can I Ajax call without remoteFunction,...? 
this is what I currently have: 

 
  $(function() {
$( "#photo_comments_dialog" ).dialog({
  autoOpen: false,
width: 500,

});
 
$( "#photo_comments_opener" ).click(function() {
  $( "#photo_comments_dialog" ).dialog( "open" );
});

  });
  



link(ucfirst(__('report', true)), 'javascript:void(0)', 
array('id' => 'photo_comments_opener', 'class' => 'report')) ?>






remoteFunction(array('url' => array('controller' => 
'photo_comment', 'action' => 'report_spam/', 
$photo_comment['PhotoComment']['id']), 'update' => 
'photo_comments_reports')); ?>




 

is there a way make ajax call without remoteFunction call...?? 

Thanks in advance 
chris


-- 
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 email 
to cake-php+unsubscr...@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: error on installation -db config file

2013-02-26 Thread Thiago Belem
Please, copy the content of the file to: https://gist.github.com/ and post
the link here.

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

*Assando Sites* - Curso online de *CakePHP*
assando-sites.com.br 

thiagobelem.net
cont...@thiagobelem.net

*Skype / gTalk **»* thiago.belem.web
*LinkedIn* *»* br.linkedin.com/in/thiagobelem/pt


On Tue, Feb 26, 2013 at 11:44 PM, Osgaldor Storm  wrote:

> Yes, I read the message but this is in code written by the Cake team, it
> doesn't make sense that it wants a closing parenthesis because it's right
> in the middle of a long, multi-line array definition.  Look in your own
> copy of the code at that point.  That's not user code, that's just the
> place where we plug in our own database variables.  i'm used to dealing
> with code Igniter, but I'm new to Cake.
>
> On Tuesday, February 26, 2013 4:40:15 PM UTC-6, AD7six wrote:
>>
>> Did you cheat and read the error message =)?
>>
>> On Tuesday, 26 February 2013 21:12:31 UTC+1, Jeremy Burns wrote:
>>>
>>> It's just a wild guess, but I reckon you are missing a closing bracket
>>> on line 67 of /app/Config/database.php
>>>
>>> Jeremy Burns
>>> Class Outfit
>>>
>>> http://www.classoutfit.com
>>>
>>> On 26 Feb 2013, at 00:40:14, Osgaldor Storm  wrote:
>>>
>>> I have just set up a fresh install of Cake, When I set the db
>>> credentials, it threw the following fatal error when I browsed to the cake
>>> directory.
>>>
>>> Fatal Error
>>>
>>> *Error: *syntax error, unexpected T_CONSTANT_ENCAPSED_STRING, expecting
>>> ')'
>>> *File: *C:\wamp\www\Cake\**cakephp-2.2.7\app\Config\**database.php
>>> *Line: *67
>>>
>>> --
>>> 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 email to cake-php+u...@googlegroups.com**.
>>> To post to this group, send email to cake...@googlegroups.com.
>>> Visit this group at 
>>> http://groups.google.com/**group/cake-php?hl=en
>>> .
>>> For more options, visit 
>>> https://groups.google.com/**groups/opt_out
>>> .
>>>
>>>
>>>
>>>
>>>  --
> 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
> email to cake-php+unsubscr...@googlegroups.com.
> To post to this group, send email to cake-php@googlegroups.com.
> Visit this group at http://groups.google.com/group/cake-php?hl=en.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>

-- 
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 email 
to cake-php+unsubscr...@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: error on installation -db config file

2013-02-26 Thread Osgaldor Storm
Yes, I read the message but this is in code written by the Cake team, it 
doesn't make sense that it wants a closing parenthesis because it's right 
in the middle of a long, multi-line array definition.  Look in your own 
copy of the code at that point.  That's not user code, that's just the 
place where we plug in our own database variables.  i'm used to dealing 
with code Igniter, but I'm new to Cake.

On Tuesday, February 26, 2013 4:40:15 PM UTC-6, AD7six wrote:
>
> Did you cheat and read the error message =)?
>
> On Tuesday, 26 February 2013 21:12:31 UTC+1, Jeremy Burns wrote:
>>
>> It's just a wild guess, but I reckon you are missing a closing bracket on 
>> line 67 of /app/Config/database.php
>>
>> Jeremy Burns
>> Class Outfit
>>
>> http://www.classoutfit.com 
>>
>> On 26 Feb 2013, at 00:40:14, Osgaldor Storm  wrote:
>>
>> I have just set up a fresh install of Cake, When I set the db 
>> credentials, it threw the following fatal error when I browsed to the cake 
>> directory.
>>
>> Fatal Error
>>
>> *Error: *syntax error, unexpected T_CONSTANT_ENCAPSED_STRING, expecting 
>> ')' 
>> *File: *C:\wamp\www\Cake\cakephp-2.2.7\app\Config\database.php 
>> *Line: *67
>>
>> -- 
>> 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 
>> email to cake-php+u...@googlegroups.com.
>> To post to this group, send email to cake...@googlegroups.com.
>> Visit this group at http://groups.google.com/group/cake-php?hl=en.
>> For more options, visit https://groups.google.com/groups/opt_out.
>>  
>>  
>>
>>
>>

-- 
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 email 
to cake-php+unsubscr...@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: error on installation -db config file

2013-02-26 Thread Osgaldor Storm
That line is in the middle of an array definition.  If i put in the closing 
parenthesis, it will leave out some values from the array being defined. 
 This is out-of-the-box code  from Cake, not my code.

On Tuesday, February 26, 2013 2:12:31 PM UTC-6, Jeremy Burns wrote:
>
> It's just a wild guess, but I reckon you are missing a closing bracket on 
> line 67 of /app/Config/database.php
>
> Jeremy Burns
> Class Outfit
>
> http://www.classoutfit.com 
>
> On 26 Feb 2013, at 00:40:14, Osgaldor Storm > 
> wrote:
>
> I have just set up a fresh install of Cake, When I set the db credentials, 
> it threw the following fatal error when I browsed to the cake directory.
>
> Fatal Error
>
> *Error: *syntax error, unexpected T_CONSTANT_ENCAPSED_STRING, expecting 
> ')' 
> *File: *C:\wamp\www\Cake\cakephp-2.2.7\app\Config\database.php 
> *Line: *67
>
> -- 
> 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 
> email to cake-php+u...@googlegroups.com .
> To post to this group, send email to cake...@googlegroups.com
> .
> Visit this group at http://groups.google.com/group/cake-php?hl=en.
> For more options, visit https://groups.google.com/groups/opt_out.
>  
>  
>
>
>

-- 
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 email 
to cake-php+unsubscr...@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: Calling functions in other controllers

2013-02-26 Thread lirc201
I'm in 2 different controllers.  In the checkout controller, I'm trying to 
call a function in the cart controller.

On Tuesday, February 26, 2013 7:34:39 PM UTC-5, jsundquist wrote:
>
> If you are in the function trying to call another function just do 
> $this->get() not $this->cart->get()
> On Feb 26, 2013 6:32 PM, "lirc201" > 
> wrote:
>
>> I'm still working in cake 1.3.15 (going to upgrade soon) but running into 
>> an issue.  I'm setting up a shopping cart so I have functions in my 
>> cart_controller like
>>
>> Cart get()
>> Cart total()
>>
>> When I attempt to call these functions in my checkout_controller ...
>>
>> var $uses = ('Cart',,,);
>>
>> function index() {
>>   $cart = $this->Cart->get();
>>   $total = $this->Cart->total();
>>
>> When checking out I get an SQL error about incorrect mysql syntax ... 
>> check the manual ...  the next line reads "Query: get".  If I pull the 
>> "get" code into the checkout_controller it runs as expected.
>>
>> What I'm I missing?
>>
>> Thanks,
>> Brian
>>
>> -- 
>> 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 
>> email to cake-php+u...@googlegroups.com .
>> To post to this group, send email to cake...@googlegroups.com
>> .
>> Visit this group at http://groups.google.com/group/cake-php?hl=en.
>> For more options, visit https://groups.google.com/groups/opt_out.
>>  
>>  
>>
>

-- 
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 email 
to cake-php+unsubscr...@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: Calling functions in other controllers

2013-02-26 Thread Jonathan Sundquist
If you are in the function trying to call another function just do
$this->get() not $this->cart->get()
On Feb 26, 2013 6:32 PM, "lirc201"  wrote:

> I'm still working in cake 1.3.15 (going to upgrade soon) but running into
> an issue.  I'm setting up a shopping cart so I have functions in my
> cart_controller like
>
> Cart get()
> Cart total()
>
> When I attempt to call these functions in my checkout_controller ...
>
> var $uses = ('Cart',,,);
>
> function index() {
>   $cart = $this->Cart->get();
>   $total = $this->Cart->total();
>
> When checking out I get an SQL error about incorrect mysql syntax ...
> check the manual ...  the next line reads "Query: get".  If I pull the
> "get" code into the checkout_controller it runs as expected.
>
> What I'm I missing?
>
> Thanks,
> Brian
>
> --
> 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
> email to cake-php+unsubscr...@googlegroups.com.
> To post to this group, send email to cake-php@googlegroups.com.
> Visit this group at http://groups.google.com/group/cake-php?hl=en.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>

-- 
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 email 
to cake-php+unsubscr...@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Calling functions in other controllers

2013-02-26 Thread lirc201
I'm still working in cake 1.3.15 (going to upgrade soon) but running into 
an issue.  I'm setting up a shopping cart so I have functions in my 
cart_controller like

Cart get()
Cart total()

When I attempt to call these functions in my checkout_controller ...

var $uses = ('Cart',,,);

function index() {
  $cart = $this->Cart->get();
  $total = $this->Cart->total();

When checking out I get an SQL error about incorrect mysql syntax ... check 
the manual ...  the next line reads "Query: get".  If I pull the "get" code 
into the checkout_controller it runs as expected.

What I'm I missing?

Thanks,
Brian

-- 
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 email 
to cake-php+unsubscr...@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: error on installation -db config file

2013-02-26 Thread AD7six
Did you cheat and read the error message =)?

On Tuesday, 26 February 2013 21:12:31 UTC+1, Jeremy Burns wrote:
>
> It's just a wild guess, but I reckon you are missing a closing bracket on 
> line 67 of /app/Config/database.php
>
> Jeremy Burns
> Class Outfit
>
> http://www.classoutfit.com 
>
> On 26 Feb 2013, at 00:40:14, Osgaldor Storm > 
> wrote:
>
> I have just set up a fresh install of Cake, When I set the db credentials, 
> it threw the following fatal error when I browsed to the cake directory.
>
> Fatal Error
>
> *Error: *syntax error, unexpected T_CONSTANT_ENCAPSED_STRING, expecting 
> ')' 
> *File: *C:\wamp\www\Cake\cakephp-2.2.7\app\Config\database.php 
> *Line: *67
>
> -- 
> 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 
> email to cake-php+u...@googlegroups.com .
> To post to this group, send email to cake...@googlegroups.com
> .
> Visit this group at http://groups.google.com/group/cake-php?hl=en.
> For more options, visit https://groups.google.com/groups/opt_out.
>  
>  
>
>
>

-- 
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 email 
to cake-php+unsubscr...@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: error on installation -db config file

2013-02-26 Thread Jeremy Burns | Class Outfit
It's just a wild guess, but I reckon you are missing a closing bracket on line 
67 of /app/Config/database.php

Jeremy Burns
Class Outfit

http://www.classoutfit.com

On 26 Feb 2013, at 00:40:14, Osgaldor Storm  wrote:

> I have just set up a fresh install of Cake, When I set the db credentials, it 
> threw the following fatal error when I browsed to the cake directory.
> 
> Fatal Error
> Error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING, expecting ')' 
> File: C:\wamp\www\Cake\cakephp-2.2.7\app\Config\database.php  
> Line: 67
> 
> 
> -- 
> 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 
> email to cake-php+unsubscr...@googlegroups.com.
> To post to this group, send email to cake-php@googlegroups.com.
> Visit this group at http://groups.google.com/group/cake-php?hl=en.
> For more options, visit https://groups.google.com/groups/opt_out.
>  
>  

-- 
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 email 
to cake-php+unsubscr...@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: CORE/cake/libs/model/db_acl.php, line 191

2013-02-26 Thread Esha Guha
hi,

I am also facing a similar kind of problem.My errors are:

*Notice* (8): Undefined index: id [*CORE/cake/libs/model/db_acl.php*, line 
*157*]
Code | Context

AclNode::node() - CORE/cake/libs/model/db_acl.php, line 157
AclBehavior::node() - APP/models/behaviors/acl.php, line 80
AclBehavior::afterSave() - APP/models/behaviors/acl.php, line 95
ModelBehavior::dispatchMethod() - CORE/cake/libs/model/model_behavior.php, line 
171
BehaviorCollection::trigger() - CORE/cake/libs/model/model_behavior.php, line 
495
Model::save() - CORE/cake/libs/model/model.php, line 1359
ConfigController::addMenu() - APP/controllers/config_controller.php, line 109
Dispatcher::_invoke() - CORE/cake/dispatcher.php, line 204
Dispatcher::dispatch() - CORE/cake/dispatcher.php, line 171
[main] - APP/webroot/index.php, line 85

*Warning* (2): Cannot modify header information - headers already sent by 
(output started at /opt/workspace/hr/cake_install/cake/libs/debugger.php:673) 
[*CORE/cake/libs/controller/controller.php*, line *746*]

can anybody plzz help me.



On Thursday, October 29, 2009 2:54:47 PM UTC+5:30, Jeremy wrote:
>
>
> Hi, 
>
> I'm trying to use ACL in my application, I have pretty much followed 
> this tutorial 
> http://book.cakephp.org/view/641/Simple-Acl-controlled-Application 
> to get my application up and running, however, when I visit any of the 
> pages that are supposed to be protected, I get this error: 
>
> Warning (512): AclNode::node() - Couldn't find Aro node identified by 
> "Array 
> ( 
> [Aro0.model] => User 
> [Aro0.foreign_key] => 1 
> ) 
> " [CORE/cake/libs/model/db_acl.php, line 191] 
>
> Warning (512): AclNode::node() - Couldn't find Aro node identified by 
> "Array 
> ( 
> [Aro0.model] => Group 
> [Aro0.foreign_key] => 1 
> ) 
> " [CORE\cake\libs\model\db_acl.php, line 191] 
>
>
> Any help will be greatly appreciated. Thanks and happy holidays! 
>

-- 
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 email 
to cake-php+unsubscr...@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Model "Subject" not found

2013-02-26 Thread Bogdan Soos
Hi there and welcome to Cake, 
Try searching in the model association (belongsTo, hasMany, hasOne, 
hasAndBelongsToMany) I'll bet you have there a Subject. 

Bogdan. 

-- 
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 email 
to cake-php+unsubscr...@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Model "Subject" not found

2013-02-26 Thread Bogdan Soos
Hi there and welcome to Cake, 
Try searching in the model association (belongsTo, hasMany, hasOne, 
hasAndBelongsToMany) I'll bet you have there a Subject. 

Bogdan. 

-- 
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 email 
to cake-php+unsubscr...@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Class 'AppController' not found in C:\xampp\htdocs\cakephp\lib\Cake\Controller\CakeErrorController.php on line 31

2013-02-26 Thread uma . more


-- 
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 email 
to cake-php+unsubscr...@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




CakePHP - how should I do these relationships and name my tables?

2013-02-26 Thread Don Smith
It's a song and lyrics database. I'm trying to bake an app from my 
database, which looks like this: (every table does have a primary key 'id', 
I just left them out..)

songs
song_name

artists
artist_name

songs_singers
artist_id (FOREIGN KEY artists.id)
song_id (FOREIGN KEY songs.id)

songs_writers
artist_id (FOREIGN KEY artists.id)
song_id (FOREIGN KEY songs.id)

song_views
song_id (FOREIGN KEY songs.id)

videos
song_id (FOREIGN KEY songs.id)

video_views
video_id (FOREIGN KEY videos.id)


Writers and singers both overlap, i.e. some writers sing and some singers 
write.

When I bake the songs table, I get this error:
  * Error: Table singers for model Singer was not found in datasource 
default.*

I think the problem is that CakePHP wants me to create a new model for 
singers, so I'll have to end up duplicating the names of writers and 
singers in a new table singers. I just want the names stored in artists and 
have both song_singers and song_writers link to that table with foreign key 
IDs.

songs have many:
* views
* videos

videos have many:
* views

both writers and singers have many: 
* songs

What should I do?

-- 
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 email 
to cake-php+unsubscr...@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




error on installation -db config file

2013-02-26 Thread Osgaldor Storm
I have just set up a fresh install of Cake, When I set the db credentials, 
it threw the following fatal error when I browsed to the cake directory.

Fatal Error

*Error: *syntax error, unexpected T_CONSTANT_ENCAPSED_STRING, expecting ')' 
*File: *C:\wamp\www\Cake\cakephp-2.2.7\app\Config\database.php 
*Line: *67

-- 
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 email 
to cake-php+unsubscr...@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: What happeened to the API Documentation on CakePHP.org?

2013-02-26 Thread kdubya
Exactly. When I used to go there I could choose to see the ALL the classes 
and choose from an alphabetical list. Now it shows a structure off to the 
left but when I try to find something like Debugger it is nowhere I can 
find.

When I go to the 2.0 version of the API (http://api.cakephp.org/2.0) to the 
left there is a structure that makes some sense. Debugger is found under 
Utilities. Not so under 1.3.

Is there still some work going on here that the structure is not complete?

Ken

On Tuesday, February 26, 2013 1:26:43 PM UTC-5, kdubya wrote:
>
> I can't find the classes anymore. I was specifically looking for the 
> Debugger class in 1.3. The structure that used to be there until recently 
> is gone. What happened? Did I miss something?
>
> Ken
>

-- 
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 email 
to cake-php+unsubscr...@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: Cache::clearGroup in model and component building cache again

2013-02-26 Thread LDSign
Just one addition: The "unlink"-error is the same when I use the
AutoCache-Plugin instead of the component-logic above...

On Feb 26, 6:50 pm, LDSign  wrote:
> Hi
>
> I have ran into a problem which drives me crazy :(
>
> Ive a component which is used on every page to build the navigation for
> every individual user. The navigation is database driven so caching is a
> good idea - so far so good
>
> The cache is built in the startup-callback of the component like so
> (package and agent is just an example):
>
> > public function initialize(Controller $controller) {
> > parent::initialize($controller);
> > $package = Cache::read($this->Auth->user('id'),'packages');
>
> > if (!$package) {
> > $agent = ClassRegistry::init('Agent')->find('first',array('conditions' =>
> > array('Agent.id' => $this->Auth->user('Company.agent_id';
>
> > if (!empty($agent)) {
> > Cache::write($this->Auth->user('id'), $agent['Package'],'packages');
> > }
> > }
> > }
>
> This works as expected (if the cache file does not exist it would be
> generated).
>
> Now, I would like to push the creation of the cache manually when a
> data-change happens. So Ive put an afterSave-callback in the model:
>
> public function afterSave($created) {
>
> > Cache::clearGroup('packages');
> > }
>
> This works too if I test this seperatly. But when I use this "together"
> with the component-callback I will get an error-message:
>
> *Warning* (2): 
> unlink(C:\xampp\htdocs\ebsst\tmp\cache\packages\ebsst_package_73): Permission 
> denied [*CORE\Cake\Cache\Engine\FileEngine.php*, line *368*]
>
> The cache-file is not cleared though. I guess the file is locked by the 
> file-system (Xampp on Windows 7) through the component. I am not sure about 
> the order of these callbacks and how they interfere between models and 
> components. So ive tried different callbacks in both - but no luck.
>
> Do you have a hint to solve this problem or is this a complete false approach?
>
> Thanks,
> Frank

-- 
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 email 
to cake-php+unsubscr...@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: What happeened to the API Documentation on CakePHP.org?

2013-02-26 Thread Jonathan Sundquist
You mean this api? http://api.cakephp.org/1.3/


On Tue, Feb 26, 2013 at 12:26 PM, kdubya  wrote:

> I can't find the classes anymore. I was specifically looking for the
> Debugger class in 1.3. The structure that used to be there until recently
> is gone. What happened? Did I miss something?
>
> Ken
>
> --
> 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
> email to cake-php+unsubscr...@googlegroups.com.
> To post to this group, send email to cake-php@googlegroups.com.
> Visit this group at http://groups.google.com/group/cake-php?hl=en.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>

-- 
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 email 
to cake-php+unsubscr...@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




What happeened to the API Documentation on CakePHP.org?

2013-02-26 Thread kdubya
I can't find the classes anymore. I was specifically looking for the 
Debugger class in 1.3. The structure that used to be there until recently 
is gone. What happened? Did I miss something?

Ken

-- 
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 email 
to cake-php+unsubscr...@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Cache::clearGroup in model and component building cache again

2013-02-26 Thread LDSign
Hi

I have ran into a problem which drives me crazy :(

Ive a component which is used on every page to build the navigation for 
every individual user. The navigation is database driven so caching is a 
good idea - so far so good

The cache is built in the startup-callback of the component like so 
(package and agent is just an example):
 

> public function initialize(Controller $controller) {
> parent::initialize($controller);
> $package = Cache::read($this->Auth->user('id'),'packages');
>
> if (!$package) {
> $agent = ClassRegistry::init('Agent')->find('first',array('conditions' => 
> array('Agent.id' => $this->Auth->user('Company.agent_id';
>
> if (!empty($agent)) {
> Cache::write($this->Auth->user('id'), $agent['Package'],'packages');
> }
> }
> }
>

This works as expected (if the cache file does not exist it would be 
generated).

Now, I would like to push the creation of the cache manually when a 
data-change happens. So Ive put an afterSave-callback in the model:

public function afterSave($created) {
> Cache::clearGroup('packages');
> }
>

This works too if I test this seperatly. But when I use this "together" 
with the component-callback I will get an error-message:

*Warning* (2): 
unlink(C:\xampp\htdocs\ebsst\tmp\cache\packages\ebsst_package_73): Permission 
denied [*CORE\Cake\Cache\Engine\FileEngine.php*, line *368*]

The cache-file is not cleared though. I guess the file is locked by the 
file-system (Xampp on Windows 7) through the component. I am not sure about the 
order of these callbacks and how they interfere between models and components. 
So ive tried different callbacks in both - but no luck.

Do you have a hint to solve this problem or is this a complete false approach?

Thanks,
Frank


-- 
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 email 
to cake-php+unsubscr...@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: How to make a site like ask.cakephp.org?

2013-02-26 Thread André Luis
Maybe a tutorial, you can use the blog tutorial to start, the diference is 
the post title is the question, and the comments are the answears, and you 
implement the rest by your own...

Em segunda-feira, 25 de fevereiro de 2013 14h19min45s UTC-3, Cesar Felipe 
escreveu:
>
> Hi I need make a site like ask.cakephp.org... Do I have to do it from 
> scratch or there is any plugin, tutorial, script or anything that I can use?
>
> 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 email 
to cake-php+unsubscr...@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: Stuck with migration from 1.3 to 2.x / euromark plugin

2013-02-26 Thread euromark
It seems you have not very much experience with Cake and how plugins work. 
So it might not be wise
to try to work with my plugin. You will most likely run into quite a few 
other problems, as well.
Better stick to the official plugin and migration guide as well as the 
documentation there:
http://book.cakephp.org/2.0/en/console-and-shells/upgrade-shell.html

In case you still want to go ahead:
yes, you would have to create such an APP/Plugin folder with the plugin 
inside it as APP/Plugin/Upgrade.

So far you seem to be on the right track. Try to clear the cache - it might 
still have 1.3 paths cached etc.
Mark



Am Montag, 25. Februar 2013 20:52:33 UTC+1 schrieb acl68:
>
> -BEGIN PGP SIGNED MESSAGE- 
> Hash: SHA1 
>
> Hi euromark, 
>
>
> some questions to your readme: 
>
> a) Copy this plugin into your /app/Plugin folder 
> My app doesn't have a Plugin folder just a plugins folder. So I created 
> an empty folder Plugin. 
> Was that correct? 
>
> b) I copied the contents of the Zip file in that folder so that I have 3 
> subfolders: Console,  Lib,  Test 
> Was taht correct or should the folder upgrade-master go there? 
>
> c) In your readmy you mention "Run any of the above commands." My 
> problem is that nowhere above you mention any commands. That comes 
> later. So to which commands are you referring? 
>
> d) If I try to run the following command (being in my app folder) 
> /var/www/cakephp-2.3.0/app$ ../lib/Cake/Console/cake Upgrade.Upgrade 
> locations -v 
>
>
> I get the following output: 
> PHP MissingPluginException:  Plugin Upgrade could not be found. in 
> /var/www/cakephp-2.3.0/lib/Cake/Core/CakePlugin.php on line 142 
> PHP Stack trace: 
> PHP   1. {main}() /var/www/cakephp-2.3.0/lib/Cake/Console/cake.php:0 
> PHP   2. ShellDispatcher::run($argv = array (0 => 
> '/var/www/cakephp-2.3.0/lib/Cake/Console/cake.php', 1 => '-working', 2 
> => '/var/www/cakephp-2.3.0/app', 3 => 'Upgrade.Upgrade', 4 => 
> 'locations', 5 => '-v')) 
> /var/www/cakephp-2.3.0/lib/Cake/Console/cake.php:43 
> PHP   3. ShellDispatcher->dispatch() 
> /var/www/cakephp-2.3.0/lib/Cake/Console/ShellDispatcher.php:67 
> PHP   4. ShellDispatcher->_getShell($shell = 'Upgrade.Upgrade') 
> /var/www/cakephp-2.3.0/lib/Cake/Console/ShellDispatcher.php:189 
> PHP   5. class_exists('UpgradeShell') 
> /var/www/cakephp-2.3.0/lib/Cake/Console/ShellDispatcher.php:239 
> PHP   6. App::load($className = 'UpgradeShell') 
> /var/www/cakephp-2.3.0/lib/Cake/Console/ShellDispatcher.php:0 
> PHP   7. App::path($type = 'Console/Command', $plugin = 'Upgrade') 
> /var/www/cakephp-2.3.0/lib/Cake/Core/App.php:542 
> PHP   8. App::pluginPath($plugin = 'Upgrade') 
> /var/www/cakephp-2.3.0/lib/Cake/Core/App.php:225 
> PHP   9. CakePlugin::path($plugin = 'Upgrade') 
> /var/www/cakephp-2.3.0/lib/Cake/Core/App.php:364 
>
>
> MissingPluginException: Plugin Upgrade could not be found. in 
> /var/www/cakephp-2.3.0/lib/Cake/Core/CakePlugin.php on line 142 
>
> Call Stack: 
> 0.0003 232072   1. {main}() 
> /var/www/cakephp-2.3.0/lib/Cake/Console/cake.php:0 
> 0.0095 317704   2. ShellDispatcher::run($argv = array (0 => 
> '/var/www/cakephp-2.3.0/lib/Cake/Console/cake.php', 1 => '-working', 2 
> => '/var/www/cakephp-2.3.0/app', 3 => 'Upgrade.Upgrade', 4 => 
> 'locations', 5 => '-v')) 
> /var/www/cakephp-2.3.0/lib/Cake/Console/cake.php:43 
> 0.06371920272   3. ShellDispatcher->dispatch() 
> /var/www/cakephp-2.3.0/lib/Cake/Console/ShellDispatcher.php:67 
> 0.06381920576   4. ShellDispatcher->_getShell($shell = 
> 'Upgrade.Upgrade') 
> /var/www/cakephp-2.3.0/lib/Cake/Console/ShellDispatcher.php:189 
> 0.06401922128   5. class_exists('UpgradeShell') 
> /var/www/cakephp-2.3.0/lib/Cake/Console/ShellDispatcher.php:239 
> 0.06401922424   6. App::load($className = 'UpgradeShell') 
> /var/www/cakephp-2.3.0/lib/Cake/Console/ShellDispatcher.php:0 
> 0.06411923032   7. App::path($type = 'Console/Command', $plugin 
> = 'Upgrade') /var/www/cakephp-2.3.0/lib/Cake/Core/App.php:542 
> 0.06411923168   8. App::pluginPath($plugin = 'Upgrade') 
> /var/www/cakephp-2.3.0/lib/Cake/Core/App.php:225 
> 0.06411923200   9. CakePlugin::path($plugin = 'Upgrade') 
> /var/www/cakephp-2.3.0/lib/Cake/Core/App.php:364 
>
> Dump $_SERVER 
>$_SERVER['HTTP_HOST'] is undefined 
>$_SERVER['SERVER_NAME'] is undefined 
>
> Variables in local scope (#9): 
>   $_plugins = *uninitialized* 
>   $plugin = 'Upgrade' 
>
> Error: Plugin Upgrade could not be found. 
> #0 /var/www/cakephp-2.3.0/lib/Cake/Core/App.php(364): 
> CakePlugin::path('Upgrade') 
> #1 /var/www/cakephp-2.3.0/lib/Cake/Core/App.php(225): 
> App::pluginPath('Upgrade') 
> #2 /var/www/cakephp-2.3.0/lib/Cake/Core/App.php(542): 
> App::path('Console/Command', 'Upgrade') 
> #3 [internal function]: App::load('UpgradeShell') 
> #4 [internal function]: spl_autoload_call('UpgradeShell') 
> #5 /var/www/cakephp-2.3.0/lib/Cake/Console/ShellDispatcher.php(239): 
> class_exi