TaskBundle of AWHSPanel This package provides a basic system for managing tasks in the background.
- Have installed the foundation
- Have installed the UserBundle
- Clone this bundle inside
src/AWHS/
directory. - Enable the bundle in the kernel by adding the following line right after
//AWHS Bundles
inapp/AppKernel.php
file:
new AWHS\TaskBundle\AWHSTaskBundle(),
- Append the following configuration to the
app/routing.yml
file:
awhs_task:
resource: "@AWHSTaskBundle/Resources/config/routing.yml"
prefix: /
- Add the following code to the
src/AWHS/UserBundle/Entity/User.php
file:
/**
* @ORM\OneToMany(targetEntity="AWHS\TaskBundle\Entity\Task", mappedBy="user")
* @ORM\OrderBy({"id" = "DESC"})
*/
private $tasks;
/**
* Get tasks
*
* @return \Doctrine\Common\Collections\Collection
*/
public function getTasks()
{
return $this->tasks;
}
- Update database & clear cache:
php bin/console doctrine:schema:update --force; php bin/console cache:clear; php bin/console cache:clear --env=prod
You may have to set permissions back to www-datachown -R www-data:www-data /usr/local/awhspanel/panel/*
- Load data fixtures:
php bin/console doctrine:fixtures:load --fixtures=src/AWHS/TaskBundle/DataFixtures/ORM --append
- Multilingual
- Refactoring old code.
taskbundle's People
taskbundle's Issues
DataFixtures
Bonjour,
Il manque DataFixtures/ORM
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.