Guidence for your MVC structure to build new functionality
-
- Posts: 4
- Joined: Mon Oct 15, 2012 12:54 pm
Guidence for your MVC structure to build new functionality
Hi brent and leo
i want to know your MVC structure to build my own functionality in CMS
can you give some idea or brief
my concept is to add menu with submenu CMS->pages
2 fields are there title and content so i want to do CRUD in admin and display that content at front
please give me such kind of coding information to do more work for you
i will donate all my functionality to make your CMS more functionaly as people suggestion as free of cost
waiting for your response
thanks
Prashant
i want to know your MVC structure to build my own functionality in CMS
can you give some idea or brief
my concept is to add menu with submenu CMS->pages
2 fields are there title and content so i want to do CRUD in admin and display that content at front
please give me such kind of coding information to do more work for you
i will donate all my functionality to make your CMS more functionaly as people suggestion as free of cost
waiting for your response
thanks
Prashant
Re: Guidence for your MVC structure to build new functionali
I'm not sure I understand what you want to do.
Could you explain in a little more detail.
Could you explain in a little more detail.
-
- Posts: 4
- Joined: Mon Oct 15, 2012 12:54 pm
Re: Guidence for your MVC structure to build new functionali
Yes sure
i want to create new menu call CMS with submenu pages
when admin can click on pages he can able to fill form which have 2 fileds title and content
i want functionality add update delete and save with this new concept
and also want the content will be show at front end
so what necessory files i want to create and how i complete this at myside
i hope you getting me
thanks
prashant
i want to create new menu call CMS with submenu pages
when admin can click on pages he can able to fill form which have 2 fileds title and content
i want functionality add update delete and save with this new concept
and also want the content will be show at front end
so what necessory files i want to create and how i complete this at myside
i hope you getting me
thanks
prashant
Re: Guidence for your MVC structure to build new functionali
We think what you want is something like the Home Page Module. Have a look at that in admin.
Image Display is also similar, but only displays images.
You can get the basic functionality from these 2 modules and probably combine that Home Page text handling with the locate ability of Image Display Module.
After creating the Admin side, and making an entry, You would just include in the Template manager. You would also have to add information in the Template Manager for the new CMS controller.
You would then create the catalog files to actually display this content, again using the Home Page module and or the Image Display module for examples.
The home page module is designed to be only shown on the home page. The image display can be used on any page and in many locations on the page.
Image Display is also similar, but only displays images.
You can get the basic functionality from these 2 modules and probably combine that Home Page text handling with the locate ability of Image Display Module.
After creating the Admin side, and making an entry, You would just include in the Template manager. You would also have to add information in the Template Manager for the new CMS controller.
You would then create the catalog files to actually display this content, again using the Home Page module and or the Image Display module for examples.
The home page module is designed to be only shown on the home page. The image display can be used on any page and in many locations on the page.
-
- Posts: 4
- Joined: Mon Oct 15, 2012 12:54 pm
Re: Guidence for your MVC structure to build new functionali
Hi
thanks for your response at every time
if you create one of development guide with small example and share with us..thats very better for developers
well todays my problem is i am updating my cms page but its not updated in database
can you guide me how can i check the update query is right or wrong with assign parameters?
function update_static_page(){
$sql = "update cms set cms_title = '?', cms_content = '?', date_modified = now() where cms_id = '?'";
$this->database->query($this->database->parse($sql, $this->request->gethtml('cms_title', 'post'), $this->request->gethtml('cms_content', 'post'), $this->request->gethtml('cms_id')));
}
is my function in model
thanks again
prashant
thanks for your response at every time
if you create one of development guide with small example and share with us..thats very better for developers
well todays my problem is i am updating my cms page but its not updated in database
can you guide me how can i check the update query is right or wrong with assign parameters?
function update_static_page(){
$sql = "update cms set cms_title = '?', cms_content = '?', date_modified = now() where cms_id = '?'";
$this->database->query($this->database->parse($sql, $this->request->gethtml('cms_title', 'post'), $this->request->gethtml('cms_content', 'post'), $this->request->gethtml('cms_id')));
}
is my function in model
thanks again
prashant
Re: Guidence for your MVC structure to build new functionali
Please, share with us the structure of your cms table as well.
-
- Posts: 4
- Joined: Mon Oct 15, 2012 12:54 pm
Re: Guidence for your MVC structure to build new functionali
Hi
Thanks that issue is resolved now tell me how can i get path of image
i have tried to give manual path like c:/wamp/alegrocart/image/
but its not working
one more question can i call more than one model in controller?
thanks
prashant
Thanks that issue is resolved now tell me how can i get path of image
i have tried to give manual path like c:/wamp/alegrocart/image/
but its not working
one more question can i call more than one model in controller?
thanks
prashant
Re: Guidence for your MVC structure to build new functionali
You you show the code how you are trying to access the image?
You might just try /image/.
Yes, you can reference more than one model. Look at the catalog/controller/category.
both model_products and model_category are referenced.
You might just try /image/.
Yes, you can reference more than one model. Look at the catalog/controller/category.
both model_products and model_category are referenced.