Welcome Guest, Not a member yet? Register   Sign In
Change in view, only PHP files accepted?
#5

(This post was last modified: 07-13-2017, 05:32 AM by John_Betong.)

(07-13-2017, 02:10 AM)ciadmin Wrote: That doesn't sound right. Can you provide an example? CSS is referenced inside a view, but not "processed" by view rendering.

Controller - CI 3.15
PHP Code:
$data['jb_style'] = $this->load->view'incs/style-jj-2016-07-27.css',[], TRUE); 

View file:
PHP Code:
 // $css = file_get_contents( STYLEPATH );

 
 $css $jb_style;
 
 $css str_replace(["\t""\n""\r""  "], NULL$css);
// print_r($css);die;
echo = <<< ____TMP
  <style type="text/css">
   
$css
  </style>
____TMP; 
Reply


Messages In This Thread
RE: Change in view, only PHP files accepted? - by John_Betong - 07-13-2017, 05:29 AM



Theme © iAndrew 2016 - Forum software by © MyBB