开发者

How to rename method name or attribute in codeigniter project with cascading?

开发者 https://www.devze.com 2023-03-08 13:11 出处:网络
I would like to rename method name \"saveDate()\" in controller inside codeigniter framework this method is used in many different location across the project .

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消