From af8b1e22efaa3eead1cfbcfebd5891e2fb28f6d6 Mon Sep 17 00:00:00 2001 From: ravage84 Date: Sat, 2 Feb 2013 20:17:10 +0100 Subject: [PATCH] Added a note about plugin assets not working witout url rewrite http://cakephp.lighthouseapp.com/projects/42880/tickets/25-i-installed-but-dont-see-the-images-and-css-of-debugkit > Plugin assets do not work without url rewriting, this is in the documentation for CakePHP itself. I guess it could be repeated for this and every other plugin. > I could have sworn it was with the Plugin Assets section, but apparently its not there. Perhaps its just something I know from experience. See also: * http://cakephp.lighthouseapp.com/projects/42648/tickets/1755-plugin-webroot-without-mod_rewrite-problem * http://cakephp.lighthouseapp.com/projects/42648-cakephp/tickets/500-plugin-css-directories-bug#ticket-500-8 Signed-off-by: mark_story Refs #GH-1113 --- app/Config/core.php | 12 ++++++++++-- lib/Cake/Console/Templates/skel/Config/core.php | 12 ++++++++++-- 2 files changed, 20 insertions(+), 4 deletions(-) diff --git a/app/Config/core.php b/app/Config/core.php index 60e31654b..787eae897 100644 --- a/app/Config/core.php +++ b/app/Config/core.php @@ -92,7 +92,15 @@ * /app/.htaccess * /app/webroot/.htaccess * - * And uncomment the App.baseUrl below: + * And uncomment the App.baseUrl below. But keep in mind + * that plugin assets such as images, CSS and Javascript files + * will not work without url rewriting + * To work around this issue you should either symlink or copy + * the plugin assets into you app's webroot directory. This is + * recommended even when you are using mod_rewrite. Handling static + * assets through the Dispatcher is incredibly inefficient and + * included primarily as a development convenience - and + * thus not recommended for production applications. */ //Configure::write('App.baseUrl', env('SCRIPT_NAME')); @@ -246,7 +254,7 @@ * * Note: 'default' and other application caches should be configured in app/Config/bootstrap.php. * Please check the comments in boostrap.php for more info on the cache engines available - * and their setttings. + * and their settings. */ $engine = 'File'; diff --git a/lib/Cake/Console/Templates/skel/Config/core.php b/lib/Cake/Console/Templates/skel/Config/core.php index d7fbe3a09..96d1d1e75 100644 --- a/lib/Cake/Console/Templates/skel/Config/core.php +++ b/lib/Cake/Console/Templates/skel/Config/core.php @@ -92,7 +92,15 @@ * /app/.htaccess * /app/webroot/.htaccess * - * And uncomment the App.baseUrl below: + * And uncomment the App.baseUrl below. But keep in mind + * that plugin assets such as images, CSS and Javascript files + * will not work without url rewriting! + * To work around this issue you should either symlink or copy + * the plugin assets into you app's webroot directory. This is + * recommended even when you are using mod_rewrite. Handling static + * assets through the Dispatcher is incredibly inefficient and + * included primarily as a development convenience - and + * thus not recommended for production applications. */ //Configure::write('App.baseUrl', env('SCRIPT_NAME')); @@ -307,7 +315,7 @@ * * Note: 'default' and other application caches should be configured in app/Config/bootstrap.php. * Please check the comments in boostrap.php for more info on the cache engines available - * and their setttings. + * and their settings. */ $engine = 'File';