cakephp 2.6 current location in model layer

Chriss Baumfleisch

I am in the model layer and want to make a switch() for the different prefixes like admin or api.

How can I get the request params I have in the Controller layer $this->request->params in the Model layer?

Bart
Router::getParams()

This should do the job but, as AD7six said, don't do it

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

multiple model validation cakephp 2

From Dev

CakePHP 3 - Model - Accessing data from third layer of array

From Dev

select2: Check current user location

From Dev

CakePHP 2 Model relations multiple foreign Keys

From Dev

cakephp 2 name variable in model and controller

From Dev

CakePHP 2.x Accessing Another Model

From Dev

Create navigation that shows current location on scroll in Foundation 6

From Dev

javascript does not display current location of user over a google map using KML layer?

From Dev

Apply current selection as a layer mask to the current layer

From Dev

CakePHP model behaviors in Symfony2 + Doctrine2?

From Dev

How can i get cakephp current model's foreign key column name?

From Dev

Swift 2 - User's Current Location is inside MKPolygon

From Dev

How can i access the current hash location on react router 2?

From Dev

How to set current location manually in the map (sencha touch2)?

From Dev

saving current location on GoogleMap V2 by JSON parser

From Dev

GoogleMap V2 doesn't start with user current location

From Dev

Android Google Maps Api v2 current Location Null

From Dev

How to auto update current location on google map in ionic 2 application

From Dev

CakePHP 2.x: How to manually set validationErrors without a model?

From Dev

rename Model Name from find('all') with cakePHP 2.X

From Dev

Why is my model not being saved? (CakePHP 2.x)

From Dev

CakePHP v2 named Model same as folder in webroot

From Dev

Display value in View layer (Cakephp)

From Dev

Using Google Map API v2 drawing a route from current location to destination location in android

From Dev

Data validation on model layer?

From Dev

Use celery as the model layer

From Dev

Use celery as the model layer

From Dev

Data validation on model layer?

From Dev

Current program location?

Related Related

  1. 1

    multiple model validation cakephp 2

  2. 2

    CakePHP 3 - Model - Accessing data from third layer of array

  3. 3

    select2: Check current user location

  4. 4

    CakePHP 2 Model relations multiple foreign Keys

  5. 5

    cakephp 2 name variable in model and controller

  6. 6

    CakePHP 2.x Accessing Another Model

  7. 7

    Create navigation that shows current location on scroll in Foundation 6

  8. 8

    javascript does not display current location of user over a google map using KML layer?

  9. 9

    Apply current selection as a layer mask to the current layer

  10. 10

    CakePHP model behaviors in Symfony2 + Doctrine2?

  11. 11

    How can i get cakephp current model's foreign key column name?

  12. 12

    Swift 2 - User's Current Location is inside MKPolygon

  13. 13

    How can i access the current hash location on react router 2?

  14. 14

    How to set current location manually in the map (sencha touch2)?

  15. 15

    saving current location on GoogleMap V2 by JSON parser

  16. 16

    GoogleMap V2 doesn't start with user current location

  17. 17

    Android Google Maps Api v2 current Location Null

  18. 18

    How to auto update current location on google map in ionic 2 application

  19. 19

    CakePHP 2.x: How to manually set validationErrors without a model?

  20. 20

    rename Model Name from find('all') with cakePHP 2.X

  21. 21

    Why is my model not being saved? (CakePHP 2.x)

  22. 22

    CakePHP v2 named Model same as folder in webroot

  23. 23

    Display value in View layer (Cakephp)

  24. 24

    Using Google Map API v2 drawing a route from current location to destination location in android

  25. 25

    Data validation on model layer?

  26. 26

    Use celery as the model layer

  27. 27

    Use celery as the model layer

  28. 28

    Data validation on model layer?

  29. 29

    Current program location?

HotTag

Archive