Welcome Guest, Not a member yet? Register   Sign In
phaml library, loader, or hook

[eluser]luke holder[/eluser]
hello guys and girls.

I'm crazy and i am attempting to implement the phaml class into codeigniter.


I have successfully been able to make it an acceptable codeignitor library class and the constructor is working.


    %title Hello From pHAML!!
    %p Hello World';            
echo $this->phaml->render($template);

This works fine and great.

Obviously I would like to somehow hook this lib into CI, especially somehow into the native view loader etc.

Where would be the best place to do so? It needs to be before the view is loaded and passed its $data.

I tried extending the view class but that didnt seem right, unless i just use phaml to generate the view file and save it before loading the view. how could i do this on the fly and not need to generate the file and then load the view?

any suggestions would be great.


Messages In This Thread
phaml library, loader, or hook - by El Forum - 04-01-2010, 08:52 AM
phaml library, loader, or hook - by El Forum - 10-10-2010, 02:49 AM

Theme © iAndrew 2016 - Forum software by © MyBB