#3 ✓resolved
mattijs

views_dir directory separator

Reported by mattijs | May 26th, 2009 @ 02:16 PM | in Release 0.3 - Citronnade

The option to set the views dir is dependant on a trailing directory separator. If this separator is forgotten when setting the option view files wont de included properly. The views_dir path and view filename will be concatenated without a directory separator resulting in a path that doesn't exist.

I created a patch to add a check for the directory separator at the end of the views_dir path when redering views. I hope it helps :)

Keep up the good work!

PS: there is a simpler solution by just adding the separator when combining the views_dir and the view into a path. But this won't work on windows when there already is a trailing separator (linux is smart enough to skip the extra separator)

Comments and changes to this ticket

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

Limonade is a PHP micro-framework.

People watching this ticket

Attachments

Referenced by

Pages