Skip to content

Need More Excamples Documentation #43

Closed
DrMabuse23 opened this Issue Jan 19, 2013 · 3 comments

2 participants

@DrMabuse23
  1. Plz show me how how i can use the frontend baseurl in Backend
  2. I think some more information about the Handling was usefull

thx

@DrMabuse23

i do this in my backend config
Yii::setPathOfAlias('frontendBaseUrl', '/comm/frontend/www');

why? => i build a gallery module i save the images in the frontend but i need a preview in the backend

@DrMabuse23

Ok next thing i put a user module in common. I logged in my Backend all cool. then i want to use Yii::app->user->isGuest in frontend ia not logged in how to resolve this ?

@hijarian
Clevertech member

We commonly put the

'params' => array(
    'frontendUrl' => 'someurl',
)

inside the backend config. As this value is developer-dependent, it's usually in local configuration snippet.

As for authentication - YiiBooster is designed so that backend is totally separated from frontend. You should never have a reason to login to both entry points simultaneously. So if you want to login to backend, then to frontend, you should do it separately in both entry points.

@hijarian hijarian closed this Dec 22, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.