Page Type Controller Problem - Can't access function via URL
Permalink
Hi there,
i'm struggeling with this issue for a long time..
So I got a pagetype "startsite.php" under /themes/llb. The controller lies under /controllers/page_types/startsite.php..
So I know that the controller works, cause the view and on_start functions are beeing called. Seehttp://cb-web.dyndns.org/llb/ (u see a text on the top " here in the onstart" which is echoed in the controller). Now i got a test-function foo, which i try to fire viahttp://cb-web.dyndns.org/llb/foo,... but that won't work. I get a 404 error.
here the controllers code:
I'm not sure where the problem is laying, but could it be that it's a apache issue? here my apache code:
i'm struggeling with this issue for a long time..
So I got a pagetype "startsite.php" under /themes/llb. The controller lies under /controllers/page_types/startsite.php..
So I know that the controller works, cause the view and on_start functions are beeing called. Seehttp://cb-web.dyndns.org/llb/ (u see a text on the top " here in the onstart" which is echoed in the controller). Now i got a test-function foo, which i try to fire viahttp://cb-web.dyndns.org/llb/foo,... but that won't work. I get a 404 error.
here the controllers code:
I'm not sure where the problem is laying, but could it be that it's a apache issue? here my apache code:
Alias /llb/ "/share/www/llb/" <Directory /share/www/llb/> Options Indexes FollowSymLinks MultiViews AllowOverride All Order allow,deny allow from all RewriteEngine On </Directory>
![](/files/avatars/none.gif)
PS: i tried naming the function foo action_foo and call it like that. it didnt make any difference though, and i heard that only is a issue for blocks..
i'm a bit further in the whole problem-solving.
if i add the page-type to the root site in the sitemap, the controller starts (echo from on_start displays). but i can't acces the "foo" function via /llb/foo..
BUT, if i add the page-type to a sub-site, like "/llb/test", i'm able to call the function via "/llb/test/foo"..
why is it not working on the root.site?
if i add the page-type to the root site in the sitemap, the controller starts (echo from on_start displays). but i can't acces the "foo" function via /llb/foo..
BUT, if i add the page-type to a sub-site, like "/llb/test", i'm able to call the function via "/llb/test/foo"..
why is it not working on the root.site?