Hi Victor,
I was able to access the default controller using http://localhost/. I had
created another Controller "TestController.php" where "IndexController.php"
exists and I had a method called "indexAction()" in TestController.php. When
I use "http://localhost/test/index", it is supposed to go to index action in
TestController.php. I think that is not happening.
Here is my .htaccess file:
SetEnv APPLICATION_ENV production
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} -s [OR]
RewriteCond %{REQUEST_FILENAME} -l [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^.*$ - [NC,L]
RewriteRule ^.*$ index.php [NC,L]
Should I add anything here? Please let me know.
Thank you for your response.
Regards,
Praveen
Victor Farazdagi-2 wrote:
>
> Praveen,
> Were you able to access the default controller? Specifically, is
> http://mylocalhost is accessible (generally local hosts are
> http://localhost, but of course you can configure it to whatever you
> want). Plus, did you put mod_rewrite directions into your .htaccess file?
>
>
>
> pyarlagadda wrote:
>> Hi,
>>
>> I am new to Zend framework and I have this problem.
>>
>> I used zf.sh to create a project and there is a file IndexController.php
>> located under Controllers directory. I created a different file
>> TestController.php under the same directory and there is indexAction()
>> method in it. I have also created views/scripts/test/index.phtml. When I
>> try
>> to access the link - http://mylocalhost/test/index, I get 404 message. Is
>> there any way I can access this link from the browser? I am stuck at
>> this.
>>
>> Can somebody please help me out?
>>
>> Regards,
>> Praveen
>>
>
>
> --
> Victor Farazdagi
>
> UMapper / CrabDish LLC
> 7350 E. Progress Place, Suite 212
> Greenwood Village, CO 80111
> USA
>
> http://www.umapper.com
> http://www.afcomponents.com
>
>
>
--
View this message in context:
http://www.nabble.com/Can%27t-access-a-non-default-controller-tp25056677p25066831.html
Sent from the Zend Framework mailing list archive at Nabble.com.