Re: How to order a find result by a specific value

2013-09-16 Thread Reuben
I don't think CakePHP handles case clauses or specific values in order by 
clauses.

You could just try sending in a literal value to the order by clause.

i.e. 'order' => 'id=5 desc, id asc'

Although I might recommend fully qualifying the table name i.e. 'order' => 
'friends.id=5 desc, friends.id asc'. You may have to investigate the 
anticipated alias for the table name, used in the query.

I've never done ordering like this, so I don't know if it is vendor 
specific or not.  CakePHP doesn't tend to cater for vendor specific 
options, unless it's mission critical. i.e. TOP vs LIMIT.

On Tuesday, 17 September 2013 06:43:19 UTC+10, starchild.no1 wrote:
>
> Hi  all,
>>
>> I'm trying to return a find result in an order specified by a given 
>> value..
>>
>> function getAllResults($A=1, $B='red'){
>>$results = $this->Tbl->find(all, array(
>> 'conditions' => array('Tbl.foreign_key' => $A),
>> 'order' => array('Tbl.color' => $B)
>>));
>> }
>>
>> I've seen:  'order' => array("FIELD(Tbl.color, value_1, value_2, 
>> value_3)")
>> But FIELD takes an array and I would like to use just one value=red.
>> Besides how would I even know where my required value is located in the 
>> array( value_1, value_2, value_3) using FIELD unless it's hard coded.
>>
>> I've also seen: 
>>
>> select * from your_tableorder by case when name = 'core' then 1 else 2 end, 
>> priority 
>>
>> And:
>> select id, name from friends order by id=5 desc, id asc
>> select id,name from friends order by id=5 desc, id asc
>>
>> Which is what I really want to do but can't figure out how to write it the 
>> cakephp way.
>>
>>
>> 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.
For more options, visit https://groups.google.com/groups/opt_out.


Autoreferencia en Modelo (recursivo)

2013-09-16 Thread Martincho
Gente estoy queriendo armar el siguiente modelo, una categoría tiene dentro 
otras categorías y los items pertenecen a una categoria.

algo asi

Categorias
-
id
descripcion
categoria_id

Items
--
id
descripcion
categoria_id


como deberían ser los modelos en ese caso??? 
saludos.

-- 
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.
For more options, visit https://groups.google.com/groups/opt_out.


Re: Cake PhP Beginner: nested associations and views

2013-09-16 Thread Jeremy Burns | Class Outfit
Have a look at the Containable behaviour, add it to your AppModel (so it is 
always available) and set recursive to -1 in your AppModel. Containable is your 
friend. It gives you complete control over what associated data is returned.

Jeremy Burns
Class Outfit

http://www.classoutfit.com

On 16 Sep 2013, at 14:33:43, Luca Simonella  wrote:

> Hi, this is my first week on CakePhP and I found it awesome.
> I'm developing a web site for my fantasy football championship and I made a 
> few model with the following associations:
> 
> Team has Many Player
> Player belongTo Team
> Player hasMany Vote
> Vote belongTo Player
> 
> So relationships are Team --> Player --> Vote. Now I want to make a view that 
> lists all the players for a specific team AND for each player I want to show 
> statics about their votes. My Player mdoel is made like this:
> 
> class Player extends AppModel{
>   public $belongsTo = 'Team';
>   public $hasMany = array(
>   'Vote' => array(
>   'className' => 'Vote',
>   'fields' => array(
>   'AVG(Voto) as Media',
>   'SUM(Goal) as Goal',
>   'SUM(GoalSubito) as GoalSubito',
>    other fields with italian names btw
>   ),
>   'group' => array('Giornata')
>   )
>   );  
> }
> 
> when I wrote view for a specific player it works, but If I'm going to wrote 
> the specific team view, data about single player votes does not appear from 
> debug.
> 
> Array
> (
> [Team] => Array
> (
> [ID] => 1
> [Nome] => Lokomotiv Wagon
> [Allenatore] => Luca "Ponch" Simonella
> [Budget] => 320
> [Stadio] => Julian Ross Stadium Memorial
> [Maglia] => 
> [Logo] => 
> [id] => 1
> )
> 
> [Player] => Array
> (
> [0] => Array
> (
> [ID] => 292
> [Nome] => AMELIA
> [Ruolo] => P
> [Squadra] => MILAN
> [Quota] => 1
> [QuotaIniziale] => 2
> [team_id] => 1
> )
> 
> [1] => Array
> (
> [ID] => 291
> [Nome] => ABBIATI
> [Ruolo] => P
> [Squadra] => MILAN
> [Quota] => 13
> [QuotaIniziale] => 13
> [team_id] => 1
> )
> ...
> }
> 
> Have I to use recursive option? How can i go deeply on my association to 
> retrieve data? I hope you could help.
> 
> Thank you
> 
> Luca
> 
> -- 
> 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.
> 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.
For more options, visit https://groups.google.com/groups/opt_out.


How to order a find result by a specific value

2013-09-16 Thread starchild.no1

>
> Hi  all,
>
> I'm trying to return a find result in an order specified by a given value..
>
> function getAllResults($A=1, $B='red'){
>$results = $this->Tbl->find(all, array(
> 'conditions' => array('Tbl.foreign_key' => $A),
> 'order' => array('Tbl.color' => $B)
>));
> }
>
> I've seen:  'order' => array("FIELD(Tbl.color, value_1, value_2, value_3)")
> But FIELD takes an array and I would like to use just one value=red.
> Besides how would I even know where my required value is located in the 
> array( value_1, value_2, value_3) using FIELD unless it's hard coded.
>
> I've also seen: 
>
> select * from your_tableorder by case when name = 'core' then 1 else 2 end, 
> priority 
>
> And:
> select id, name from friends order by id=5 desc, id asc
> select id,name from friends order by id=5 desc, id asc
>
> Which is what I really want to do but can't figure out how to write it the 
> cakephp way.
>
>
> 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.
For more options, visit https://groups.google.com/groups/opt_out.


Re: PhpAcl

2013-09-16 Thread Jan Kohlhof

Hi Fabricio,

should be possible iterating over each item and calling Acl's check() 
method.


Best regards
Jan

On 13.09.2013 17:27, Hugo Fabricio wrote:

Hi guys,

It is possible to develop a menu in accordance with the permissions of 
PhpAcl?


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.
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.
For more options, visit https://groups.google.com/groups/opt_out.


Re: How to order find results by a specific value..

2013-09-16 Thread starchild.no1

On Monday, September 16, 2013 4:19:16 PM UTC-4, starchild.no1 wrote:
>
> Hi  all,
>
> I'm trying to return a find result in an order specified by a given value..
>
> function getAllResults($A=1, $B='red'){
>$results = $this->Tbl->find(all, array(
> 'conditions' => array('Tbl.foreign_key' => $A),
> 'order' => array('Tbl.color' => $B)
>));
> }
>
> I've seen:  'order' => array("FIELD(Tbl.color, value_1, value_2, value_3)")
> But FIELD takes an array and I would like to use just one value=red.
> Besides how would I even know where my required value is located in the 
> array( value_1, value_2, value_3) using FIELD unless it's hard coded.
>
> I've also seen: 
>
> select * from your_tableorder by case when name = 'core' then 1 else 2 end, 
> priority 
>
> And:
> select id, name from friends order by id=5 desc, id asc
> select id,name from friends order by id=5 desc, id asc
>
> Which is what I really want to do but can't figure out how to write it the 
> cakephp way.
>
>
> 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.
For more options, visit https://groups.google.com/groups/opt_out.


How to order find results by a specific value..

2013-09-16 Thread starchild.no1
Hi  all,

I'm trying to return a find result in an order specified by a given value..

function getAllResults($A=1, $B='red'){
   $results = $this->Tbl->find(all, array(
'conditions' => array('Tbl.id' => $A),
'order' => array('Tbl.color' => $B)
   ));
}

I've seen:  'order' => array("FIELD(Tbl.color, value_1, value_2, value_3)")
But FIELD takes an array and I would like to use just one value=red.
Besides how would I even know where my required value is located in the 
array( value_1, value_2, value_3) using FIELD unless it's hard coded.

I've also seen: 

select * from your_tableorder by case when name = 'core' then 1 else 2 end, 
priority 

And:
select id, name from friends order by id=5 desc, id asc
select id,name from friends order by id=5 desc, id asc

Which is what I really want to do but can't figure out how to write it the 
cakephp way.


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.
For more options, visit https://groups.google.com/groups/opt_out.


Re: Is nested one-to-many table relationships possible in CakePHP?

2013-09-16 Thread John Andersen
Correction to this part:
 

> Suggest you to take a look at the Model and the ModelHelper Contains in 
> the CakePHP book/documentation.
>

Should be:
 

> Suggest you to take a look at the Model and the Behaviour Containable in 
> the CakePHP book/documentation.
>

Enjoy, John 

-- 
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.
For more options, visit https://groups.google.com/groups/opt_out.


Re: Is nested one-to-many table relationships possible in CakePHP?

2013-09-16 Thread John Andersen
The short answer is Yes as CakePHP supports nearly whatever relationships 
you design in your database.

You relationships are as this:

Table1 -> hasMany -> Table2 -> hasMany -> Table3

With CakePHP you can find data from Table1 alone, from Table1 including 
Table2, and also from Table1 including Table2 including Table3 - as your 
data is related.

Suggest you to take a look at the Model and the ModelHelper Contains in the 
CakePHP book/documentation.

Enjoy, John 

On Friday, 6 September 2013 05:13:37 UTC+3, Sam wrote:
>
> Dear CakePHP experts,
>
> While designing a database structure, I created 3 tables. There is a 
> 1-to-many relationship between the first table and second table. There is 
> another 1-to-many relationship between the second table and third table. 
> Does CakePHP allow this kind of table relationship? I hope this does not 
> sound like a stupid question to the experts here.
>
>
>
>
>

-- 
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.
For more options, visit https://groups.google.com/groups/opt_out.


Display dynamic checkbox in cakephp using Jquery

2013-09-16 Thread Augustin
Hi All,


   I want to display "checkbox"  dynamically after the  value is being 
entered in input box .
  So far i have done analysis and couldn't display the correct values in 
checkbox .

  Here what i did:
   
#sw is id for input text box.

#releaseValue : where checkbox needs to be created dynamically

 js file:

*$('#sw').focusout(function(){
var parent=$('#releaseValue');
if($(this).val())
{
$.get(url,function(data){
for(key in data)
{
var div = 
$('').attr({'class':'ui-dform-div field checkbox cf','id':'del'});
var input = 
$('').attr({'type':'checkbox', 'name':name, 
'class':'ui-dform-checkbox', 'value':data[key]});
var label = $('').attr('class', 
'ui-dform-label').text(data[key]);
parent.append(div.append(input).append(label));
}
});

}
*

URL: controller/method.json?field=$(this).val()


Controller.php

*public function method()
{

$values = array();
$field = @$this->request->query['field'];
$inputValue = @$this->request->query['term'];
$query=array('key'=> $inputValue);
$field=array('value');

$v=$this->model->find('all',array('fields'=>$field,'conditions'=>$query));
 
$this->set('values', $v[0]['model']['value']);
$this->set('_serialize', 'values');

}
*

The above code i have tried but the problem is " method in controller 
couldnot be found " error i'm getting when try to exceute code and this url 
is passed through routes.php ,where default configuration for routing is 
being called .

can anyone please help where the problem lies . 



-- 
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.
For more options, visit https://groups.google.com/groups/opt_out.


Cake PhP Beginner: nested associations and views

2013-09-16 Thread Luca Simonella
Hi, this is my first week on CakePhP and I found it awesome.
I'm developing a web site for my fantasy football championship and I made a 
few model with the following associations:

*Team* has Many *Player*
*Player *belongTo *Team*
*Player *hasMany *Vote*
*Vote *belongTo *Player*
*
*
So relationships are Team --> Player --> Vote. Now I want to make a view 
that lists all the players for a specific team AND for each player I want 
to show statics about their votes. My Player mdoel is made like this:

class Player extends AppModel{
public $belongsTo = 'Team';
public $hasMany = array(
'Vote' => array(
'className' => 'Vote',
'fields' => array(
'AVG(Voto) as Media',
'SUM(Goal) as Goal',
'SUM(GoalSubito) as GoalSubito',
 other fields with italian names btw
),
'group' => array('Giornata')
)
); 
}

when I wrote view for a specific player it works, but If I'm going to wrote 
the specific team view, data about single player votes does not appear from 
debug.

Array
(
[Team] => Array
(
[ID] => 1
[Nome] => Lokomotiv Wagon
[Allenatore] => Luca "Ponch" Simonella
[Budget] => 320
[Stadio] => Julian Ross Stadium Memorial
[Maglia] => 
[Logo] => 
[id] => 1
)

[Player] => Array
(
[0] => Array
(
[ID] => 292
[Nome] => AMELIA
[Ruolo] => P
[Squadra] => MILAN
[Quota] => 1
[QuotaIniziale] => 2
[team_id] => 1
)

[1] => Array
(
[ID] => 291
[Nome] => ABBIATI
[Ruolo] => P
[Squadra] => MILAN
[Quota] => 13
[QuotaIniziale] => 13
[team_id] => 1
)

...

}


Have I to use recursive option? How can i go deeply on my association to 
retrieve data? I hope you could help.


Thank you


Luca

-- 
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.
For more options, visit https://groups.google.com/groups/opt_out.


Re: Is it possible to create a plugin inside a plugin with CakePHP?

2013-09-16 Thread ChrisApps
Yes, you can.
Take a look to App::build() to add additional paths. For instance:

App::build(array(
'Plugin' => CakePlugin::path('YourPluginName') . DS . 'MorePluginsHere'
), App::APPEND);



app/
   | Plugin/
   | YourPluginName/
   | Config/
   | Controller/
   |MorePluginsHere/
   | ThisIsASubPlugin/
   | Config/
   | Controller/
   ...

(Your parent plugin may have many sub-plugins)

PS: You may try to add the code above to your plugin's bootstrap.php (your 
parent plugin), so when parent gets loaded its child does as well.

El viernes, 13 de septiembre de 2013 20:25:52 UTC+2, aram harutyunyan 
escribió:
>
> Hi 
> Is it possible to create a plugin inside a plugin with CakePHP?
>

-- 
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.
For more options, visit https://groups.google.com/groups/opt_out.


Re: PhpAcl

2013-09-16 Thread Борислав Събев
Cake has 
ACL.
 
How you use it is up to you!
Of course it is possible to create an ACL based menu. However I am 
wondering if it is a good idea to re-calculate permissions every time a 
page is called?
You can change the menu for different user roles when the ACL permissions 
are regenerated in cake and then use if as an element.

On Friday, 13 September 2013 18:27:02 UTC+3, Hugo Fabricio wrote:
>
> Hi guys,
>
> It is possible to develop a menu in accordance with the permissions of 
> PhpAcl?
>
> 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.
For more options, visit https://groups.google.com/groups/opt_out.


Re: Is it possible to create a plugin inside a plugin with CakePHP?

2013-09-16 Thread Matthew Kaufman
Lol…..

What type of  modular access or method or component (function) do you want to 
drop in?


On Sep 15, 2013, at 10:25 AM, Tilen Majerle  wrote:

> No.
> 
> --
> Lep pozdrav, Tilen Majerle
> http://majerle.eu
> 
> 
> 2013/9/13 aram harutyunyan 
> Hi 
> Is it possible to create a plugin inside a plugin with CakePHP?
> 
> 
> -- 
> 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.
> 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.
> 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.
For more options, visit https://groups.google.com/groups/opt_out.


Re: Mongodb with cakephp

2013-09-16 Thread Ivan Rimac
- check if you have mongo driver for php installed on your server
- check is your username and password for mongodb correct


On Mon, Sep 16, 2013 at 9:07 AM, raj kumar Pustela wrote:

> hi to all,
>
>how to resolve
>   *Fatal error*: Undefined class constant 'Mongo::VERSION' in *
> /var/www/vhosts/
> nirvahak.com/httpdocs/kake/lib/Cake/Model/ConnectionManager.php* on line *
> 107.*
> * *
> *  If any one known pls help me.*
>
> --
> 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.
> For more options, visit https://groups.google.com/groups/opt_out.
>



-- 
*Ivan Rimac***
mail: i...@rimac.hr
*tel: +385 95 555 99 66*
*http://ivanrimac.com*
*http://rimac.hr*

-- 
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.
For more options, visit https://groups.google.com/groups/opt_out.


Mongodb with cakephp

2013-09-16 Thread raj kumar Pustela
hi to all,

   how to resolve 
  *Fatal error*: Undefined class constant 'Mongo::VERSION' in *
/var/www/vhosts/nirvahak.com/httpdocs/kake/lib/Cake/Model/ConnectionManager.php
* on line *107.*
* *
*  If any one known pls help me.*

-- 
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.
For more options, visit https://groups.google.com/groups/opt_out.