Welcome Guest, Not a member yet? Register   Sign In
Display rendered view by default
#1

[eluser]Aniket[/eluser]
Hi all,
Posting after a very long time..so far so gud..i..am very happy with CI \m/. But i have a very special requirement like..as of now i am using a templating solution
Custom Template Library.
Now as per this library we render view using
Code:
$this->template->render();
.
Now my concern is..i got this very special requirement...that i don't want to call the
Code:
render()
method while displaying the content...else when my scope of controller function ends..the template should be automatically rendered.
Any suggestions on this.. ?? .say using helper ...??

Thanks in advance
#2

[eluser]richthegeek[/eluser]
Hooks? Bind to the post_controller event..


http://ellislab.com/codeigniter/user-gui...hooks.html
#3

[eluser]flaky[/eluser]
-
wrong answer
#4

[eluser]Aniket[/eluser]
The thing is say i want that behavior for all the controllers...and i think hooks should be sufficient...
@flaky please could you explain why hooks wont be a better option ?
#5

[eluser]flaky[/eluser]
I wrote a bad answer, not you, sorry my bad
#6

[eluser]Aniket[/eluser]
hey..np Smile
I'll try to implement it and will updated the result Smile




Theme © iAndrew 2016 - Forum software by © MyBB