Change in view, only PHP files accepted? |
I just noticed that the view has changed:
From the Manuals: >>> CI 3.15 The .php file extension does not need to be specified unless you use something other than .php. >> CI4 The .php file extension does not need to be specified, but all views are expected to end with the .php extension.
Nothing has has changed (other than the wording in the user guide) - "view" files have always been .php, and the extension is not used when they are referenced.
That doesn't sound right. Can you provide an example? CSS is referenced inside a view, but not "processed" by view rendering.
(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 ); |
Welcome Guest, Not a member yet? Register Sign In |