Re: [fw-general] Zend_Form, and Translation of Zend_Validator messages

2010-10-29 Thread AmirBehzad Eslami
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

2010-10-29 Thread Hector Virgen
You might want to take a look at existing open-source CMSs built on ZF.
Recite CMS looks promising: 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  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

2010-10-29 Thread Vladimir Nikolic
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  wrote:

> You might want to take a look at existing open-source CMSs built on ZF.
> Recite CMS looks promising: 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  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

2010-10-29 Thread Paul

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 Virgen  wrote:


You might want to take a look at existing open-source CMSs built on ZF.
Recite CMS looks promising: 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  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

2010-10-29 Thread Matthew Weier O'Phinney
-- Hector Virgen  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/
> 
> 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  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

2010-10-29 Thread Andreas Möller
Hello Vladimir,


> Hope someone will came up with idea how to create those things dinamcly :)

Some thoughts:

One possibility would be to provide a CRUD interface for modules, controllers 
contained in these modules, actions contained in these controllers and 
corresponding views. Then, you could actually create these modules, controllers 
and views (which is not that hard as you can use the Zend_CodeGenerator 
package. Problems arise when changes are made to file system and 
synchronization is required (someone modifies a module, the contained 
controllers or views)

Another possibility would be to not create modules, controllers and actions as 
files, but to use a plugin that checks whether you have content associated with 
the current request, then modify the request object accordingly (for example, 
to call the "show" action of a "page" controller with the corresponding 
identifier. Difficulties arise, though, if you have a module, controller and 
action for the request, but also a matching URL your dynamic content.

For both, you'll need to provide a CRUD interface for navigation and access 
control lists.


Best regards,

Andreas

Re: [fw-general] Dinamicly created Menu question

2010-10-29 Thread Paul

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


[fw-general] MVC design question

2010-10-29 Thread debussy007

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.


Re: [fw-general] MVC design question

2010-10-29 Thread Hector Virgen
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  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.
>