Re: Can I run 2 versions of CakePHP within a single project

2010-07-02 Thread Louie Miranda
You mean, run parallel? different subdomain? or folder?
I think, you could do that. Just check for syntax changes from 1.2 to 1.3
though.

Goodluck
--
Louie Miranda
- Email: lmira...@gmail.com
- Web: http://www.louiemiranda.com



On Thu, Jul 1, 2010 at 11:21 PM, WebRia webriaconsult...@gmail.com wrote:

 Yeah I know this might sound weird, but the problem is,
 We built a really large site using Cake 1.2 Beta, and its grown
 significantly over the period of time and and started to slow down.

 We've noticed the latest cake 1.3 gives a much better performance,
 however we can't just upgrade the version of cake because many of the
 functions / syntax are deprecated and many pages break.

 I was wondering if it was ever possible that we have the new version
 of cake running in a folder called cake-new' or something and
 selectively recode a few pages to run using cake 1.3 while the rest of
 the site continues to use cake 1.2..

 Thanks in Advance.

 Check out the new CakePHP Questions site http://cakeqs.org and help others
 with their CakePHP related questions.

 You received this message because you are subscribed to the Google Groups
 CakePHP group.
 To post to this group, send email to cake-php@googlegroups.com
 To unsubscribe from this group, send email to
 cake-php+unsubscr...@googlegroups.comcake-php%2bunsubscr...@googlegroups.comFor
  more options, visit this group at
 http://groups.google.com/group/cake-php?hl=en


Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

You received this message because you are subscribed to the Google Groups 
CakePHP group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en


Re: Can I run 2 versions of CakePHP within a single project

2010-07-02 Thread Daniel S. Reichenbach

I was wondering if it was ever possible that we have the new version
of cake running in a folder called cake-new' or something and
selectively recode a few pages to run using cake 1.3 while the rest of
the site continues to use cake 1.2..

Have you tried using something like git? You could create a branch
with your application code for each cakephp version and work on both
version at a time to upgrade your application.

E.g. create a git repository, and import CakePHP 1.2.x (whatever you
use in your master), add you application code and data, then branch
with `git branch cakephp-1.3` and upgrade CakePHP to 1.3.x.

Next? Local development system, and see what happens.

Plus: http://book.cakephp.org/view/1561/Migrating-from-CakePHP-1-2-to-1-3

Happy hacking :)

With kind regards,
Daniel

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

You received this message because you are subscribed to the Google Groups 
CakePHP group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en


Re: Can I run 2 versions of CakePHP within a single project

2010-07-02 Thread Zaky Katalan-Ezra
Maybe use the old version as plugin
http://book.cakephp.org/view/114/Plugins
Just an idea, never used it myself

On Thu, Jul 1, 2010 at 6:21 PM, WebRia webriaconsult...@gmail.com wrote:

 Yeah I know this might sound weird, but the problem is,
 We built a really large site using Cake 1.2 Beta, and its grown
 significantly over the period of time and and started to slow down.

 We've noticed the latest cake 1.3 gives a much better performance,
 however we can't just upgrade the version of cake because many of the
 functions / syntax are deprecated and many pages break.

 I was wondering if it was ever possible that we have the new version
 of cake running in a folder called cake-new' or something and
 selectively recode a few pages to run using cake 1.3 while the rest of
 the site continues to use cake 1.2..

 Thanks in Advance.

 Check out the new CakePHP Questions site http://cakeqs.org and help others
 with their CakePHP related questions.

 You received this message because you are subscribed to the Google Groups
 CakePHP group.
 To post to this group, send email to cake-php@googlegroups.com
 To unsubscribe from this group, send email to
 cake-php+unsubscr...@googlegroups.comcake-php%2bunsubscr...@googlegroups.comFor
  more options, visit this group at
 http://groups.google.com/group/cake-php?hl=en




-- 
Regards,
Zaky Katalan-Ezra
QA Administrator
www.IGeneriX.com
Sites.IGeneriX.com
054-7762312

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

You received this message because you are subscribed to the Google Groups 
CakePHP group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en


Can I run 2 versions of CakePHP within a single project

2010-07-01 Thread WebRia
Yeah I know this might sound weird, but the problem is,
We built a really large site using Cake 1.2 Beta, and its grown
significantly over the period of time and and started to slow down.

We've noticed the latest cake 1.3 gives a much better performance,
however we can't just upgrade the version of cake because many of the
functions / syntax are deprecated and many pages break.

I was wondering if it was ever possible that we have the new version
of cake running in a folder called cake-new' or something and
selectively recode a few pages to run using cake 1.3 while the rest of
the site continues to use cake 1.2..

Thanks in Advance.

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

You received this message because you are subscribed to the Google Groups 
CakePHP group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en


Re: Can I run 2 versions of CakePHP within a single project

2010-07-01 Thread nurvzy
Anything is possible.  However, you'll run into major problem early.
The point in which you tell cake where the core files are is before
the router even touches the url/uri (webroot/index.php).   As such,
you're on your own for figuring out what controller/action pair is
being requested and then switch the CORE to you want to use.   Another
issue you'll find is if your SALT, and configuration is different
between cores, Sessions, Cookies, and the like will not be able to
switch from one core to another.   Yet another issue is routing,
routes have been reworked and simplified in 1.3.  A greedy route that
may work in 1.2 will not in 1.3.  Custom prefixes that work in 1.3
won't work in 1.2, etc...   There are also major concerns on how the
session component and session helper do not autoload or autoecho
anymore in 1.3 -- as such you'll have to take that into
consideration.   Caching is another issue that will show its ugly head
down the line.

That said, I advise against it.  You're putting a lot more extra work
into something that if you applied that work into making your app 1.3
compliant you'll be better overall.   The deprecation functions is
nothing a single regex find/replace can't handle, and the benefits of
the new plugin structure in 1.3 is outstanding, not to mention the new
routes, and awesome JsHelper!

At the very least, if you can't upgrade to 1.3 (which is relatively
painless if you follow the migration guide), you can find some extra
performance by just updated your 1.2:Beta core to the latest 1.2
release: 1.2.7.

Hope that helps,
Nick
On Jul 1, 9:21 am, WebRia webriaconsult...@gmail.com wrote:
 Yeah I know this might sound weird, but the problem is,
 We built a really large site using Cake 1.2 Beta, and its grown
 significantly over the period of time and and started to slow down.

 We've noticed the latest cake 1.3 gives a much better performance,
 however we can't just upgrade the version of cake because many of the
 functions / syntax are deprecated and many pages break.

 I was wondering if it was ever possible that we have the new version
 of cake running in a folder called cake-new' or something and
 selectively recode a few pages to run using cake 1.3 while the rest of
 the site continues to use cake 1.2..

 Thanks in Advance.

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

You received this message because you are subscribed to the Google Groups 
CakePHP group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en