Welcome Guest, Not a member yet? Register   Sign In
[Question] CI View range
#1
Tongue 

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

   
Free Alexey Navalny
Reply
#2

I don’t know if it would work, but it is definitely not best practice to put view files in the Helpers directory!
CodeIgniter 4 tutorials (EN/FR) - https://includebeer.com
Reply
#3

(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!
Free Alexey Navalny
Reply
#4

That’s the beauty of Code Igniter. It let you do what you want, even if it’s not the “right” way! Wink
CodeIgniter 4 tutorials (EN/FR) - https://includebeer.com
Reply
#5

It's not a bug CodeIgniter allows you to have your own view file directory so yes it would work.
What did you Try? What did you Get? What did you Expect?

Joined CodeIgniter Community 2009.  ( Skype: insitfx )
Reply
#6

Ok, thank you guys! Wink
Free Alexey Navalny
Reply




Theme © iAndrew 2016 - Forum software by © MyBB