Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is available to put own controllers and view to request them from URL ? #31

Closed
hdworker opened this issue Apr 22, 2015 · 6 comments
Closed

Comments

@hdworker
Copy link

Hello, trying to set custom controller to app/controleers, to couple with SiteController, but request // generating 404 error. Is it possible? Thank you for work.

@noumo
Copy link
Owner

noumo commented Apr 22, 2015

Ofcourse its possible to create custom controllers. Easyii uses prettyUrl, so make sure you have installed mod_rewrite on your http server.

@hdworker
Copy link
Author

I'm sorry, i tried to toggle prettyUrl, now default url is "index.php?r=site/index".
I want to call "plgeoobjec/index", what need I set for that?
target controller is in app\controllers, but I get 404 error.

@noumo
Copy link
Owner

noumo commented Apr 22, 2015

Does eaysiicms installed in subfolder (not in document root)?
Did you install via composer or from downloaded archive?
If your answers in these cases YES, so please redownload archive.

@hdworker
Copy link
Author

Yes everything question, but it's still impossible to call the custom controller.
But I think that the right way is to setup yii-basic/advanced template and then using easyii as a module.

At begin I put own controller at webroot/app/controllers and nothing will be changed since original setup easyii-start package via composer.
Thank you!

@hdworker
Copy link
Author

OK, the error was that under Linux for calling PlGeoObjectController need to type ?r=pl-geo-object. For Windows the URL will be: ?r=plgeocontroller. It's a little upset.
Don't you know the setting which can unificate such behavior under Windows and Linux?

@noumo
Copy link
Owner

noumo commented Apr 23, 2015

No, I'm not and i dont think that some behavior can solve this problem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants