[fw-general] Dinamicly created Menu question
First of all i would like to say hello to all of you guys. There is a question bothering me for some time now. While ago i have created a CMS where i allowed admin users to create a pages, menus, categories etc.. dinamicly. I would love to port all that ideas to Zend Framework env. Talking about ZF, as far as i know, to show a page to user, at list i need to have a controller and a view file. If i want to create a new menu/page using zend framework, how i can do that? I mean, i can make some nice form and i can create data and record it to some table, but what i am wondering about is how user can access to newly created menus an pages? FOr egzample, if i create a menu Test, and record all Test attributes (name, description, metatags etc..) in database, it is not a problem to fetch it from DB and to add it to existing menu tree. But what about content of this menu? I can create a field in table, name it content and assign it to this new Test. How to access this content on website? Do i have to create view file and controler TestController.php and proper action to show the dinamicly created content? The goal is to have a CMS where admin can create menus and content on the fly. I hope i was clear enough :) I would appreciate any advise here Vladd -- View this message in context: http://zend-framework-community.634137.n4.nabble.com/Dinamicly-created-Menu-question-tp3018527p3018527.html Sent from the Zend Framework mailing list archive at Nabble.com.
Re: [fw-general] Zend_Form, and Translation of Zend_Validator messages
Very nice, Thanks Christian. How can I participate to add my own languages (Persian, ir) to the resources? Kind regards, -behzad
Re: [fw-general] Dinamicly created Menu question
You might want to take a look at existing open-source CMSs built on ZF. Recite CMS looks promising: http://www.recitecms.com/ http://www.recitecms.com/There are more here: http://framework.zend.com/wiki/pages/viewpage.action?pageId=14134 -- *Hector Virgen* Sr. Web Developer http://www.virgentech.com On Thu, Oct 28, 2010 at 11:42 PM, vladimirn nezabor...@gmail.com wrote: First of all i would like to say hello to all of you guys. There is a question bothering me for some time now. While ago i have created a CMS where i allowed admin users to create a pages, menus, categories etc.. dinamicly. I would love to port all that ideas to Zend Framework env. Talking about ZF, as far as i know, to show a page to user, at list i need to have a controller and a view file. If i want to create a new menu/page using zend framework, how i can do that? I mean, i can make some nice form and i can create data and record it to some table, but what i am wondering about is how user can access to newly created menus an pages? FOr egzample, if i create a menu Test, and record all Test attributes (name, description, metatags etc..) in database, it is not a problem to fetch it from DB and to add it to existing menu tree. But what about content of this menu? I can create a field in table, name it content and assign it to this new Test. How to access this content on website? Do i have to create view file and controler TestController.php and proper action to show the dinamicly created content? The goal is to have a CMS where admin can create menus and content on the fly. I hope i was clear enough :) I would appreciate any advise here Vladd -- View this message in context: http://zend-framework-community.634137.n4.nabble.com/Dinamicly-created-Menu-question-tp3018527p3018527.html Sent from the Zend Framework mailing list archive at Nabble.com.
Re: [fw-general] Dinamicly created Menu question
Hey Hector, long time no see :) I did take a look on that- recitecms is not free or open source, and its decoded with ion cube. And per wiki pages, there is not anything decent here :) Thanks tho bro ! Hope someone will came up with idea how to create those things dinamcly :) On Fri, Oct 29, 2010 at 4:53 PM, Hector Virgen djvir...@gmail.com wrote: You might want to take a look at existing open-source CMSs built on ZF. Recite CMS looks promising: http://www.recitecms.com/ http://www.recitecms.com/There are more here: http://framework.zend.com/wiki/pages/viewpage.action?pageId=14134 -- *Hector Virgen* Sr. Web Developer http://www.virgentech.com On Thu, Oct 28, 2010 at 11:42 PM, vladimirn nezabor...@gmail.com wrote: First of all i would like to say hello to all of you guys. There is a question bothering me for some time now. While ago i have created a CMS where i allowed admin users to create a pages, menus, categories etc.. dinamicly. I would love to port all that ideas to Zend Framework env. Talking about ZF, as far as i know, to show a page to user, at list i need to have a controller and a view file. If i want to create a new menu/page using zend framework, how i can do that? I mean, i can make some nice form and i can create data and record it to some table, but what i am wondering about is how user can access to newly created menus an pages? FOr egzample, if i create a menu Test, and record all Test attributes (name, description, metatags etc..) in database, it is not a problem to fetch it from DB and to add it to existing menu tree. But what about content of this menu? I can create a field in table, name it content and assign it to this new Test. How to access this content on website? Do i have to create view file and controler TestController.php and proper action to show the dinamicly created content? The goal is to have a CMS where admin can create menus and content on the fly. I hope i was clear enough :) I would appreciate any advise here Vladd -- View this message in context: http://zend-framework-community.634137.n4.nabble.com/Dinamicly-created-Menu-question-tp3018527p3018527.html Sent from the Zend Framework mailing list archive at Nabble.com. -- Vladimir Nikolic ICQ: 354617889
Re: [fw-general] Dinamicly created Menu question
TomatoCMS is built on top of ZF. On 10/29/2010 11:05 AM, Vladimir Nikolic wrote: Hey Hector, long time no see :) I did take a look on that- recitecms is not free or open source, and its decoded with ion cube. And per wiki pages, there is not anything decent here :) Thanks tho bro ! Hope someone will came up with idea how to create those things dinamcly :) On Fri, Oct 29, 2010 at 4:53 PM, Hector Virgendjvir...@gmail.com wrote: You might want to take a look at existing open-source CMSs built on ZF. Recite CMS looks promising: http://www.recitecms.com/ http://www.recitecms.com/There are more here: http://framework.zend.com/wiki/pages/viewpage.action?pageId=14134 -- *Hector Virgen* Sr. Web Developer http://www.virgentech.com On Thu, Oct 28, 2010 at 11:42 PM, vladimirnnezabor...@gmail.com wrote: First of all i would like to say hello to all of you guys. There is a question bothering me for some time now. While ago i have created a CMS where i allowed admin users to create a pages, menus, categories etc.. dinamicly. I would love to port all that ideas to Zend Framework env. Talking about ZF, as far as i know, to show a page to user, at list i need to have a controller and a view file. If i want to create a new menu/page using zend framework, how i can do that? I mean, i can make some nice form and i can create data and record it to some table, but what i am wondering about is how user can access to newly created menus an pages? FOr egzample, if i create a menu Test, and record all Test attributes (name, description, metatags etc..) in database, it is not a problem to fetch it from DB and to add it to existing menu tree. But what about content of this menu? I can create a field in table, name it content and assign it to this new Test. How to access this content on website? Do i have to create view file and controler TestController.php and proper action to show the dinamicly created content? The goal is to have a CMS where admin can create menus and content on the fly. I hope i was clear enough :) I would appreciate any advise here Vladd -- View this message in context: http://zend-framework-community.634137.n4.nabble.com/Dinamicly-created-Menu-question-tp3018527p3018527.html Sent from the Zend Framework mailing list archive at Nabble.com.
Re: [fw-general] Dinamicly created Menu question
-- Hector Virgen djvir...@gmail.com wrote (on Friday, 29 October 2010, 07:53 AM -0700): You might want to take a look at existing open-source CMSs built on ZF. Recite CMS looks promising: http://www.recitecms.com/ http://www.recitecms.com/There are more here: http://framework.zend.com/wiki/pages/viewpage.action?pageId=14134 I've looked at each of TomatoCMS, PimCore, and Digitalus, and each is doing some interesting things, and all are at least _trying_ to do stuff within the application guidelines we set out in Zend_Tool and the manual. I can definitely recommend each of them. I haven't looked at Recite in any depth; I imagine the site licensing model may be a problem for some users, however. (How they enforce this without requiring registration is beyond me, though, which may make the licensing restriction moot.) On Thu, Oct 28, 2010 at 11:42 PM, vladimirn nezabor...@gmail.com wrote: First of all i would like to say hello to all of you guys. There is a question bothering me for some time now. While ago i have created a CMS where i allowed admin users to create a pages, menus, categories etc.. dinamicly. I would love to port all that ideas to Zend Framework env. Talking about ZF, as far as i know, to show a page to user, at list i need to have a controller and a view file. If i want to create a new menu/page using zend framework, how i can do that? I mean, i can make some nice form and i can create data and record it to some table, but what i am wondering about is how user can access to newly created menus an pages? FOr egzample, if i create a menu Test, and record all Test attributes (name, description, metatags etc..) in database, it is not a problem to fetch it from DB and to add it to existing menu tree. But what about content of this menu? I can create a field in table, name it content and assign it to this new Test. How to access this content on website? Do i have to create view file and controler TestController.php and proper action to show the dinamicly created content? The goal is to have a CMS where admin can create menus and content on the fly. I hope i was clear enough :) I would appreciate any advise here Vladd -- View this message in context: http://zend-framework-community.634137.n4.nabble.com/Dinamicly-created-Menu-question-tp3018527p3018527.html Sent from the Zend Framework mailing list archive at Nabble.com. -- Matthew Weier O'Phinney Project Lead| matt...@zend.com Zend Framework | http://framework.zend.com/ PGP key: http://framework.zend.com/zf-matthew-pgp-key.asc
Re: [fw-general] Dinamicly created Menu question
Well if you want to build this yourself I would look at doing a few things. One you could you use Zend_Navigation and have that pull from a Zend_Config object. Your admin could have a form that allows users to add to your menu, and on save, you save this data as a Zend_Config compatible xml, php array, yaml, json (than you Zf 1.11). You could also do something similar with creating pages that on save, add themselves to a config that is used in routing. Or you could have generic controller that handles database pages. Just make sure you have enough info saved in your datasource so that your generic controller can do what it needs to. For simple articles.. you can probably just store the article body in your pages table, and then even save what view script it should call. btw - its Dynamically :) On 10/29/2010 2:42 AM, vladimirn wrote: First of all i would like to say hello to all of you guys. There is a question bothering me for some time now. While ago i have created a CMS where i allowed admin users to create a pages, menus, categories etc.. dinamicly. I would love to port all that ideas to Zend Framework env. Talking about ZF, as far as i know, to show a page to user, at list i need to have a controller and a view file. If i want to create a new menu/page using zend framework, how i can do that? I mean, i can make some nice form and i can create data and record it to some table, but what i am wondering about is how user can access to newly created menus an pages? FOr egzample, if i create a menu Test, and record all Test attributes (name, description, metatags etc..) in database, it is not a problem to fetch it from DB and to add it to existing menu tree. But what about content of this menu? I can create a field in table, name it content and assign it to this new Test. How to access this content on website? Do i have to create view file and controler TestController.php and proper action to show the dinamicly created content? The goal is to have a CMS where admin can create menus and content on the fly. I hope i was clear enough :) I would appreciate any advise here Vladd
Re: [fw-general] MVC design question
You can probably place that common code in your preDispatch() hook: if ($article = $this-_request-getParam('article')) { // Load article and assign to view } -- *Hector Virgen* Sr. Web Developer http://www.virgentech.com On Fri, Oct 29, 2010 at 3:32 PM, debussy007 debussy...@gmail.com wrote: Hi, That's a recurring problem I have had for a long time : Let's say I have an action allowing to view an article, and an action allowing to edit an article. To setup the views, the code is the same for both actions (get the article id from GET parameter, fetch article, execute some checks, and other things). Only the view files are different, in the edit version, there is a form with input elements. I have here duplicated code. How would you handle this ? Thank you for any advice -- View this message in context: http://zend-framework-community.634137.n4.nabble.com/MVC-design-question-tp3019840p3019840.html Sent from the Zend Framework mailing list archive at Nabble.com.