Welcome Guest, Not a member yet? Register   Sign In
Start to build a program together
#1

[eluser]Mahyar Ss[/eluser]
hi friends,
im new CI user,

so trying learn how can i work that and understand somedeal...
but i cant find suitable method for somethings to do!
i want to make simple modular cms with multi templates ability so can use parser to get "site info": site name, site description &... and load to view template:

<title>{site-name}</title>

can i use this method for load all part of site together?
use {...} to load modules, menus...

i have list of module blocks in db table
how can i get this modules from modules folder and load into view template following :

<div class="content">

<div class="r-content">
{right-blocks}
</div>

<div class="c-content">
{center-blocks}
</div>

<div class="l-content">
{left-blocks}
</div>

</div>

//in template.php

for example:
{center-block} Composed of 3 block today news(news module), some text(content module), new image (image module)

or for menus from db menu table:

<div class="menu">
{menus}
</div>

please tell me best method

In addition, about design structure & pattern
Write a comment

aplication
-|controllers
-|componnents
-|libraries
-|plugins
-|models
-|modules
--|mod_name
---|tmpl
-|view(templates)

Tanx


Messages In This Thread
Start to build a program together - by El Forum - 12-14-2009, 05:31 PM
Start to build a program together - by El Forum - 12-14-2009, 07:40 PM
Start to build a program together - by El Forum - 12-14-2009, 07:59 PM
Start to build a program together - by El Forum - 12-16-2009, 02:38 PM



Theme © iAndrew 2016 - Forum software by © MyBB