Question: I am developing an app where I want to update the value of the particular product count.

1.In main menu there are sliding tabs, where I will be having list of products with plus and minus to add that particular product to the cart.I am preserving the count using singleton class.

2.Now I am clicking on the search button on the same activity,where I am searching the same product which I have already added in the cart.Only the count value of that particular product will get increase and updated in the singleton class.

3.When i click black from the search,the previous activity(i.e main menu activity) comes to the UI with the previous count.If i finish the previous activity before going to the search activity and then if i call the main activity when back is pressed from search everything will be updated.

4.Here what i am doing is on click of search,I am calling the search activity without finishing the main activity.On click of back from the search activity only search activity is finishing.

How can i change the value of the particular product when coming back from search activity?

```
iv_search.setOnClickListener(new OnClickListener() {

        @Override
        public void onClick(View v) {
            // TODO Auto-generated method stub
            Intent intent=new Intent(getApplicationContext(), SearchProduct.class);
            startActivity(intent);
            overridePendingTransition(R.anim.move_up, R.anim.stay);
        }
    });

iv_backsr.setOnClickListener(new OnClickListener() {

        @Override
        public void onClick(View v) {
            // TODO Auto-generated method stub
            finish();

        }
    });

```

hope you guys understand what I am trying to say here..tell me if you need any code.

Thanks in advance..

Answer: 
I Got answer. 

I wrote `'modules'=>[...]` inside `'components'=>[...]`, which was wrong.

Now, **config/web.php**

```
$config = [
  'id' => 'basic',
  'basePath' => dirname(__DIR__),
  'bootstrap' => ['log'],
  'components' => [
   .
   .
   .
   ],
  'modules' => [
    'user' => [
      'class' => 'dektrium\user\Module',
    ],
  ],
  'params' => $params,

```

Now, it's working fine.
If u rewrote user model and ['/user/security/login'] redirecting to '/user/login' with 404, open web config and look for 'urlManager' component.
If you have enblePrettyUrl on, look on rules. 
The problem is there - change it or delete.