CodeIgniter Forums

Full Version: [Question] CI View range
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Is it good, that i can go back to another directories with view() function?

[attachment=1723]
I don’t know if it would work, but it is definitely not best practice to put view files in the Helpers directory!
(03-08-2020, 11:40 AM)includebeer Wrote: [ -> ]I don’t know if it would work, but it is definitely not best practice to put view files in the Helpers directory!

Yup, i know, but i just test it, and it works, and i ask to get know is it developed like that, or it is bug (which chance is very small)..

Thank's for reply!
That’s the beauty of Code Igniter. It let you do what you want, even if it’s not the “right” way! Wink
It's not a bug CodeIgniter allows you to have your own view file directory so yes it would work.
Ok, thank you guys! Wink