Monday, September 30, 2013

Re: Migrating from 1.3 to 2.x

Yes, directly upgrade to the lastest version - master branch = 2.4.
And if you want more automagic beyond the core shell, check this out.


Am Montag, 30. September 2013 06:31:38 UTC+2 schrieb Reuben:
The upgrades from 2.0 to 2.4 have been really smooth, so you may as well jump straight in for 2.4.

I do believe the migration script has been maintained as well, so it should assist quite well with the jump.

On Sunday, 29 September 2013 17:15:49 UTC+10, Adam Perks wrote:
Is it best to upgrade from 1.3 to 2.0, then from 2.0 to 2.1, then 2.1 to 2.2, etc. Or, do I just upgrade directly to 2.4?

--
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+unsubscribe@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 relate table with one of many others?

Thank you

On Monday, September 30, 2013 5:39:42 PM UTC+3, Jeremy Burns wrote:
Cake won't/can't but your code can make it happen.

Jeremy Burns
Class Outfit

http://www.classoutfit.com

On 30 Sep 2013, at 13:55:01, Kemal <ahmetke...@gmail.com> wrote:

I am using Mysql Workbench and it forces plural names. I will fix them. Will cakephp decide whether it is a domain or a hosting looking by order_type_id?

On Monday, September 30, 2013 3:35:15 PM UTC+3, Jeremy Burns wrote:
Scrub that - I see there is an orders_id field on hostings and domains. Sorry. However, some of your fields have incorrect names:

  • domains->orders_id ought to be 'order_id'
  • hostings->orders_id ought to be 'order_id'
  • orders->orders_types_id ought to order_type_id
  • clients_bills table name ought to be client_bills
  • client_bills->clients_id ought to be client_id

I note that you have both clients_id and client_id on the orders table. I'm assuming that one would be the id used by the client? If so, the joining field will be order_id. I'd consider renaming orders_id to something that doesn't end in _id as Cake will try to find a related table and build an association with it; perhaps client_reference would be better?

If you made those changes you could get your basic models built using cake bake.

Jeremy Burns
Class Outfit

http://www.classoutfit.com

On 30 Sep 2013, at 13:23:25, Jeremy Burns | Class Outfit <jerem...@classoutfit.com> wrote:

Surely there would be a 1->many relationship between:
  • orders_types (which ought to be called order_types) and orders
  • domains to orders
  • hostings to orders?

Jeremy Burns
Class Outfit

http://www.classoutfit.com

On 30 Sep 2013, at 13:05:18, Kemal <ahmetke...@gmail.com> wrote:

Hello,

I have created a topic on stackoverflow but didn't get attention. So...

I am little confused about my db design. I have orders table that may have records from one of many others. So is it OK to relate each tables with 1:1 to orders. Please look at orders domains andhostings table relations.

My orders table rows has either a domain or hosting regarding to its orders_type value. There will be more than 10 products like domains, hostings etc. So creating a column on orders table for each product would not be a good practice.

What is the best way to build my structure for 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+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/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.
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.
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+unsubscribe@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 relate table with one of many others?

Cake won't/can't but your code can make it happen.

Jeremy Burns
Class Outfit

http://www.classoutfit.com

On 30 Sep 2013, at 13:55:01, Kemal <ahmetkemalarik@gmail.com> wrote:

I am using Mysql Workbench and it forces plural names. I will fix them. Will cakephp decide whether it is a domain or a hosting looking by order_type_id?

On Monday, September 30, 2013 3:35:15 PM UTC+3, Jeremy Burns wrote:
Scrub that - I see there is an orders_id field on hostings and domains. Sorry. However, some of your fields have incorrect names:

  • domains->orders_id ought to be 'order_id'
  • hostings->orders_id ought to be 'order_id'
  • orders->orders_types_id ought to order_type_id
  • clients_bills table name ought to be client_bills
  • client_bills->clients_id ought to be client_id

I note that you have both clients_id and client_id on the orders table. I'm assuming that one would be the id used by the client? If so, the joining field will be order_id. I'd consider renaming orders_id to something that doesn't end in _id as Cake will try to find a related table and build an association with it; perhaps client_reference would be better?

If you made those changes you could get your basic models built using cake bake.

Jeremy Burns
Class Outfit

http://www.classoutfit.com

On 30 Sep 2013, at 13:23:25, Jeremy Burns | Class Outfit <jerem...@classoutfit.com> wrote:

Surely there would be a 1->many relationship between:
  • orders_types (which ought to be called order_types) and orders
  • domains to orders
  • hostings to orders?

Jeremy Burns
Class Outfit

http://www.classoutfit.com

On 30 Sep 2013, at 13:05:18, Kemal <ahmetke...@gmail.com> wrote:

Hello,

I have created a topic on stackoverflow but didn't get attention. So...

I am little confused about my db design. I have orders table that may have records from one of many others. So is it OK to relate each tables with 1:1 to orders. Please look at orders domains andhostings table relations.

My orders table rows has either a domain or hosting regarding to its orders_type value. There will be more than 10 products like domains, hostings etc. So creating a column on orders table for each product would not be a good practice.

What is the best way to build my structure for 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+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/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.
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+unsubscribe@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.

Webinar: Increase Conversions with Lead Nurturing

  Cannot see this email? View in browser
 
Web Marketing Today
  Upcoming Webinars  
 
How to Increase Conversions with Lead Nurturing
Generating leads from your website is the first step in obtaining new customers. But once you have the names and email addresses of your prospects, how do you make sure they see your communications and respond favorably? In this 30-minute webinar, we'll review a strategy to engage your prospects and then monitor its success, offering ways to tweak your campaigns for higher responses. Sponsored by Infusionsoft.

DATE: Oct. 9, 2013
TIME: 2:00 p.m. Eastern (11:00 a.m. Pacific)

Learn more about the webinar >>
 
 
Share: Twitter Facebook


Web Marketing Today®
518 28 Road, Suite B-203, Grand Junction, CO, 81501, U.S. 970-257-0606
Contact Us

Copyright © 2013 Web Marketing Today. All rights reserved.
Please do NOT reprint or host on your website without explicit permission.
 

 

If you do not wish to receive mail from us, please click here to unsubscribe .

CakePHP bake command not working in CLI

I have got an application that i am working on built using Cakephp 1.3 problem that i am having is that i am failing to bake using CLI. I am using Windows 7 and xampp as my localserver. This is how i have added my Environment Variables.

C:\xampp\php;C:\xampp\htdocs\myappname\cake\console\  

When i type cake command in the CLI i get an error 'cake' is not recognized as an internal or external command, operable program or batch file.

Does anyone have an idea on how to fix this.

I have also asked the same question on SO and i dont seem to get answer - http://stackoverflow.com/questions/19094349/cakephp-bake-command-not-working-in-cli 

--
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+unsubscribe@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.

custom query pagination without using custom paginate

Hello
I have a model whose controller  serves many pages using normal paginate.

Now I need to use a custom query and cannot use the normal find method (or I am not able to)
But I do not know how to paginate.

The query is something as follows:



The cookbook suggests to override the paginate method, but this would mess up everything in many other views

How can I paginate the custom query?

Thanks.
N.

--
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+unsubscribe@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 relate table with one of many others?

I am using Mysql Workbench and it forces plural names. I will fix them. Will cakephp decide whether it is a domain or a hosting looking by order_type_id?

On Monday, September 30, 2013 3:35:15 PM UTC+3, Jeremy Burns wrote:
Scrub that - I see there is an orders_id field on hostings and domains. Sorry. However, some of your fields have incorrect names:

  • domains->orders_id ought to be 'order_id'
  • hostings->orders_id ought to be 'order_id'
  • orders->orders_types_id ought to order_type_id
  • clients_bills table name ought to be client_bills
  • client_bills->clients_id ought to be client_id

I note that you have both clients_id and client_id on the orders table. I'm assuming that one would be the id used by the client? If so, the joining field will be order_id. I'd consider renaming orders_id to something that doesn't end in _id as Cake will try to find a related table and build an association with it; perhaps client_reference would be better?

If you made those changes you could get your basic models built using cake bake.

Jeremy Burns
Class Outfit

http://www.classoutfit.com

On 30 Sep 2013, at 13:23:25, Jeremy Burns | Class Outfit <jerem...@classoutfit.com> wrote:

Surely there would be a 1->many relationship between:
  • orders_types (which ought to be called order_types) and orders
  • domains to orders
  • hostings to orders?

Jeremy Burns
Class Outfit

http://www.classoutfit.com

On 30 Sep 2013, at 13:05:18, Kemal <ahmetke...@gmail.com> wrote:

Hello,

I have created a topic on stackoverflow but didn't get attention. So...

I am little confused about my db design. I have orders table that may have records from one of many others. So is it OK to relate each tables with 1:1 to orders. Please look at orders domains andhostings table relations.

My orders table rows has either a domain or hosting regarding to its orders_type value. There will be more than 10 products like domains, hostings etc. So creating a column on orders table for each product would not be a good practice.

What is the best way to build my structure for 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+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/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.
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+unsubscribe@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 relate table with one of many others?

I am using Mysql Workbench and it forces plural names. I will fix them. Will cakephp decide whether it is a domain or a hosting looking by order_type_id?

--
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+unsubscribe@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 relate table with one of many others?

I am using Mysql Workbench and it forces plural names. I will fix them. Will cakephp decide whether it is a domain or a hosting looking by order_type_id?

On Monday, September 30, 2013 3:35:15 PM UTC+3, Jeremy Burns wrote:
Scrub that - I see there is an orders_id field on hostings and domains. Sorry. However, some of your fields have incorrect names:

  • domains->orders_id ought to be 'order_id'
  • hostings->orders_id ought to be 'order_id'
  • orders->orders_types_id ought to order_type_id
  • clients_bills table name ought to be client_bills
  • client_bills->clients_id ought to be client_id

I note that you have both clients_id and client_id on the orders table. I'm assuming that one would be the id used by the client? If so, the joining field will be order_id. I'd consider renaming orders_id to something that doesn't end in _id as Cake will try to find a related table and build an association with it; perhaps client_reference would be better?

If you made those changes you could get your basic models built using cake bake.

Jeremy Burns
Class Outfit

http://www.classoutfit.com

On 30 Sep 2013, at 13:23:25, Jeremy Burns | Class Outfit <jerem...@classoutfit.com> wrote:

Surely there would be a 1->many relationship between:
  • orders_types (which ought to be called order_types) and orders
  • domains to orders
  • hostings to orders?

Jeremy Burns
Class Outfit

http://www.classoutfit.com

On 30 Sep 2013, at 13:05:18, Kemal <ahmetke...@gmail.com> wrote:

Hello,

I have created a topic on stackoverflow but didn't get attention. So...

I am little confused about my db design. I have orders table that may have records from one of many others. So is it OK to relate each tables with 1:1 to orders. Please look at orders domains andhostings table relations.

My orders table rows has either a domain or hosting regarding to its orders_type value. There will be more than 10 products like domains, hostings etc. So creating a column on orders table for each product would not be a good practice.

What is the best way to build my structure for 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+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/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.
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+unsubscribe@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 relate table with one of many others?

Scrub that - I see there is an orders_id field on hostings and domains. Sorry. However, some of your fields have incorrect names:

  • domains->orders_id ought to be 'order_id'
  • hostings->orders_id ought to be 'order_id'
  • orders->orders_types_id ought to order_type_id
  • clients_bills table name ought to be client_bills
  • client_bills->clients_id ought to be client_id

I note that you have both clients_id and client_id on the orders table. I'm assuming that one would be the id used by the client? If so, the joining field will be order_id. I'd consider renaming orders_id to something that doesn't end in _id as Cake will try to find a related table and build an association with it; perhaps client_reference would be better?

If you made those changes you could get your basic models built using cake bake.

Jeremy Burns
Class Outfit

http://www.classoutfit.com

On 30 Sep 2013, at 13:23:25, Jeremy Burns | Class Outfit <jeremyburns@classoutfit.com> wrote:

Surely there would be a 1->many relationship between:
  • orders_types (which ought to be called order_types) and orders
  • domains to orders
  • hostings to orders?

Jeremy Burns
Class Outfit

http://www.classoutfit.com

On 30 Sep 2013, at 13:05:18, Kemal <ahmetkemalarik@gmail.com> wrote:

Hello,

I have created a topic on stackoverflow but didn't get attention. So...

I am little confused about my db design. I have orders table that may have records from one of many others. So is it OK to relate each tables with 1:1 to orders. Please look at orders domains andhostings table relations.

My orders table rows has either a domain or hosting regarding to its orders_type value. There will be more than 10 products like domains, hostings etc. So creating a column on orders table for each product would not be a good practice.

What is the best way to build my structure for 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+unsubscribe@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+unsubscribe@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 relate table with one of many others?

Surely there would be a 1->many relationship between:
  • orders_types (which ought to be called order_types) and orders
  • domains to orders
  • hostings to orders?

Jeremy Burns
Class Outfit

http://www.classoutfit.com

On 30 Sep 2013, at 13:05:18, Kemal <ahmetkemalarik@gmail.com> wrote:

Hello,

I have created a topic on stackoverflow but didn't get attention. So...

I am little confused about my db design. I have orders table that may have records from one of many others. So is it OK to relate each tables with 1:1 to orders. Please look at orders domains andhostings table relations.

My orders table rows has either a domain or hosting regarding to its orders_type value. There will be more than 10 products like domains, hostings etc. So creating a column on orders table for each product would not be a good practice.

What is the best way to build my structure for 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+unsubscribe@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 relate table with one of many others?

Hello,

I have created a topic on stackoverflow but didn't get attention. So...

I am little confused about my db design. I have orders table that may have records from one of many others. So is it OK to relate each tables with 1:1 to orders. Please look at orders domains andhostings table relations.

My orders table rows has either a domain or hosting regarding to its orders_type value. There will be more than 10 products like domains, hostings etc. So creating a column on orders table for each product would not be a good practice.

What is the best way to build my structure for 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+unsubscribe@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.

Using PHPUnit for code that requires basic authentication

How do I write test cases in PHPUnit for code that is using the Auth module with basic authentication? I have found bits and pieces of information about it but does anyone know of a step by step howto or detailed documentation?

My code limits certain actions to certain user types so it calls the Auth->login method and then gets the user object from Auth ($User = $this->Auth->user()) and then checks the group_id ($User['group_id']).

There seem to be two approaches to this:
1. Mock the User object and the Auth component
2. Read the User information from the database and call Auth->login explicitly in the test setup

Which approach is "best practice"? Are there some cases where it is better to use one over the other?

Unfortunately, I have no real experience using PHPUnit or other unit testing frameworks.

--
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+unsubscribe@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.

Sunday, September 29, 2013

need cakephp developer for 2 page site

need cakephp developer for 2 page site. Future i need in this site is searching sorting etc...


contact 

Mrinal (india delhi)
9015151449
mrinalkumarjha1@gmail.com

--
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+unsubscribe@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: Migrating from 1.3 to 2.x

The upgrades from 2.0 to 2.4 have been really smooth, so you may as well jump straight in for 2.4.

I do believe the migration script has been maintained as well, so it should assist quite well with the jump.

On Sunday, 29 September 2013 17:15:49 UTC+10, Adam Perks wrote:
Is it best to upgrade from 1.3 to 2.0, then from 2.0 to 2.1, then 2.1 to 2.2, etc. Or, do I just upgrade directly to 2.4?

--
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+unsubscribe@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: Sharing one Cake application with many domains, each with its own database

I've had previous experience with something similar, but with Joomla installations and an arrangement of symlinks.

My advice would be not to set up cake this way.  Whilst it's convenient when things are going well, it's very very bad when things go south.  It's not just one site that suffers, it's all of them. Especially if you have a database upgrade : all the sites on the machine have to go down while the database upgrades are applied, rather than one at a time.

Find a more automated way to do deployments, rather than do symlinks.  Previously, I've used capistrano to automate deployments via SSH, but I've had it in the back of my mind to also check out Fabric (python based). I wish there was something PHP based that also targeted Windows environments, but the best I've been able to come up with there is the usage of Phing (Ant for PHP) and FileSystem copies.

On Saturday, 28 September 2013 07:03:15 UTC+10, WebA wrote:
Hello,

We have a shared hosting server that hosts many domains (we will assume that the amount will be scalable).  We develop a Cake application and each domain has a copy of the application's files.  Each copy of the application connects to each domain's database.

Deploying updates to each domain is an incredibly tiresome and tedious process.  We want to consider alternative setups that will make this process easier.

We have thought of one alternative, but are unsure of the scalability of them:
  • Place one copy of the Cake application on the server and create sym links for the shared files.  Domain specific files will of course be unique for each domain

Has anyone had a similar issue or experience?

If anyone has any suggestions or previous experience with a similar issue, please share!

--
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+unsubscribe@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: Migrating from 1.3 to 2.x

I would do it directly. It has no sense making it in steps

El 29/09/2013 23:58, "Adam Perks" <adamperks81@gmail.com> escribió:
Is it best to upgrade from 1.3 to 2.0, then from 2.0 to 2.1, then 2.1 to 2.2, etc. Or, do I just upgrade directly to 2.4?

--
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+unsubscribe@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+unsubscribe@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: Image Merging in CakePHP

I would recommend using Imagine or the Imagine plugin for CakePHP I've written that acts as a wrapper around the lib to make it useable in the a CakePHPish way. Imagine is a very good image processing lib that abstracts the different APIs very well.

https://github.com/burzum/Imagine

On Friday, September 27, 2013 2:18:34 PM UTC+2, Tom Nash wrote:
I have a layered image on my webpage, made up of small images layered onto a larger one. 

Is it possible to merge/flatten the images so that I am just left with one that can be downloaded? If so, how would I go about it?

Thanks,
Tom

This email may contain material that is confidential, privileged and/or work product for the sole use of the intended recipient.  Any review, reliance or distribution by others or forwarding without express permission is strictly prohibited.  If you are not the intended recipient, please contact the sender and delete all copies.

Cake Development Corporation.

--
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+unsubscribe@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: Sharing one Cake application with many domains, each with its own database

That only works if all are upgrade and deployed with the very same cake core version.
But if thats the case, you can use a single app

For smaller websites using the same core I always just had a single instance of it (without any symlinking or other setup) - zero configuration needed:

ROOT/app1
ROOT/app2
ROOT/app... (to unfinitiy)
ROOT/lib/Cake
ROOT/plugins
ROOT/vendors

On the other side, a cake core (without tests and other baggage) is only 2MB. Wouldn't be that big of an overhead if you got the deployment scripts for automation.


Am Freitag, 27. September 2013 23:03:15 UTC+2 schrieb WebA:
Hello,

We have a shared hosting server that hosts many domains (we will assume that the amount will be scalable).  We develop a Cake application and each domain has a copy of the application's files.  Each copy of the application connects to each domain's database.

Deploying updates to each domain is an incredibly tiresome and tedious process.  We want to consider alternative setups that will make this process easier.

We have thought of one alternative, but are unsure of the scalability of them:
  • Place one copy of the Cake application on the server and create sym links for the shared files.  Domain specific files will of course be unique for each domain

Has anyone had a similar issue or experience?

If anyone has any suggestions or previous experience with a similar issue, please share!

--
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+unsubscribe@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: Image Merging in CakePHP

Use imagick (imagemagick) and its functionality to do that


Am Freitag, 27. September 2013 14:18:34 UTC+2 schrieb Tom Nash:
I have a layered image on my webpage, made up of small images layered onto a larger one. 

Is it possible to merge/flatten the images so that I am just left with one that can be downloaded? If so, how would I go about it?

Thanks,
Tom

--
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+unsubscribe@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.

Migrating from 1.3 to 2.x

Is it best to upgrade from 1.3 to 2.0, then from 2.0 to 2.1, then 2.1 to 2.2, etc. Or, do I just upgrade directly to 2.4?

--
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+unsubscribe@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.

Friday, September 27, 2013

Re: how to get cache file name in arabic language

That is going to be tied to the OS the files are on. Most Linux webservers won't support that charset. You will need to come up with another way

Eric

On Thursday, September 26, 2013 7:50:57 AM UTC-4, Mokdij wrote:
I am developing a website in Arabic language, i need to use a slug in Arabic characters but my problem is that the cache file name show characters like Ù«, ØÃ, ì, ù, à in place of normal characters.

example :
post_من-نحÙ† ==> the slug is: من-نحن

post_٬Ù…Å -ومدØÙ ع-كمروي-ÙÙŠ-تØرÙات-ااØ

so how to do to get a cache file name in arabic language ?

--
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+unsubscribe@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.