Skip to content
This repository was archived by the owner on Sep 1, 2020. It is now read-only.
This repository was archived by the owner on Sep 1, 2020. It is now read-only.

cant include the loader #68

Closed
Closed

Description

@saiballo

Hello,

I use last version of dwoo (1.3) but I can't include the php class. I use an example like this:

// Include the main class, the rest will be automatically loaded
require './lib/Dwoo/Loader.php';

// Create the controller, it is reusable and can render multiple templates
$core = new Dwoo\Core();

// Create some data
$data = array('a'=>5, 'b'=>6);

// Output the result
echo $core->get('index.tpl', $data);

but I had an error: Fatal error: Interface 'Dwoo\ILoader' not found

How can I install last version of dwoo?
I don't use composer

thank you

Activity

  1. saiballo commented on Jun 26, 2017

    @saiballo
    Author

    I haven't file 'autoload.php'...

  2. emulienfou commented on Jun 26, 2017

    @emulienfou
    Contributor

    Hi @saiballo, FYI the Loader class is used to Handles plugin loading and caching of plugins names/paths relationships.

    To use Dwoo, you have to follow this documentation: http://dwoo.org/documentation/v1.3/getting-started.html

    If you have already an autoload system, use it to load Dwoo classes, otherwise use Composer.

  3. saiballo commented on Jun 26, 2017

    @saiballo
    Author

    Hi,

    in the documentation you say:

    "
    // Include the main class, the rest will be automatically loaded
    require 'vendor/autoload.php';
    "

    ok, I have download last version of dwoo... the path and the file "vendor/autoloadphp" does not exsist.

  4. emulienfou commented on Jun 26, 2017

    @emulienfou
    Contributor

    You need to use composer, it will generate the vendor/autoload.php file for you!

    You have to do something like:

    php composer.phar install
    
  5. emulienfou commented on Jun 26, 2017

    @emulienfou
    Contributor

    If you don't want to use composer, you need to include/require all files manually such as:

    require './lib/Dwoo/Core.php';
    require ...
    
  6. saiballo commented on Jun 27, 2017

    @saiballo
    Author

    ok, I resolve using composer. thank you

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions