Code Monkey home page Code Monkey logo

Comments (8)

schmunk42 avatar schmunk42 commented on September 28, 2024

Can you post some more information how you included the package and about the error.

Maybe the root cause of the problem is, that currently Phundament is not using the composer autoloader by default?!

Can you try requiring the autoloader in your index.php, like:

require '../vendor/autoload.php';

http://getcomposer.org/doc/01-basic-usage.md#autoloading

from app.

anu111 avatar anu111 commented on September 28, 2024

I installed the package from command "php composer.phar require zorbus/poll-bundle".and trying to include in

app/config main.php file by giving path to (ZorbusPollBundle.php ).then it is showing the error.If i am wrong in

including package can you guide me more on this..thanks

from app.

schmunk42 avatar schmunk42 commented on September 28, 2024

As mentioned above you'll have to include the composer autoloader, I just added it per default in this commit.

Then load the bundle just by adding this line to SiteController.php in actionIndex:

$bundle = new \Zorbus\PollBundle\ZorbusPollBundle();

Works for me, please let me know if this fixes your issue.
Thank you for reporting!

from app.

anu111 avatar anu111 commented on September 28, 2024

still showing this error
Fatal error: Cannot redeclare class Zorbus\PollBundle\ZorbusPollBundle in C:\xampp\htdocs\heroenergies\vendor\zorbus\poll-bundle\Zorbus\PollBundle\ZorbusPollBundle.php on line 9

@schmunk42 i want to add comments/blog/poll package to my project...and want to show it in the overlay

dropdown.

At present i am totally stuck with how to use these packages in my current project.Can you please help me with

some guide as how to use these packages and call in dropdown of overlay.

from app.

schmunk42 avatar schmunk42 commented on September 28, 2024

You don't have to require() it, when using composer autoloader.

Sorry, I have no experience with this package.

from app.

anu111 avatar anu111 commented on September 28, 2024

How to add blog and add a feature of comment on blog in my project.is that i have to code my own or phundament

has this property as package or widget.

from app.

schmunk42 avatar schmunk42 commented on September 28, 2024

Phundament itself is just a collection of Yii extensions.

And luckily there are comment extensions available, such as:

I also registered them at http://packages.phundament.com but the server has some problems connecting to github at the moment - we're investigating the issue. But you'll be able to get them via composer.
You can download them manually in the meantime, should be sufficient just to reconfigure the aliases later on.

Follow the instructions how to configure the extension.
Note: I haven't tried any of those yet. And I don't know about a blog module, maybe you can ask in the Yii forum.

from app.

schmunk42 avatar schmunk42 commented on September 28, 2024

Comment modules mentioned above now available from http://packages.phundament.com

from app.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.