How to rename method name or attribute in codeigniter project with cascading?
I would like to rename method name "saveDate()" in controller inside codeigniter framework this method is used in many different location across the project . Is there is an IDE or tool helps me to rename this method name without going t开发者_如何学Co all files in the project who call this method???
IDE's like NetBeans and PDT both have "refactoring" tools with safe rename in them, if you want to give that a shot. In Netbeans, you can also use the "find usages" from the context menu on any function name.
If you want to go old-school, sed is your friend--you just have to be careful if there are other objects with the same method name.
Maybe using TextCrawler? Otherwise I can't see how you can change it easy.
精彩评论