dev-master
9999999-dev https://github.com/samsonasik/SanAlbumPaginationWithAjaxZF2 Module that utilize Sample of Ajax in Album module using ViewJsonStrategy.
MIT
The Requires
- php >=5.3.3
- rwoverdijk/assetmanager 1.*
ajax zf2 album
ZF2 Module that utilize Sample of Ajax in Album module using ViewJsonStrategy.
~ Import Sql dump to your database, (*1)
-- -- Table structure for table `album` -- DROP TABLE IF EXISTS `album`; CREATE TABLE IF NOT EXISTS `album` ( `id` bigint(20) NOT NULL AUTO_INCREMENT, `artist` varchar(255) NOT NULL, `title` varchar(255) NOT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ; -- -- Dumping data for table `album` -- INSERT INTO `album` (`id`, `artist`, `title`) VALUES (1, 'Bruno Mars', 'Gotex'), (2, 'Syahrini', 'Membahana'), (3, 'Justin Timberlake', 'Love');
~ Require it via composer command, (*2)
composer require san/san-album-pagination-with-ajax
~ Register to your config/application.config.php, (*3)
return array( 'modules' => array( 'AssetManager', 'Application', 'SanAlbumPaginationWithAjax' ), 'module_listener_options' => array( 'module_paths' => array( './module', './vendor', ), 'config_glob_paths' => array('config/autoload/{,*.}{global,local}.php') ) );
It will automatically install ZF2 AssetManager module, no need to install manually, or move js file into public folder., (*4)
http://yourzf2app/albumajax, (*5)
ZF2 Module that utilize Sample of Ajax in Album module using ViewJsonStrategy.
MIT
ajax zf2 album