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

[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

Severity: Notice

Message: Undefined property: Controller::$template

Filename: controllers/controller.php

Line Number: 16

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.
#2

[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
#3

[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
Cannot find spark path at sparks/template/1.7/

Furthermore, I can see that the folder structure is:
Quote:*CodeIgniter*/sparks/template/v1.7
so 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

Due to a heavy increase of spam within our community, the privilege of being able to add links to content is currently reserved for active community members and those who have purchased our software.
#4

[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
#5

[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.
#6

[eluser]InsiteFX[/eluser]
Phil's Template Library doe's not use that, You build your own template.
Phil uses the Dwoo

And your link doe's not work!

InsiteFX
#7

[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 Undecided

PS: I fixed the 'link'
#8

[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
#9

[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

Due to a heavy increase of spam within our community, the privilege of being able to add links to content is currently reserved for active community members and those who have purchased our software.
[/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.
#10

[eluser]guidorossi[/eluser]
In the Curl spark documentation say that you need to load it like

Code:
$this->load->spark('curl/1.0');
        
$this->curl->create('http://www.example.com');

But in order to work I needed to load it like:

Code:
$this->load->spark('curl/1.0');
$this->load->library('curl');
        
$this->curl->create('http://www.example.com');

So, maybe you need to also load it like a library...




Theme © iAndrew 2016 - Forum software by © MyBB