Welcome Guest, Not a member yet? Register   Sign In
Post/Pre view files [closed]
#1

[eluser]Unknown[/eluser]
Hi,

I'm building my first CI app (and haven't coded in PHP for over a year).. i'm a coldfusion developer who usually uses frameworks such as fusebox and mach-ii. In both those frameworks you are able to define a pre and post request method.

so my question is, are you able to do something like the below without having to explicitly call the view files.

controller --> set content
controller --> view page

view --> include header view //this would be triggered from a controller level
view --> show content
view --> include footer view //this would be triggered from a controller level

and while i'm here... is there a way to restrict the profiler data to only a local development view.. so something like, if test/local server then show profiler else do not show.

cheers




Theme © iAndrew 2016 - Forum software by © MyBB