Welcome Guest, Not a member yet? Register   Sign In
Template Spark not working
#11

[eluser]JavierCane[/eluser]
Thanks for your reply guidorossi, but when I do that, I have this error:

Quote:A PHP Error was encountered
Severity: Notice
Message: Undefined property: Controller::$parser
Filename: libraries/Template.php
Line Number: 717

And anyway, I don't understand why we have to load it as a library because if you look inside "CodeIgniter/sparks/template/v1.7/config/autoload.php", you'll see that the sparks is already doing it:
Code:
<?php

# Load the template library when the spark is loaded
$autoload['config'] = array('template');

Any other suggestion? Anyone is using this spark?
#12

[eluser]Unknown[/eluser]
Hey Javier,

The problem is

Code:
<?php

# Load the template library when the spark is loaded
$autoload['config'] = array('template');

It should be:

Code:
<?php

# Load the template library when the spark is loaded
$autoload['libraries'] = array('template');

So libraries instead of config, after this change everything is working like a charm.
#13

[eluser]JavierCane[/eluser]
It works!

Thanks a lot for your help @dadogdamastar!!! I really didn't take into account the "$autoload['config']" line u_U'

I think that we'll have to tell this to Phil in order to fix the problem in the spark source Smile

Thanks!!!
#14

[eluser]Phil Sturgeon[/eluser]
Spot on guys, I've pushed this fix.
#15

[eluser]matyhaty[/eluser]
just found this treat.

I 'sparked' v1.7 and this fix was not applied to it.....
Did the push happen?

Hope this helps

MAtt




Theme © iAndrew 2016 - Forum software by © MyBB