Comments (8)
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.
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.
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.
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.
You don't have to require() it, when using composer autoloader.
Sorry, I have no experience with this package.
from app.
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.
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.
Comment modules mentioned above now available from http://packages.phundament.com
from app.
Related Issues (20)
- Error when access: sh: 1: lessc: not found HOT 4
- Error 255: require(/app/src/config/assets-gen/prod.php): failed to open stream HOT 6
- ..
- Unable to get successful install HOT 5
- Can't connect to mariaDB HOT 18
- Phundament with postgres db. HOT 11
- Errors from __DIR__ in class variable initialization HOT 5
- Use net instead of link HOT 3
- No interactive mode for docker-compose on Windows HOT 1
- Phundament update HOT 1
- Permission issues with GitLab runner HOT 8
- Cleaner way to override admin layout for user module HOT 2
- Error parsing reference: local/phd/app: is not a valid repository/tag HOT 13
- volume mount windows info HOT 1
- cron can't access db HOT 1
- Codeception update HOT 1
- composer.lock OR versions. HOT 7
- QUestion about setup.sh HOT 3
- Unfortunately MyApp has stopped. How can I solve this? HOT 1
- Broken link to here for Yii 1 - composer setup
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from app.