#921: Add timestamp to css, js urls
----------------------------+-----------------------------------------------
    Reporter:  rossoft      |         Owner:  nate          
        Type:  Enhancement  |        Status:  reopened      
    Priority:  Low          |     Milestone:  1.2.x.x       
   Component:  Helpers      |       Version:  RC1           
    Severity:  Trivial      |    Resolution:                
    Keywords:               |   Php_version:  PHP 4 >= 4.3.0
Cake_version:               |  
----------------------------+-----------------------------------------------
Changes (by richardeyre):

  * status:  closed => reopened
  * resolution:  fixed =>

Comment:

 This does not work when the application root is a folder, not the domain
 root.

 Changing the line:

 {{{$url .= '?' . @filemtime(WWW_ROOT . str_replace('/', DS, $path));}}}

 to:

 {{{$url .= '?' . @filemtime(WWW_ROOT . substr(str_replace('/', DS, $path),
 strlen($this->base)));}}}

 fixes this issue. Line 359 of html.php and 278 of javascript.php.

-- 
Ticket URL: <https://trac.cakephp.org/ticket/921#comment:12>
CakePHP : The Rapid Development Framework for PHP <https://trac.cakephp.org/>
Cake is a rapid development framework for PHP which uses commonly known design 
patterns like ActiveRecord, Association Data Mapping, Front Controller and MVC. 
Our primary goal is to provide a structured framework that enables PHP users at 
all levels to rapidly develop robust web applications, without any loss to 
flexibility.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"tickets cakephp" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/tickets-cakephp?hl=en
-~----------~----~----~----~------~----~------~--~---

  • Re: [CakePHP : The Rapid... CakePHP : The Rapid Development Framework for PHP

Reply via email to