Skip to content
This repository
Browse code

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 <mark@mark-story.com>

Refs #GH-1113
  • Loading branch information...
commit af8b1e22efaa3eead1cfbcfebd5891e2fb28f6d6 1 parent 77a5ada
Marc Würth authored February 02, 2013 markstory committed February 03, 2013
12  app/Config/core.php
@@ -92,7 +92,15 @@
92 92
  * /app/.htaccess
93 93
  * /app/webroot/.htaccess
94 94
  *
95  
- * And uncomment the App.baseUrl below:
  95
+ * And uncomment the App.baseUrl below. But keep in mind
  96
+ * that plugin assets such as images, CSS and Javascript files
  97
+ * will not work without url rewriting
  98
+ * To work around this issue you should either symlink or copy
  99
+ * the plugin assets into you app's webroot directory. This is
  100
+ * recommended even when you are using mod_rewrite. Handling static
  101
+ * assets through the Dispatcher is incredibly inefficient and
  102
+ * included primarily as a development convenience - and
  103
+ * thus not recommended for production applications.
96 104
  */
97 105
 	//Configure::write('App.baseUrl', env('SCRIPT_NAME'));
98 106
 
@@ -246,7 +254,7 @@
246 254
  *
247 255
  * Note: 'default' and other application caches should be configured in app/Config/bootstrap.php.
248 256
  *       Please check the comments in boostrap.php for more info on the cache engines available
249  
- *       and their setttings.
  257
+ *       and their settings.
250 258
  */
251 259
 $engine = 'File';
252 260
 
12  lib/Cake/Console/Templates/skel/Config/core.php
@@ -92,7 +92,15 @@
92 92
  * /app/.htaccess
93 93
  * /app/webroot/.htaccess
94 94
  *
95  
- * And uncomment the App.baseUrl below:
  95
+ * And uncomment the App.baseUrl below. But keep in mind
  96
+ * that plugin assets such as images, CSS and Javascript files
  97
+ * will not work without url rewriting!
  98
+ * To work around this issue you should either symlink or copy
  99
+ * the plugin assets into you app's webroot directory. This is
  100
+ * recommended even when you are using mod_rewrite. Handling static
  101
+ * assets through the Dispatcher is incredibly inefficient and
  102
+ * included primarily as a development convenience - and
  103
+ * thus not recommended for production applications.
96 104
  */
97 105
 	//Configure::write('App.baseUrl', env('SCRIPT_NAME'));
98 106
 
@@ -307,7 +315,7 @@
307 315
  *
308 316
  * Note: 'default' and other application caches should be configured in app/Config/bootstrap.php.
309 317
  *       Please check the comments in boostrap.php for more info on the cache engines available
310  
- *       and their setttings.
  318
+ *       and their settings.
311 319
  */
312 320
 $engine = 'File';
313 321
 

0 notes on commit af8b1e2

Please sign in to comment.
Something went wrong with that request. Please try again.