php - How to use a different version of cakephp? -


i have downloaded many cakephp versions, 2.3.1 2.3.9, test app using different versions.

i know need override /lib directory version want use. but, there more efficient way?

i have:

/cakephp/2.3.1 /cakephp/2.3.2 /cakephp/2.3.3 /cakephp/2.3.4 .... 

how can switch version of cakephp easily?

maybe link: /home/example.com/www/lib > /cakephp/2.3.2/lib

overview:

it's simple , requires changing path in single file.

details:

just keep cake versions in folder above app/ directory - this:

app/ cake/     cakephp_1_3/     cakephp_2_1/     cakephp_2_2_beta/     cakephp_2_3_9/ 

then, whenever want try new version, change line sets cake_core_include_path in app/webroot/index.php file version of cakephp want use. example:

define('cake_core_include_path', 'd:\wamp\cakephp\cakephp_2_3_9\lib'); 

notes:

this works online - make sure change path location on server instead of local machine.

i find helpful keep cakephp core files separate can update latest version while allowing back-step if there issues.

also make sure if require plug-ins held within specific version of cake copy them on new version well.


Comments

Popular posts from this blog

Detect support for Shoutcast ICY MP3 without navigator.userAgent in Firefox? -

web - SVG not rendering properly in Firefox -

java - JavaFX 2 slider labelFormatter not being used -