-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
yaf routing with namespace is on option #577
Comments
project code: https://github.com/i-luka/yaf_project |
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I have a yaf project in the docker. I setup php with
`RUN mv $PHP_INI_DIR/php.ini-development $PHP_INI_DIR/php.ini
RUN echo 'extension=yaf.so' >> $PHP_INI_DIR/php.ini
RUN echo 'yaf.use_spl_autoload = 1' >> $PHP_INI_DIR/php.ini
RUN echo 'yaf.use_namespace = 1' >> $PHP_INI_DIR/php.ini
RUN echo 'yaf.name_suffix = 1' >> $PHP_INI_DIR/php.ini
RUN echo 'yaf.name_separator = ' >> $PHP_INI_DIR/php.ini
RUN echo 'yaf.library = /library' >> $PHP_INI_DIR/php.ini`
Then I made template with yaf_cg with --namespaced option.
But I had an error of class not fount for ErrorController and actualy for default controller IndexController which was made by yaf_cg utility. So, I eventualy, get right code for controller wich look like this
I thought it make's me happy but now I can't setup routing in the way it works.
I tried setups like this
`project.type="rewrite"
project.match="/product"
project.route.module=
project.route.controller=Yaf\Index
project.route.action=info`
I tired project.route.controller=Index too, and another too, but I get only default route.
So, why yaf_cg makes wronge template and how really make routing with that namspacing which I have?
The text was updated successfully, but these errors were encountered: