Welcome Guest, Not a member yet? Register   Sign In
Template Library and HMVC
#4

[eluser]Colin Williams[/eluser]
I think the only problem is when Template checks for the existence of the view files before using them. I don't think it would be too much of a problem to throw in a quick check for module-based views. I might put it together tonight. Haven't played around with the code in awhile.

UPDATE:

Any ME - HMVC users wanna glance over this and see if it looks good on the surface?

Code:
$mod_dir = 'modules/'. $this->CI->uri->rsegment(1) .'/';
       return (
           (file_exists(APPPATH .'views/'. $view . EXT) or file_exists(APPPATH .'views/'. $view))
           or
           (file_exists(APPPATH . $mod_dir .'views/'. $view . EXT) or file_exists(APPPATH . $mod_dir .'views/'. $view))
         );


Messages In This Thread
Template Library and HMVC - by El Forum - 01-01-2009, 01:48 AM
Template Library and HMVC - by El Forum - 01-01-2009, 03:11 AM
Template Library and HMVC - by El Forum - 07-11-2009, 11:35 AM
Template Library and HMVC - by El Forum - 07-11-2009, 06:30 PM
Template Library and HMVC - by El Forum - 08-22-2009, 11:38 PM
Template Library and HMVC - by El Forum - 08-23-2009, 02:04 AM
Template Library and HMVC - by El Forum - 10-30-2009, 05:47 PM
Template Library and HMVC - by El Forum - 10-30-2009, 06:23 PM
Template Library and HMVC - by El Forum - 10-30-2009, 06:53 PM
Template Library and HMVC - by El Forum - 10-30-2009, 07:02 PM



Theme © iAndrew 2016 - Forum software by © MyBB