CI4: what the use of esc inside view |
(07-26-2018, 06:17 AM)kilishan Wrote: A question, though - what do you mean "accept min.html as template view"? You should be able to do everything that you could with CI3, and if not, I'd like to see about fixing that in the core. on CI4 on system/View/View.php has this line (about line 170) PHP Code: $this->renderVars['view'] = str_replace('.php', '', $view) . '.php'; If I have .html, then it thinks my file as min.html.php which not exist. So I change into this (as in CI3) PHP Code: $fileExt = pathinfo($view, PATHINFO_EXTENSION); If you ask why I didn't use php? Because minify tool on netbeans can picks .html and rename to .min.html (cannot rename to .php). we don't need to send comments and empty space, so it will reduce some data to send. Also stripping with php script takes time, better we stripped it before serving the pages to user. Also you can compress some image to reduce more (stripping EXIF data if not needed, compress png, vacuuming svg, etc) |
Messages In This Thread |
CI4: what the use of esc inside view - by anthos1984 - 07-24-2018, 04:03 PM
RE: CI4: what the use of esc inside view - by enlivenapp - 07-24-2018, 08:27 PM
RE: CI4: what the use of esc inside view - by Pertti - 07-25-2018, 01:22 AM
RE: CI4: what the use of esc inside view - by anthos1984 - 07-25-2018, 04:14 PM
RE: CI4: what the use of esc inside view - by elephpantech - 07-25-2018, 03:32 PM
RE: CI4: what the use of esc inside view - by kilishan - 07-25-2018, 09:14 PM
RE: CI4: what the use of esc inside view - by kilishan - 07-26-2018, 06:17 AM
RE: CI4: what the use of esc inside view - by anthos1984 - 07-28-2018, 12:48 AM
RE: CI4: what the use of esc inside view - by kilishan - 07-28-2018, 12:38 PM
RE: CI4: what the use of esc inside view - by anthos1984 - 07-28-2018, 03:42 PM
|