Re: Problem with belongstomany and the new bake plugin

2015-01-20 Thread pola
Try it please out:

DROP TABLE IF EXISTS `batches_documents` ;
CREATE TABLE IF NOT EXISTS `batches_documents` (
batch_id INT(11) NOT NULL,
document_id INT(11) NOT NULL,
PRIMARY KEY (`batch_id`,`document_id`)
);


DROP TABLE IF EXISTS `batches` ;
CREATE TABLE IF NOT EXISTS `batches` (
id INT(11) NOT NULL AUTO_INCREMENT PRIMARY KEY,
batch_number VARCHAR(50) NOT NULL UNIQUE,
supplier_id INT(11) NOT NULL,
created DATETIME DEFAULT NULL,
modified DATETIME DEFAULT NULL
);


DROP TABLE IF EXISTS `documents` ;
CREATE TABLE IF NOT EXISTS `documents` (
id INT(11) NOT NULL AUTO_INCREMENT PRIMARY KEY,
name VARCHAR(50) NOT NULL,
file VARCHAR(50) NOT NULL,
created DATETIME DEFAULT NULL,
modified DATETIME DEFAULT NULL
);

/bin/cake bake all Batches
/bin/cake bake all Documents


-- 
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/d/optout.


Problem with belongstomany and the new bake plugin

2015-01-20 Thread pola
hi, 
since bake is now a plugin i experience problems with baking belongstomany 
relations. 
It includes the joining table in the view function in the contain call in 
the 2 related Controllers.  That ends in an error: is not Associated with.
It shows me links on the left linking the joining table. That ends in an 
error: Controller not found.

Entity and Table looks fine.

The Problem seems that Bake links the join Table in the Controller and the 
Views. 

Does anybody experience the same problems?

Best pola

-- 
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/d/optout.


Re: 3.0 e mysql fields ENUM

2015-01-20 Thread euromark
Hi!
Read the link I gave you.
That answers everything already for you.

Mark

Am Dienstag, 20. Januar 2015 15:15:02 UTC+1 schrieb Leandro Machado Pereira:
>
> Hi mark, sorry for late in my answer.
>
> I search more information for mysql field ENUM and gave up using this type.
>
> However, i need for of one field in my model for manager de columns STATUS.
>
> I can't use Enum because the value of the STATUS isn't same in another 
> model.
>
> What you think i can do ?
>
> I think do one properties in each model, but i don't know how do this.
>
> Em Fri Jan 16 2015 at 15:54:48, euromark > 
> escreveu:
>
>> Enums are a bad thing anyway.
>> Better use sth of the options listed @ 
>> http://www.dereuromark.de/2010/06/24/static-enums-or-semihardcoded-attributes/
>>
>> mark
>>
>> Am Donnerstag, 15. Januar 2015 23:18:45 UTC+1 schrieb Leandro Machado 
>> Pereira:
>>>
>>> I gave up using enum.
>>> Thanks.
>>>
>> Em Thu Jan 15 2015 at 17:31:51, Leandro Machado Pereira <
>>> llper...@gmail.com> escreveu:
>>>
 Hey guy, I tried to do work my fields with mysql ENUM.

 In cake 2.0 i used this helper.

 http://www.drawbackz.com/stack/251186/cakephp-2-0-use-
 mysql-enum-field-with-form-helper-to-create-select-input.html

 But in cake 3.0 i'm have dificults for work fine.

 I received errors in this line.

 $modelKey = $this->model();

 and in this line:

 $this->fieldset[$modelKey]['fields'][$fieldName]['type'],

 So, does somebody have any suggestions ?

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

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

-- 
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/d/optout.


Re: Problem with Session and PHP Unit Test

2015-01-20 Thread euromark
Dont forget --stderr when testing 2.x tests in CLI

mark


Am Dienstag, 20. Januar 2015 13:29:47 UTC+1 schrieb monica:
>
> Hi!
>
> I baked new UnitTestsController for testing purposes and put inside the 
> function:
>
>
> public function reset_filters() {
>  // suppose to delete CurrentFilter var from session
>  this->request->session()->delete('CurrentFilter');
> }
>
>
> I wanted to test session so I baked also UnitTestsControllerTest.php 
>
> public function testResetFilters() {
>  $session = new Session;
>  
>  $session->write([
> 'WhatIsInside' => 'littlebunny',
> 'CurrentFilter' => 'this is the filter'
> ]);
>  
>  // saving one of session vars
>  $oldUserSession = $session->read('WhatIsInside');
>  
>  // calling function which suppose to delete the other session var 
> (CurrentFilter) and leave WhatIsInside session var untouched
>  $this->get('/UnitTests/reset_filters');
>  
>  // getting that other var from session
>  $newUserSession = $session->read('WhatIsInside');
>
>  // checking if function hasn't deleted the other session vars
>  $this->assertSame($oldUserSession, $newUserSession);
> }
>
>
> But the test *failed*. 
>
> I printed content of both sessions data before and after function.
> Before function is giving me correct output but after calling the function 
> it's giving me null.
>
> Console output:
>
>
> There was 1 failure:
>
> 1) App\Test\TestCase\Controller\UnitTestsControllerTest::testResetFilters
> Failed asserting that null is identical to 'littlebunny'.
>
>
>
> I don't what I did wrong and any help will be appreciated. 
>
>
>
>
> *** CONFIDENTIALITY NOTICE AND LEGAL LIABILITY WAIVER ***
>
> The content of this email and any attachments are CONFIDENTIAL and may 
> contain privileged information. If you are not the addressee it may be 
> UNLAWFUL for you to read, copy, distribute or disclose the information 
> contained herein. This email and any attachments may not reflect the 
> opinions of the originating company or any party it is representing. 
> Telephone calls may be recorded for training and quality monitoring 
> purposes.
>
> The Car Finance Company (2007) Ltd Registered Address is 47-51 Kingston 
> Crescent, Portsmouth, PO2 8AA and is authorised and regulated by the 
> Financial Conduct Authority, CCL number 600168. 
>
> The Car Finance Company (Trade Sales) Ltd is a wholly owned subsidiary of 
> The Car Finance Company (2007) Ltd. Registered Address is 47-51 Kingston 
> Crescent, Portsmouth, PO2 8AA and is authorised and regulated by the 
> Financial Conduct Authority, CCL number 663690.
>

-- 
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/d/optout.


Problem with Session and PHP Unit Test

2015-01-20 Thread monica
Hi!

I baked new UnitTestsController for testing purposes and put inside the 
function:


public function reset_filters() {
 // suppose to delete CurrentFilter var from session
 this->request->session()->delete('CurrentFilter');
}


I wanted to test session so I baked also UnitTestsControllerTest.php 

public function testResetFilters() {
 $session = new Session;
 
 $session->write([
'WhatIsInside' => 'littlebunny',
'CurrentFilter' => 'this is the filter'
]);
 
 // saving one of session vars
 $oldUserSession = $session->read('WhatIsInside');
 
 // calling function which suppose to delete the other session var 
(CurrentFilter) and leave WhatIsInside session var untouched
 $this->get('/UnitTests/reset_filters');
 
 // getting that other var from session
 $newUserSession = $session->read('WhatIsInside');

 // checking if function hasn't deleted the other session vars
 $this->assertSame($oldUserSession, $newUserSession);
}


But the test *failed*. 

I printed content of both sessions data before and after function.
Before function is giving me correct output but after calling the function 
it's giving me null.

Console output:


There was 1 failure:

1) App\Test\TestCase\Controller\UnitTestsControllerTest::testResetFilters
Failed asserting that null is identical to 'littlebunny'.



I don't what I did wrong and any help will be appreciated. 




-- 


*** CONFIDENTIALITY NOTICE AND LEGAL LIABILITY WAIVER ***

The content of this email and any attachments are CONFIDENTIAL and may 
contain privileged information. If you are not the addressee it may be 
UNLAWFUL for you to read, copy, distribute or disclose the information 
contained herein. This email and any attachments may not reflect the 
opinions of the originating company or any party it is representing. 
Telephone calls may be recorded for training and quality monitoring 
purposes.

The Car Finance Company (2007) Ltd Registered Address is 47-51 Kingston 
Crescent, Portsmouth, PO2 8AA and is authorised and regulated by the 
Financial Conduct Authority, CCL number 600168. 

The Car Finance Company (Trade Sales) Ltd is a wholly owned subsidiary of 
The Car Finance Company (2007) Ltd. Registered Address is 47-51 Kingston 
Crescent, Portsmouth, PO2 8AA and is authorised and regulated by the 
Financial Conduct Authority, CCL number 663690.

-- 
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/d/optout.


Re: Safari 8.x.x - MissingControllerException

2015-01-20 Thread Sajoscha Sauer
Thanks! Thats what I thought, but why…?

Anyway, I now added two routes for the images: 

Router::connect(‘/apple-touch-icon.png*');
Router::connect(‘/apple-touch-icon-precomposed.png*’);

That works, but might not be the best way…


Cheers, 
Sajoscha

> On Jan 16, 2015, at 5:40 PM, Mike Karthauser  wrote:
> 
> i suspect safari is expecting an image in the site root called 
> apple-touch-icon-precomposed.png
> which it can’t find so you are getting the error.
> 
> 
> 
>> On 16 Jan 2015, at 15:11, Sajoscha Sauer > > wrote:
>> 
>> Hi all, 
>> 
>> I have a weird problem at the moment. 
>> 
>> I’m normally using Firefox, and there everything is working perfectly. 
>> Now I was testing on Safari and I got the following error: 
>> 
>> 2015-01-16 15:56:13 Error: [MissingControllerException] Controller class 
>> Apple-touch-icon-precomposed.pngController could not be found.
>> Exception Attributes: array (
>>   'class' => 'Apple-touch-icon-precomposed.pngController',
>>   'plugin' => NULL,
>> )
>> Request URL: /apple-touch-icon-precomposed.png
>> Stack Trace:
>> #0 /private/reagentdb/app/webroot/index.php(109): 
>> Dispatcher->dispatch(Object(CakeRequest), Object(CakeResponse))
>> #1 {main}
>> 2015-01-16 15:56:13 Error: [MissingControllerException] Controller class 
>> Apple-touch-icon.pngController could not be found.
>> Exception Attributes: array (
>>   'class' => 'Apple-touch-icon.pngController',
>>   'plugin' => NULL,
>> )
>> Request URL: /apple-touch-icon.png
>> Stack Trace:
>> #0 /private/reagentdb/app/webroot/index.php(109): 
>> Dispatcher->dispatch(Object(CakeRequest), Object(CakeResponse))
>> #1 {main}
>> 
>> If I click any link within the system I get logged out again with the error 
>> log above. I never encountered that before and on Firefox everything is 
>> working fine. Now I tested on a colleagues Mac and there it works fine… 
>> He’s using 7.x.x and I’m using 8.0.2. 
>> 
>> Nowhere in my code I’m calling any touch-icons, so the problem must come 
>> from Safari, right? 
>> 
>> Anyone experienced the same problem? Or can give some helping hand? 
>> 
>> Thanks a lot! 
>> Sajoscha
>> 
>> 
>> -- 
>> 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/d/optout 
>> .
> 
> 
> Mike Karthäuser
> Director, Brightstorm Ltd.
> 
> 1, Brewery Court
> North Street
> Bristol
> BS3 1JS
> 
> mi...@brightstorm.co.uk 
> www.brightstorm.co.uk 
> +44(0) 7939252144
> 
> 
> 
> -- 
> 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/d/optout 
> .

-- 
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/d/optout.


Re: 3.0 e mysql fields ENUM

2015-01-20 Thread Leandro Machado Pereira
Hi mark, sorry for late in my answer.

I search more information for mysql field ENUM and gave up using this type.

However, i need for of one field in my model for manager de columns STATUS.

I can't use Enum because the value of the STATUS isn't same in another
model.

What you think i can do ?

I think do one properties in each model, but i don't know how do this.

Em Fri Jan 16 2015 at 15:54:48, euromark  escreveu:

> Enums are a bad thing anyway.
> Better use sth of the options listed @
> http://www.dereuromark.de/2010/06/24/static-enums-or-semihardcoded-attributes/
>
> mark
>
> Am Donnerstag, 15. Januar 2015 23:18:45 UTC+1 schrieb Leandro Machado
> Pereira:
>>
>> I gave up using enum.
>> Thanks.
>>
> Em Thu Jan 15 2015 at 17:31:51, Leandro Machado Pereira <
>> llper...@gmail.com> escreveu:
>>
>>> Hey guy, I tried to do work my fields with mysql ENUM.
>>>
>>> In cake 2.0 i used this helper.
>>>
>>> http://www.drawbackz.com/stack/251186/cakephp-2-0-use-
>>> mysql-enum-field-with-form-helper-to-create-select-input.html
>>>
>>> But in cake 3.0 i'm have dificults for work fine.
>>>
>>> I received errors in this line.
>>>
>>> $modelKey = $this->model();
>>>
>>> and in this line:
>>>
>>> $this->fieldset[$modelKey]['fields'][$fieldName]['type'],
>>>
>>> So, does somebody have any suggestions ?
>>>
>>> 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+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.
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>>  --
> 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/d/optout.
>

-- 
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/d/optout.


Re: Cakephp 3.0 Get and Modify Query conditions in beforeFind function

2015-01-20 Thread Cake Developer
Hi Josh,

Thanks for your answer.

I tried both PlumSearch and Search Plugin in my application and they are 
not working as expected.

They are adding search argumentsin existing conditions in query object.

Failing Situation.
Existing condition has Users.active = 1 and If new condition array has 
Users.active = 0 so this way merged conditions will have Users.active = 1 
AND Users.active = 0 //No Result

If you think I am trying to complicate it then what about failure cases? It 
is not a good idea to match each new condition in original conditions by 
traverse the query.

I believe this would be helpful to every programmers if we find out a 
simple and perfect solution.

Thanks in advance.

On Monday, January 19, 2015 at 11:35:57 PM UTC+5:30, José Lorenzo wrote:
>
> I don't think it is possible in an easy way, I also think you are trying 
> to complicate the problem, given the existence of other clean solutions 
> that already work.
>
> There are two methods that clause('where') object has that can be used to 
> traverse the query. They are iterateParts() and traverse(). iterateParts() 
> will call the passed function for each of the conditions in the same level 
> of depth. traverse() will call the passed function for all the conditions 
> that are stored in a ExpressionInterface object.
>
> There are basically 2 types of interesting ExpressionInterface objects. 
> QueryExpression (contains multiple conditions in the same level and you can 
> call iterateParts() on it) and Comparison, which is a single condition.
>
> With a bit (maybe  a lot) of work you can traverse each of the levels of 
> conditions and build an array out of it. Again, sounds like something 
> complicated for something that can be done differently in a simpler way.
>
> On Monday, January 19, 2015 at 5:45:55 PM UTC+1, Cake Developer wrote:
>>
>> Hi Jose,
>>
>> I gone through both of the plugin links you provided, It seems they are 
>> complicated and do not meet my requirements.
>>
>> I am trying to write a generic solution to filter records with less code. 
>> Is there any way to get original conditions from query object as an array 
>> format.
>>
>> For e.g.
>>
>> $this->paginate = ['conditions'=>['Users.active'=>1]];
>>
>> I want original conditions in beforeFind method like
>>
>> function beforeFind(Event $event, Query $query, $options, $primary) {
>> $orgCondtions = $query->clause('where'); //it returns Expression 
>> Object
>>
>> $orgCondtions = convertExpressionObjectToArray($orgCondtions);
>> pr($orgCondtions);
>> output should be  array('Users.active'=>1)
>> }
>>
>>
>> I am looking for a way to convert Expression Object to Array. Please help 
>> me if possible.
>>
>> Thanks in advance.
>>
>>
>>
>> On Mon, Jan 19, 2015 at 4:22 PM, José Lorenzo > > wrote:
>>
>>> Sorry, I forgot to answer... What you are doing sounds similar to what 
>>> some plugins are doing as well. Please try these:
>>>
>>> https://github.com/skie/plum_search
>>>
>>> https://github.com/FriendsOfCake/search
>>>
>>> As for the second case. I suggest doing as I suggested at the beginning, 
>>> use the query options to hint the beforeFind() or any other finder method 
>>> on what to do or overwrite. That way you can avoid traversing the 
>>> conditions tree.
>>>
>>> If you are in absolute need of inspecting the where clause and modifying 
>>> stuff, you will need to do as follows:
>>>
>>> $query->clause('where')->traverse(function ($expression) {
>>> if ($expression instanceof \Cake\Database\Expression\Comparison) {
>>> if ($expression->getField() === 'Users.active' && 
>>> $expression->getValue() === true) {
>>>  $expression->setValue(false);
>>> }
>>> }
>>> });
>>>
>>> But that can get a bit complicated and difficult to read. Hence my 
>>> suggestion to treat the Query as a command by passing options to it.
>>>
>>>
>>> On Monday, January 19, 2015 at 10:32:22 AM UTC+1, Cake Developer wrote:

 Hi Experts,

 any help?

 Thanks in advance.

 On Friday, January 16, 2015 at 12:47:39 AM UTC+5:30, José Lorenzo wrote:
>
> Even though that is possible you are tying to do it the hard way. The 
> easiest way you can implement the same is by using the query as a 
> "command" 
> object,
> thus instructing the custom finders to do stuff based on the passed 
> options. An example
>
> $table->find('forUser', ['user' => $user])->find('withStatus', 
> ['status' => 'active']);
>
> Then in your table you would create your finders this way:
>
> public function finWithStatus($query, $options) {
> if (!empty($options['user'])) {
>  // The user is available from the previous finder, I can add 
> more conditions here based on that
> }
> }
>
>
> I guess the best way I can help you find the best strategy is if you 
> mention what exactly you are trying to do :D
> On Thursday, January 15, 2015 at 

Console Schema - Foreign key constraint

2015-01-20 Thread Lincoln Brito
Hi!

Does anyone knows how to add foreign key constraints when run Console 
schema? 

I'm testing the command and the file generated don't have foreign key 
references.

I'm using MySQL and Cake 2.6.1

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/d/optout.


How to upgrade from 2..5.2 to 2.6.1

2015-01-20 Thread Archana Goyal
Hello,

I want to upgrade my CakePHP application from 2.5.2 to 2.6.1.
To do so, I have to replace my lib folder or there is another way to 
upgrade my application ?

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

Thanks,
Archana

-- 
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/d/optout.


Re: CakePHP 3.0, Any chat application for cakephp?

2015-01-20 Thread Leandro Machado Pereira
I think node.js is more better for chat than ajax.

Em ter, 20 de jan de 2015 06:21, Jungsuk Lee 
escreveu:

> Hi I'm working on cakephp to build a website and i'd like to add chatting
> feature in it.
> and I'm considering Javascript based chat application.
>
> Using AJAX was too slow to use. any other way?
> Please help.
>
> 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.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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/d/optout.


CakePHP 3.0, Any chat application for cakephp?

2015-01-20 Thread Jungsuk Lee
Hi I'm working on cakephp to build a website and i'd like to add chatting 
feature in it.
and I'm considering Javascript based chat application.

Using AJAX was too slow to use. any other way?
Please help.

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