reference,phpstorm,file-rename , How can I tell PHPStorm to find references to rewritten URLS?


How can I tell PHPStorm to find references to rewritten URLS?

Question:

Tag: reference,phpstorm,file-rename

I wanted to rename one of my files, mypage.php into myprofile.php, but PHPStorm does not find any file references.

In the code, mypage.php is referenced without the file extension. For example:

<a href='../user/mypage/'>    

So it has to look for mypage, not mypage.php and rename it myprofile, without file extension.

How can I tell the program to do this?


Answer:

IDE cannot do that because (as you have mentioned yourself) the file name does not match actual URL reference.

Your only option here is to use ordinary Find & Replace functionality, e.g. Replace in Path to find all occurrences of /user/mypage/ and replace them into /user/myprofile/ in all files in a project (note; you can limit the scope for this action to a specific folder or custom scope -- check docs)


Related:


Chain linked classes


c#,arrays,reference
I have created long chains of classes, with each link(class) knowing only the next and previous link. I see great advantage over Arrays when the index is not important. public class ChainLink { public ChainLink previousLink, nextLink; // Accessors here } Questions : What is this technique actually called? (I...

C++ - Why does 2 local references to the same object stay in sync?


c++,pointers,syntax,reference,variable-assignment
I would like to understand what's going on here. Obviously, there's some aspect of references or assignment operators that I am not getting right. Objective: Within a function, I want to work with 2 local reference variables to various elements of the same list: one is the iterated over and...

Why does this program compile fine in C++14 but not in a C++11 compiler?


c++,c++11,reference,c++14,list-initialization
I recently tested the simple following program on an online compiler. See live demo here. It compiles fine & gives the expected output but when I tested it on Dev C++ IDE it fails during the compilation. Here is my program: #include <iostream> class Test { int s=9; public: int...

PhpStorm: How to separate PHP & HTML indentation


php,html,phpstorm,indentation
Is it possible to configure PhpStorm 8 to indent HTML and PHP code separately? I'll copy the examples from this question: How to properly indent PHP/HTML mixed code? How PhpStorm formats the code currently: <table> <?php foreach ($rows as $row): ?> <tr> <?php if ($row->foo()): ?> <?php echo $row ?>...

Keep getting 'Partial Merge Commit' Dialog


git,phpstorm,bitbucket
I am trying to commit some changed files. There are several, but I only want to commit a few from a specific folder. Everytime I attempt to commit, I get a Dialog box with a popup that says Partial Merge Commit. It also has the message Partial commit during a...

Is a Java class variable a reference to a class object?


java,class,object,reference
I know such question has been asked before but I couldn't find a satisfactory answer. Assume a java class : class Foo{ public int k; Foo(int a){ k=a; } } class My{ public static void main(String args[]){ Foo obj = new Foo(5);//1 obj=new Foo(8); //2 } } I want to...

How can I debug my docker container with phpStorm


php,docker,phpstorm,xdebug,boot2docker
Under the following IP my Container run successful in my Webbrowser http://192.168.99.100:32775 I have also create a volume to share files between my container and my filesystem docker run --name lampf -d -p 32775:80 -v /Users/sja/Sites/lamkepf2:/var/www/html --link=lampf_db:db codinglimo/apache_php540_gs_imgmck_pdflib9 Now I install also xDebug successful in my container with the following...

System.Windows.Interactivity must be referenced in the main project


c#,wpf,dll,reference
So I have a WPF project and my interface in a different project than the main one. I went to reference System.Windows.Interactivity, but it would not work. Not until I added it as a reference to the main project as well... This is the first time this has ever happened...

PhpStorm Git folder modified color


git,version-control,phpstorm
My PhpStorm is coloring changed files when a project is under Git, I want to color the folder also so I can notice that there is a file changed under that colored folder. Thanks....

Sublists in a 2D List, Referencing


java,reference,sublist
I have a 2D List of objects. I'm trying to access a list and replace it with a sublist of itself. I made up a simple example below, I want to replace dList.get(0) with dList.get(0).subList(1,3). I use a reference variable, which updates the values in the original list, but the...

Accessing files inside Docker container


docker,phpstorm
I started playing today with Docker, pulled the Centos image, configured apache inside the container with php and I am able to access the website using the ip address. However, I don't know how am I supposed to access the source files of my app that is stored inside the...

References - Why do the following two programs produce different output?


c++,reference,static,output
I recently read about references in C++. I am aware of basic properties of references but I am still not able to figure out why following two programs produce different output. #include<iostream> using namespace std; int &fun() { static int x = 10; return x; } int main() { fun()...

Add containing folder to project in PhpStorm


phpstorm,moodle
I'm developing a plugin for Moodle and created a project inside my Moodle installation. I'm extending a class called block_base but PhpStorm says undefined class block_base. My guess is that is because all the moodle files (including the class block_base) aren't in the project files. How do I add this...

IntelliJ/Webstorm not finding import reference


javascript,intellij-idea,phpstorm,webstorm,ecmascript-6
I have the following project structure: root src scripts main.js foo.js Inside of my main.js file, I'm importing foo.js like so: import 'src/scripts/foo.js' When I click on the import statement above and go to Navigate -> Declaration I get a super helpful message that says Cannot find declaration to go....

AngularJS - ReferenceError: $ is not defined


javascript,angularjs,canvas,reference
I'm getting the following error when I try to do this var fbcanvas = $('#fbcanvas'); This is the error I got ReferenceError: $ is not defined This is my JS code var feedbackModule = angular.module('feedbackModule', [ 'ui.bootstrap', 'dialogs' ]); feedbackModule.controller('feedbackDialog', function($scope, $rootScope, $timeout, $dialogs) { $scope.confirmed = 'You have yet...

PhpStorm - Remove underlining of SQL statement in PHP


phpstorm,color-scheme
I'm using PhpStorm with the Monokai scheme. When I write an SQL statement in PHP they get underlined. Where can I disable/change this? See images below. I've looked in Color & Fonts but can't seem to find the place to change it. I'm used to the Monokai scheme so I...

Access to reference in member variable discards constness


c++,c++11,reference,compiler-errors,const
I made a wrapper around an object in my code that should modify accesses to the object. I choose to use an object here for testing instead of a functor that would have the same functionality. Basically: The wrapper receives a reference to the object and forwards all indexed accesses...

c++ 2 ref classes should have acess to one same object of a other class


c++,windows,reference,system,command-line-interface
I have 2 classes let's say class a und b. And even a thrid class c. class a and b should have acess to the functions of the same object of class c. I want to have a member like a reference. So the argument in the construktor of class...

Every include should refer to other instance


jsf,jsf-2,reference,uiinclude
I include a part of the XHTML page to my Web Application. This part can be included multiple times. And that's the problem! Because every include refers to the same java object. That means that every element has the same value. But I want for each include a new Java...

Parameters to use in a referenced function c++


c++,pointers,reference
I am very confused as to what kind of variables I would put into my function here: names. I am doing a practice problem in a C++ book, because I am learning C++ and am on References and pointers right now, and cannot find a solution. Just for background information,...

Why does my value change when I am not resetting it?


perl,reference
I have the following example exhibiting the problem I'm struggling to resolve. In the toy example, I have an array @actors with two levels. I also have an array of hashes @people which I am using to 'look up' properties of the people in @actors. The output of the program...

PhpStorm IDE. Collapse custom/debug code


debugging,ide,phpstorm
Is it possible to collapse custom code in PhpStorm? Like if you set in settings pattern: [START]$this->debugOutput(*)[END] The concept is to hide debug code after developing finished. In example below all lines with $this->debugOutput should be hidden class Foo { public function bar() { $x = 1 + 2; $this->debugOutput($x);...

Watching a variable in python?


python,reference
In C++, I could imagine constructing with a reference to a counter ( see below ), and then a function would just dereference the address to get a value. Is something similar possible in python? Something like: import time class Count_Watcher: def __init__( self, to_watch ): self.to_watch = to_watch sleep_watch()...

Wrong Theme being applied to PreferenceActivity with xml reference


android,xml,reference,themes,android-preferences
I seem to have a problem implementing a theme onto a PreferenceActivity when i am using an XML reference to refer to said theme. I have 3 style.xml´s style.xml style.xml (v16) style.xml (v21) each of these in its appropriate values directory. To apply the theme, i reference it in my...

Python: how to reference values in a def


python,reference,return
As a very basic example of what I want to do, I want to update the values 1 and 2, after running them through the example method. Like how you would use ref for Java. def example(value1, value2): value1 += 2 value2 += 4 value1 = 0 value2 = 0...

passing arguments via reference and pointer C++


c++,function,pointers,reference
I am looking at a code snippet and I have this sequence. class MyVariable { .... CustomType z; .... } A.cpp calling a function f ( & myVariable) In an included file I do have this : B.h void f ( MyVariable * myVariable); B.cpp f( MyVariable * myVariable){ CustomType...

Assign a reference return value to a non-reference variable


c++,reference
class A { ... }; A& getA(); A anA = getA(); What happens exactly on line 3 ? Is the copy constructor of A called, thus creating an object independent from the one returned (by reference) by the function?...

return reference of static member variable c++


c++,reference,static
Is there any problem to return a reference of a static member variable? (Reference to avoid copy cost) Vector accepts 4 parameters(x,y,z,w); .h class MyClass { private: static const Vector POS; } .cpp const Vector MyClass::POS(100,300,0,0); const Vector& MyClass::GetVector() { return POS; } ...

Using NON static class Methods Without reference


java,object,methods,reference,static
I'm new to Java. I know the concept of static and non static method. I'm wondering if it's possible to use non static methods of a class without having to create a reference to it. Like for example, for my program I'm working with Date objects, and I need to...

reference data class member visitor pattern


c++,design-patterns,reference
I have a container class that has a plain old datatype called DataStore. This data store will be passed to visitor.They share a single copy since any updated performed by the container are to be seen by visitor. class xyz { //Plain Old Datatype typedef struct DataStore { //add any...

PHPStorm Drush on Vagrant


drupal-7,vagrant,phpstorm,drush
I'm wondering if it's possible to use the command line tool in PHPstorm to run Drush on a Vagrant box? If so how do I go about this? Thanks, Neil....

Turn off highlights


phpstorm
I want to turn off PHPStorm's annoying highlighting for non-error related things. I read their docs, which said to go to preferences->editor->inspections. I deselected all for SQL, yet I still get this green highlighting for no reason: How do I disable this? It's quite distracting....

Reg Expression to Match '


regex,phpstorm
I'm trying to search a app for any use of <? rather than <?php with PHPStorm with a regular expression. After checking out https://support.google.com/a/answer/1371417?hl=en#Match-Whole-Word-Only I've tried (\W|^)<?(\W|$) but it does not work. Any idea what I should use....

gitignore in PHPStorm


php,git,phpstorm
I create a .gitignore file and add two folders. But when I click "commit directory" in PHPStorm my folders are always in my commit changes. magento/media/ magento/var/ What is going wrong? In Terminal it works great ...

Return type of list front (C++)


c++,function,reference,linked-list,return-type
So I want to use a list for a part of my program. I'm trying to get acquainted to the library list, so I wrote a quick little program to help myself understand what's going on. It all works properly, but there's one thing I don't understand. According to this:...

How can I tell PHPStorm to find references to rewritten URLS?


reference,phpstorm,file-rename
I wanted to rename one of my files, mypage.php into myprofile.php, but PHPStorm does not find any file references. In the code, mypage.php is referenced without the file extension. For example: <a href='../user/mypage/'> So it has to look for mypage, not mypage.php and rename it myprofile, without file extension. How...

Using a stored integer as a cell reference


excel,excel-vba,reference
Dim x As Integer Dim y As Integer For y = 3 To 3 For x = 600 To 1 Step -1 If Cells(x, y).Value = "CD COUNT" Then Cells(x, y).EntireRow.Select Selection.EntireRow.Hidden = True End if If Cells(x, y).Value = "CD Sector Average" Then Cells(x, y).EntireRow.Select Selection.Insert Shift:=xlDown Cells(x +...

returning reference to private vs public member


c++,qt,reference,private,public
I would like to know what could be reasons to provide a public access method returning a reference instead of making the member public. QPoint has methods int& rxand int& ry that let me directly manipulate the coordinates. I guess the implentation looks similar to this: public: int& rx(){return x;}...

(Dangling?) Reference returned from function does not “work”


c++,pointers,reference,unique-ptr
I followed V. Romeo's Tutorial on entity management (on GitHub & Youtube). I then tried to rewrite the classes CEntity, CComponent and for testing CPosition(mostly from memory from Romeo's video/code). The problem i encounter is that, in my main i create a CEntity on the stack & add a component....

PhpStorm - wrong syntax highlighting with Blade


laravel,syntax-highlighting,phpstorm,blade
When I create a Blade template in PhpStorm, for example login.blade.php, syntax highlighting works correctly. But when I name it layout.blade.php, it doesn't. Why? How can I fix it? ...

Enabling code completion for bootstrap.js in PhpStorm


twitter-bootstrap,twitter-bootstrap-3,phpstorm
For some reason I get no code completion for the bootstrap.js. I added the non minified version from https://maxcdn.bootstrapcdn.com/bootstrap/3.3.4/js/bootstrap.js as well as adding the library manually in the javascript library settings. Same thing happened for me with knockout until I found out I have to use the knockout-debug version since...

How to automatically format PHP annotations in PHPStorm


php,annotations,phpstorm,swagger-php
I'm working with a large number of files that have PHP block docs with Swagger PHP annotations on them, however they are not indented. Is there anyway to automatically format them with spaces? Turning /** * @SWG\Api( * path="/building/{buildingId}", * @SWG\Operation( * method="GET", * type="Building", * summary="Returns a Building object...

Function with constant reference as input


c++,string,reference
I am trying to make a function that takes a constant reference of a string as input and returns the string after each character of the string is rotated 1 place to the right. Using references and pointers still confuses me and I am not sure how to obtain the...

Java Pass-by-reference not working?


java,variables,reference,pass-by-reference
I'm trying to make this little game in Java but I seem to have stumbled upon a variable reference problem. My Entity class, which Player extends from, keeps a variable of type Dimension. This Dimension gets set via the constructor of the Entity class like so: protected Dimension dimension; public...

Object passed by reference will not exist. Swift


ios,swift,reference,pass-by-reference
I have an array. var array:[customType] = [] // pseudo code func Generate_New_Array(){ //initialization of generatedNewArray array = generatedNewArray for (index,element) in array{ async_process({ Update_Data_From_Web(&array[index]) }) } }) } func Update_Data_From_Web(inout object:customType){ download_process{ object = downloadedData } } The question is , what will should I do if I call...

Regex replace uppercase with lowercase letters in PhpStorm


regex,phpstorm
Hey I have to change in a lot of places camelCase to snail_case. I have following example: billingAddress paymentDetails I tried to use find and replace with regex in PhpStorm In 'find' input field I put in: ([A-Z]) In 'replace' input field I put in: _\L$1 Result I got: billing_LAddress...

PhpStorm : Error in argument 1, char 2: option not found S


php,phpunit,phpstorm
So PHPstorm is running the PHP code fine in its console when I click run; that's great but I want to see it in the browser. So, I created a Built in Server inside project. Now, when I clicked on Run -> Run Project, I'm getting error as: "Error in...

PHPStorm keeps opening Firefox by default when running


phpstorm
I want PHPStorm to run my default browser - Internet explorer... and yet it runs Firefox. I have unticked all options in the settings/web browsers and left only IE ticked. I have changed my run application options to internet explorer (under edit configuration) It keeps running Firefox or comes up...

Why can a raw type reference refer to a generic instance? [duplicate]


java,generics,reference,generic-collections,raw-types
This question already has an answer here: Is List<Dog> a subclass of List<Animal>? Why aren't Java's generics implicitly polymorphic? 8 answers Please help understand why Map map1 = new HashMap<String,String>(); // This compiles Map<Object,Object> map2 = new HashMap<String,String>(); // This does not. As per my understanding Map map1 is...