1. Go to this page and download the library: Download tpg/extjs-bundle library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
tpg / extjs-bundle example snippets
php
// app/AppKernel.php
public function registerBundles()
{
$bundles = array(
// ...
new JMS\SerializerBundle\JMSSerializerBundle(),
new \Tpg\ExtjsBundle\TpgExtjsBundle(),
);
}
php
public function testRequestParamAction(Symfony\Component\HttpFoundation\Request $request) {
$idResult = $request->query->get("id");
$nameResult = $request->query->get("name");
}
php
new \JMS\SerializerBundle\JMSSerializerBundle(),
new \FOS\RestBundle\FOSRestBundle(),
php
// in file Acme\TestBundle\Entity\Car.php
/**
* @Extjs\Model
* @Extjs\ModelProxy("/api/cars")
* @ORM\Entity
* @ORM\Table(name="car")
*/
class Car {
...
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.