What is CI-CMS

CI-CMS is a Codeigniter Content Managment System. This is a combination of my primary concept of how to create a CMS and the ease from Codeigniter. I already created a personal CMS called Solaitra, that I use in many sites now (around 50), and I just want to transport that in CI framework.
Solaitra is a very easy modular CMS, it has many modules such as pages, news, forum, gallery, downloads, quotes, guestbook etc. I just need to port those modules to work in CI and the result will be CI-CMS.

lunedì 2 giugno 2008

Settings table structure has been changed

The table 'settings' has been now changed to accept other values from other modules.

This is now the structure:

CREATE TABLE `ci_settings` (
`id` tinyint(4) NOT NULL auto_increment,
`name` varchar(255) NOT NULL default '',
`value` text NOT NULL,
PRIMARY KEY (`id`),
KEY `name` (`name`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=8 ;

--
-- Dump dei dati per la tabella `ci_settings`
--

INSERT INTO `ci_settings` VALUES (1, 'site_name', 'Codeigniter CMS');
INSERT INTO `ci_settings` VALUES (2, 'meta_keywords', 'CMS, CodeIgniter');
INSERT INTO `ci_settings` VALUES (3, 'meta_description', 'Yet another CMS with Codeigniter');
INSERT INTO `ci_settings` VALUES (4, 'cache', '0');
INSERT INTO `ci_settings` VALUES (5, 'cache_time', '300');
INSERT INTO `ci_settings` VALUES (6, 'theme', 'default');
INSERT INTO `ci_settings` VALUES (7, 'template', 'index');


Appart from that, another method was added in the System class which gets info from settings. The method adds or updates values into the settings table.

system->set($name, $value);