Friday, June 29, 2012

not found error when naming views.ctp files in arabic

I had a problem with naming views.ctp files in arabic language and calling them with CakePHP2.0.

So I've done this:
- created a view file, naming it in arabic and set it under app/views/pages/myNameInArabic.ctp
- in app/views/layouts/default.ctp file i put a link to it:
echo $this->Html->link('link', array('controller'=>'pages', 'action'=>'صفحة'));

when i clicked the link:
- url bacame: http://localhost/MySite/pages/صفحة
- and got the following error:
Error: The view for PagesController::display() was not found.
Error: Confirm you have created the file: F:\xampp\htdocs\TestLocal\app\View\Pages\صفحة.ctp
etc etc

thanks

--
Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org
Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions.
 
 
To unsubscribe from this group, send email to
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php

No comments: