Template Spark not working |
[eluser]JavierCane[/eluser]
Hi! I started to use CodeIgniter Sparks and I decided to try 'template'. The problem is that in my controller I have loaded the spark with: Code: $this->load->spark('template/v1.7'); But when I use: Code: $this->template->title('CodeIgniter', 'Example'); It returns a message like: Quote:A PHP Error was encountered Note: I would like to link all of these information (Sparks official site and template spark) but I couldn't because the forum system don't allow me.
[eluser]InsiteFX[/eluser]
Next time if you want to link etc, use POST REPLY! It's CodeIginter's full post editor. And your problem is the /v1.7 InsiteFX
[eluser]JavierCane[/eluser]
thanks for your reply! I tried to change the sentence for: Code: $this->load->spark('template/1.7'); But it doesn't work neither: Quote:An Error Was Encountered Furthermore, I can see that the folder structure is: Quote:*CodeIgniter*/sparks/template/v1.7so I think that the "v1.7" is correct. Anyway, I don't understand what sense have the 'v' because no other spark have it... but maybe it doesn't matter too much... ...certainly, the 'sparks system' are pretty awesome! And about what you're saying about the link function, when I put some link in the post, I have this server error: Quote:Error Message
[eluser]InsiteFX[/eluser]
Is it a Class or a View Template? If it is a View Template then you need to load it as a view and not a Class. A link would be helpful InsiteFX
[eluser]JavierCane[/eluser]
Here you have the spark page, and the spark documentation ( philsturgeon.co.uk/demos/codeigniter-template/user_guide/index.html#install). It's a library and it helps to organize and manage views layouts, themes, and in general, common functions that you usually need for your views and help to manage this kind of stuff.
[eluser]JavierCane[/eluser]
I don't understand what you're trying to say... the library have documentation and examples, and I can see how to use the class and the doc doesn't tell anything about Dwoo PS: I fixed the 'link'
[eluser]InsiteFX[/eluser]
And your link to sparks still will not work! Code: // [url=http://www.link.com]Link Text[/url] Look on Phil's site for Dwoo. InsiteFX
[eluser]JavierCane[/eluser]
Thanks for your reply, but (as I said before): [quote author="JavierCane" date="1300497041"] ...when I put two links in the post, I have this server error: Quote:Error Message[/quote] (If you don't believe me, you have a screenshot attached) By the way, you only have to copy the url and paste it in your browser address bar... About the main problem (template system), I am not talking about Dwoo library, I'm talking about 'template' spark, and as far as I know, I don't need any Dwoo knowledge to implement it... but it isn't working properly and I have no idea how to fix it.
[eluser]guidorossi[/eluser]
In the Curl spark documentation say that you need to load it like Code: $this->load->spark('curl/1.0'); But in order to work I needed to load it like: Code: $this->load->spark('curl/1.0'); So, maybe you need to also load it like a library... |
Welcome Guest, Not a member yet? Register Sign In |