Welcome Guest, Not a member yet? Register   Sign In
How to use view to load a CSS file
#3

(This post was last modified: 05-21-2018, 12:56 AM by John_Betong.)

(05-19-2018, 09:27 PM)ciadmin Wrote: Er, nothing has been released yet, though we inch closer.

Having said that, CI4 uses the render() method of a View or Parser object. There is no view(...) method in the RenderInterface.
See https://bcit-ci.github.io/CodeIgniter4/g...derer.html

Whoops, I mistook the "pre-alpha" to be alpha.

I followed the link and failed to understand the intricacies. Numerous script snippets were tried from the provided help page. Unfortunately none work? I know the Help pages are under construction... would it be more helpful to supply working examples that can be analysed to make the help pages more easily understood? A good provided example is the Home Class which uses the view method to render the "welcome_message" View. Personally I would prefer to be shown more options rather than a minimilistic version. 

My dilemma is that in all prior versions of CI, passing non php pages via the view method worked satisfactorily... as long as the default php file extension was supplied. Numerous parameters could then be passed to a common view (via $data) thus reducing the number of views. Site wide small changes could be tested and rolled back if problems were encountered. Ideal when trying to implement AmpProject pages. DRY principle springs to mind. 

>>> Off Topic
Is there:
1. an itemised list of features required before the CI4 Alpha is released?
2. also a list which states what can be used in the current release.

I believe the second item will encourage more users to try an Alpha version resulting in useful error reporting feedback. 

Aiming for an ideal platform is impeding the Alpha release because of daily Web security problems Sad
>>> Off Topic

Edit:
Removed and made a separate thread.
Reply


Messages In This Thread
RE: How to use view to load a CSS file - by John_Betong - 05-20-2018, 10:04 PM



Theme © iAndrew 2016 - Forum software by © MyBB