Welcome Guest, Not a member yet? Register   Sign In
Sparks - Installing and Testing
#1

[eluser]Unknown[/eluser]
Attempting to install and test Sparks.

Actions to date:-

1. Installed fresh copy of codeigniter - Welcome page works as expected.

2. Installed Sparks as per manual instructions.

3. Used welcome.php as template for examplesparks.php as shown below,

Code:
class Examplesparks extends CI_Controller {

public function index()
{
            echo "In controller examplesparks, public function index";
            $this->load->spark('example-spark/1.0.0'); # Don't forget to add the version!
            $this->example_spark->printHello(); # echo's "Hello from the example spark!"
        }
}

The echo function confirms that the index function is being invoked but the browser response to:
http://localhost/ci/index.php/examplesparks
is:
Cannot find spark path at sparks/example-spark/1.0.0/

Advice as to what I am doing incorrectly would be appreciated.

Thank you.
#2

[eluser]ArsMagnaTutorials[/eluser]
You need to post this in the correct section
#3

[eluser]Unknown[/eluser]
Problem solved by using Spark Manager rather than Sparks Manual procedure. Resulting file structures look identical so a mystery as to why it works one way and not the other.




Theme © iAndrew 2016 - Forum software by © MyBB