8000 GitHub - kacinskas/jsondatasource: CakePHP Newsreaders plugin with Json Datasource
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

kacinskas/jsondatasource

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

CakePHP Newsreaders plugin with Json Datasource

What is this?
Requirements was to create app for news subscribsion and store data in file, not DB.
So this is result of my 1.5 days of learning CakePHP - created plugin there subscribers list is stored in JSON file

Whats inside?
I took this Array Datasource and modified to work with JSON
Visitor can subscribe for news
Subscribers and news list are stored in JSON file
Administrator can login (admin/admin) and manage subscribers

There is still a lot to do..
Make bulletproof Jsondatasorce class
Adapt data relationship
Add some dynamics with JavaScript and Ajax for input validation and submit
Add some custom styling
Add more functions (unsubscribe, change news chanels, mailing and etc.) This is endless list :)
Do more testing

How to try?
To try please login with admin/admin

How to setup?
Copy to your CakePHP app plugins dir
Add data source config to your app database.cfg:
public $json = array(
		'datasource' => 'Newsreaders.JsonSource',
		'encoding' => 'utf8',
		'login' => 'user',
		'password' => 'password',
//		'persistent' => false,
		'database' => 'jsondata.json',
//		'prefix' => '',
		'host' => 'localhost',
	);

About

CakePHP Newsreaders plugin with Json Datasource

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published
0