not loading view[SOLVED] - 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: not loading view[SOLVED] (/showthread.php?tid=36757) Pages:
1
2
|
not loading view[SOLVED] - El Forum - 12-14-2010 [eluser]diasansley[/eluser] The below is my controller. The problem is that it doesnt load the view. It only loads the second <div> in the view file i have pasted. Code: $brands = $this->m_brand_to_entry->getAllBrandsForEntry($id); view file Code: <div class="entry_brand_container"> thanks not loading view[SOLVED] - El Forum - 12-14-2010 [eluser]takasia[/eluser] When there is no data ($brands is empty -> just pasted the view without the controller) it just shows me this source: <div class="entry_brand_container"> </div> </div> <p class="entry_all_links_container"> <a href="/brands/showAllBrands" id="all_brands_link" class="entry_all_link"> alle Marken</a> <img src="/img/shared/frontend_down_arrow.jpg" alt="partition image" /> </p> There is one </div> too much, maybe your browser doesn't like it? ;-) not loading view[SOLVED] - El Forum - 12-14-2010 [eluser]diasansley[/eluser] i cant figure out what your sayin.. I find all the divs proper. Please have a look again Thanks not loading view[SOLVED] - El Forum - 12-14-2010 [eluser]LuckyFella73[/eluser] Takasia is right. You have to move the last closing DIV tag inside the if(!empty($brands)) condition. Code: <div class="entry_brand_container"> not loading view[SOLVED] - El Forum - 12-14-2010 [eluser]diasansley[/eluser] ok tried but still it displays only the last part ... not the upper div. Please help. Thanks not loading view[SOLVED] - El Forum - 12-14-2010 [eluser]diasansley[/eluser] Can someone please have a look here.. I need it to display. Thanks not loading view[SOLVED] - El Forum - 12-14-2010 [eluser]takasia[/eluser] Can you paste all the source of what is displaying? No the php, just the source code from the browser, the result of what php is doing. (Ctrl+U in Firefox, copy and paste here) not loading view[SOLVED] - El Forum - 12-14-2010 [eluser]diasansley[/eluser] here is the source: Also i need to mention this is loaded when i do a drop down select option. when i select the first option it works fine. only the second and third i face this problem. if i use fire bug i see one div empty along with this which i dnt understand y!!! Code: </div> not loading view[SOLVED] - El Forum - 12-15-2010 [eluser]takasia[/eluser] You have the </body> tag without the start <body> on the begining of the page? Or is the source not complete? not loading view[SOLVED] - El Forum - 12-15-2010 [eluser]tonanbarbarian[/eluser] what is the code in _renderFrontendOutput() |