• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
User Alert Library

#2
Hi,

I may be totally wrong here because I have not touched CI4 and although I am excited I think I will have to do quite a bit of learning some new techniques and concepts before I could do anything other than a hobby site. So perhaps my misunderstanding it due to this being for CI4 and not for CI3.

However it appears you are echoing directly from a library. This does not seem right to me even if you are echoing a view that you have returned as a string. Only controllers should control output.

https://www.codeigniter.com/user_guide/o...pflow.html

Again, perhaps CI4 is different in this respect. But output should be done in a controller, not in a library.

I hope you do not mind me mentioning this and your code looks great. Also I hope I am not being CI4 ignorant.

Best wishes,

Paul
Reply


Messages In This Thread
User Alert Library - by MGatner - 03-18-2019, 01:18 PM
RE: User Alert Library - by PaulD - 03-18-2019, 01:33 PM
RE: User Alert Library - by MGatner - 03-18-2019, 02:26 PM
RE: User Alert Library - by MGatner - 03-19-2019, 08:15 AM
RE: User Alert Library - by MGatner - 03-25-2019, 01:11 PM

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2021 MyBB Group.