CodeIgniter Forums
[Question] CI View range - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: CodeIgniter 4 (https://forum.codeigniter.com/forumdisplay.php?fid=28)
+--- Forum: CodeIgniter 4 Support (https://forum.codeigniter.com/forumdisplay.php?fid=30)
+--- Thread: [Question] CI View range (/showthread.php?tid=75687)



[Question] CI View range - brabus - 03-05-2020

Is it good, that i can go back to another directories with view() function?

   


RE: [Question] CI View range - includebeer - 03-08-2020

I don’t know if it would work, but it is definitely not best practice to put view files in the Helpers directory!


RE: [Question] CI View range - brabus - 03-09-2020

(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!


RE: [Question] CI View range - includebeer - 03-09-2020

That’s the beauty of Code Igniter. It let you do what you want, even if it’s not the “right” way! Wink


RE: [Question] CI View range - InsiteFX - 03-10-2020

It's not a bug CodeIgniter allows you to have your own view file directory so yes it would work.


RE: [Question] CI View range - brabus - 03-12-2020

Ok, thank you guys! Wink