AngularJS Sample Code for get MySql data using PHP



HTML is great for declaring static documents, but it falters when we try to use it for declaring dynamic views in web-applications. AngularJS lets you extend HTML vocabulary for your application. The resulting environment is extraordinarily expressive, readable, and quick to develop. You are now ready to build the AngularJS simple app with MVC design pattern.

Create a table and insert some values.

MYSQL Query:


  `pid` int(11) NOT NULL AUTO_INCREMENT,

  `title` varchar(255) NOT NULL,

  `pcode` varchar(15) NOT NULL,

  `type` varchar(255) NOT NULL,

  `proj_type` varchar(100) NOT NULL, 

  PRIMARY KEY (`pid`)


INSERT INTO `tbl_projects` (`pid`, `title`, `pcode`, `type`, `proj_type`, `created_dt`, `created_by`, `updated_dt`, `updated_bt`) VALUES

(1, ‘Product’, ‘RR_PD’, ‘Web Apps’, ‘External’, ‘2014-07-16 20:09:47’, 1, ‘2014-07-18 19:05:36’, NULL),

(2, ‘WorkE’, ‘RT_WTNE’, ‘Mobile Apps’, ‘Internal’, ‘2014-07-16 20:10:46’, 1, ‘2014-07-18 19:05:43’, NULL),

(6, ‘SolutionBee’, ‘RJ_RTSB’, ‘Web…

View original post 421 more words

drupal 8 disable twig cache, drupal 8 twig template cache disable, drupal twig debug


– twig settings:

– go to /sites/default/services.yml and set config to:

debug: true
auto_reload: true
cache: false

P.S. `debug` is optional here. If `true` it provides additional information. To see that information go to source code of the page.

* IMPORTANT NOTE: By default, Drupal caches any rendering it performs for blocks and entities, to speed up subsequent page loads. This means that changes to Twig templates for these will not take effect immediately. There is no way to disable this currently (8.0.0-beta9), maybe they will fix it in future releases.

View original post

What’s new in Drupal 8 and how you can contribute

Ashwini Kumar

Hey all now days Drupal community are very hard at work in developing Drupal 8 . If you are passionate about Drupal and want to contribute to Drupal 8 and not finding any source to start then this is blog can help you.

What we will cover in this blog :-

  1. How to take Drupal 8 stable core to your local machine and start developing with it .
  2. What’s new in Drupal 8 ?
  3. Some explanation of changes with code.

Below are the steps to setup Drupal 8 stable core to local machine . I am hoping you have GIT installed in your machine .

  1. git clone --branch 7.x
  2. cd drupal
  3. git checkout 8.x

If you want to go back to your D7 version just do ” git checkout 7.x ” . For updating your Drupal 8 core do “git pull ” . It will update your Drupal…

View original post 291 more words