Commits

Bogdan Savluk committed a253293

Readme, and clean database.

Comments (0)

Files changed (2)

+Sceleton for new Yii framework application with CMS.
+====================================================
+
+Setup instructions:
+
+1. Checkout source code
+2. Import mysql database from dump in testapp/protected/data/database.sql
+3. Copy testapp/protected/config/main.php.dist to testapp/protected/config/main.php and change database connection settings in it.
+4. Make testapp/assets, testapp/gallery, testapp/uploads, testapp/protected/runtime directories writable for web server process.
+5. Setup virtual host for testapp directory(I have tested on local domain: testcms.tmp).
+6. Enter correct path to Yii Framework (tested with 1.1.10) in index html
+7. Test it: http://testcms.pmp/admin (login/password: admin/password, developer/password)
+

testapp/protected/data/database.sql

 -- http://www.phpmyadmin.net
 --
 -- Host: 127.0.0.1
--- Generation Time: Jul 08, 2012 at 02:26 AM
+-- Generation Time: Jul 08, 2012 at 02:49 AM
 -- Server version: 5.5.19
 -- PHP Version: 5.3.12
 
   KEY `fk_gallery_photo_gallery1` (`gallery_id`)
 ) ENGINE=InnoDB  DEFAULT CHARSET=utf8 AUTO_INCREMENT=488 ;
 
---
--- Dumping data for table `gallery_photo`
---
-
-INSERT INTO `gallery_photo` (`id`, `gallery_id`, `rank`, `name`, `description`, `file_name`) VALUES
-(384, 2, 431, 'Antarctic Sunset', 'An Antarctic Sunset, photo taken by Calee Allen on April 6th, 2021.', 'BestHDWallpapersPack622_2.jpg'),
-(385, 2, 410, 'Flower!', 'An Antarctic Sunset', 'BestHDWallpapersPack622_4.jpg'),
-(387, 2, 438, 'Diablo', 'Screenshot from splash screen of new game.', 'BestHDWallpapersPack622_7.jpg'),
-(388, 2, 412, 'Cats!', 'An Antarctic Sunset, photo taken by Calee Allen on April 6th, 2008,photo taken by Calee.', 'BestHDWallpapersPack622_6.jpg'),
-(400, 2, 409, 'Kawai!', '', 'BestHDWallpapersPack622_9.jpg'),
-(409, 2, 416, '=)', 'One more smile!', 'BestHDWallpapersPack622_37.jpg'),
-(438, 2, 441, 'Mac OS Lion', '', 'BestHDWallpapersPack622_83.jpg'),
-(439, 2, 439, 'Rally', 'Blue car on grayscale race', 'BestHDWallpapersPack622_84.jpg'),
-(441, 2, 446, 'Butterfly', '', 'BestHDWallpapersPack622_86.jpg'),
-(446, 2, 384, 'Картопля', '', 'BestHDWallpapersPack622_71.jpg'),
-(448, 2, 469, 'One more flower', '', 'BestHDWallpapersPack622_4.jpg'),
-(469, 2, 478, 'Персики', 'Чотири персика в тарілці', 'BestHDWallpapersPack622_44.jpg'),
-(470, 2, 400, 'Cat!', 'More cats', 'BestHDWallpapersPack622_45.jpg'),
-(485, 2, 485, '', '', 'BestHDWallpapersPack622_47.jpg');
-
 -- --------------------------------------------------------
 
 --
 --
 
 INSERT INTO `page` (`id`, `link`, `name`, `content`, `title`, `description`, `keywords`, `projects_list`) VALUES
-(1, 'test1', 'Тестовая страница', '<p>Test content</p>', '', '', '', '');
+(1, 'test1', 'Тестовая страница', '<p>Test content</p>', '', '', '', '1,2');
 
 -- --------------------------------------------------------
 
 ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
 
 --
--- Dumping data for table `static_page`
---
-
---
 -- Constraints for dumped tables
 --