CrmBundle of AWHSPanel This package provides a basic ticket system.
- 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\CrmBundle\AWHSCrmBundle(),
- Append the following configuration to the
app/config.yml
file:
#CrmBundle bbcode formatter
fm_bbcode:
filter_sets:
default:
strict: false # if you want to parse attr values without quotes
locale: ru
xhtml: true
filters: [ default, block, code, email, image, list, quote, text, url ]
- Append the following configuration to the
app/routing.yml
file:
awhs_crm:
resource: "@AWHSCrmBundle/Resources/config/routing.yml"
prefix: /
- Add the following code to the
src/AWHS/UserBundle/Entity/User.php
file:
/**
* @ORM\OneToMany(targetEntity="AWHS\CrmBundle\Entity\Ticket", mappedBy="author")
* @ORM\OrderBy({"id" = "DESC"})
*/
private $tickets;
/**
* Get tickets
*
* @return \Doctrine\Common\Collections\Collection
*/
public function getTickets()
{
return $this->tickets;
}
- 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/CrmBundle/DataFixtures/ORM --append
- Multilingual
- Add category dropdown to choose when creating a ticket.
- Refactoring old code.