![]() |
view does not load - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23) +--- Thread: view does not load (/showthread.php?tid=60838) |
view does not load - El Forum - 07-09-2014 [eluser]Kenan[/eluser] hi people, i have such a code (i have copied just the related part): Code: class Reg extends CI_Controller { the p. functions reg_form() n auth_form() work perfectly n load the view as it should be done, the p. function register() also works perfectly, BUT it does not load the view, just displays the content of the function exit(), any ideas? view does not load - El Forum - 07-09-2014 [eluser]CroNiX[/eluser] Try removing the exit right after loading the view. You're not allowing CI to finish. view does not load - El Forum - 07-09-2014 [eluser]Kenan[/eluser] [quote author="CroNiX" date="1404914458"]Try removing the exit right after loading the view. You're not allowing CI to finish.[/quote] i have tried but useless, the result is just white empty page view does not load - El Forum - 07-09-2014 [eluser]CroNiX[/eluser] That typically indicates a PHP error but you are suppressing them. Check your PHP error log, CI error log or enable display_errors. view does not load - El Forum - 07-09-2014 [eluser]Kenan[/eluser] [quote author="CroNiX" date="1404916538"]That typically indicates a PHP error but you are suppressing them. Check your PHP error log, CI error log or enable display_errors.[/quote] there is no errors, all errors enable to be displayed but no result view does not load - El Forum - 07-10-2014 [eluser]joergy[/eluser] Probably the problem is hidden in Your last "// and so on.." Try to use "return;" after Your loading of the view, if it's necessary "to exit"... view does not load - El Forum - 07-10-2014 [eluser]Tim Brownlaw[/eluser] Time to do some debug... You need to test that you code is working... For starters... For those exits() not preceded by a header(...) add in some text - like exit('Hit the Exit on '.__LINE__) which should showif it's hitting one of those. AND are you sure you don't want to use return; in those instances! Without seeing the rest of your code, I have no clue what's going on. But start digging through what you have and see where it does get to ( using debug messages... even echo statements like "Hi I got here". __FILE__ . ' at '__LINE__ ) and track back to where it stops working. view does not load - El Forum - 07-14-2014 [eluser]Kenan[/eluser] [quote author="Tim Brownlaw" date="1405049595"]Time to do some debug... You need to test that you code is working... For starters... For those exits() not preceded by a header(...) add in some text - like exit('Hit the Exit on '.__LINE__) which should showif it's hitting one of those. AND are you sure you don't want to use return; in those instances! Without seeing the rest of your code, I have no clue what's going on. But start digging through what you have and see where it does get to ( using debug messages... even echo statements like "Hi I got here". __FILE__ . ' at '__LINE__ ) and track back to where it stops working.[/quote] thanks a lot! the way with return can help |