[Agavi-Users] CMS Sample App

20 views
Skip to first unread message

Veikko Mäkinen

unread,
Mar 28, 2007, 4:43:42 PM3/28/07
to Agavi Users Mailing List

Due to a demand of Agavi sample code I promised to publish a small
project of mine. It's a stub of a simple CMS system put together with
Agavi (0.11-DEV r1865) and Propel. It uses RBAC user, translation,
routing with custom callbacks and Propel's nested sets. Hence it should
give a bit more than the default Agavi Sample App.

You can download the project from http://veikko.fi/temp/cms.zip.

Files are organized as follows:
/app = application code
/pub = public html/css/js/images
/libs = agavi and propel
/dev = development files, not needed at runtime

I've bundled an sqlite3 database (in /app/data/) so if you have
PDO_SQLITE enabled you should be able to plug and play. Otherwise use
the sql ddl from /dev/db/sql/ and modify db parameters in
/app/config/cms-config.php. To log in go to localhost/admin/ and type
"admin"/"foo".

THIS IS NOT A FULLY FUNCTIONAL APPLICATION but most visible features
should work. I hope it helps new people to get on with Agavi but I also
would like to get feedback from others (this is the only code-review I
can have as I work alone with this project :)

Feedback and questions are welcome via this list, in #agavi
(irc.freenode.net) or as a private message.


-veikko


_______________________________________________
users mailing list
us...@lists.agavi.org
http://lists.agavi.org/mailman/listinfo/users

David Zülke

unread,
Mar 28, 2007, 8:14:30 PM3/28/07
to Agavi Users Mailing List
Fantastic, mate, thank you so much. I'll have a look as soon as I can


- David

epaulin

unread,
Mar 28, 2007, 8:20:37 PM3/28/07
to Agavi Users Mailing List
On 3/29/07, David Zülke <d...@bitxtender.com> wrote:
> Fantastic, mate, thank you so much. I'll have a look as soon as I can
>

I just finish reading the code.

tnx, v-dogg.

--
Regards,
epaulin

Van Daele, Koen

unread,
Mar 29, 2007, 4:51:07 AM3/29/07
to Agavi Users Mailing List
Thanks for the code. I've been looking at it and it looks good. You seem to be doing the basic stuff the same way I do it. I think it'll be especially helpful to people who are completely new to agavi.

Koen

> -----Oorspronkelijk bericht-----
> Van: users-...@lists.agavi.org
> [mailto:users-...@lists.agavi.org] Namens Veikko Mäkinen
> Verzonden: woensdag 28 maart 2007 22:44
> Aan: Agavi Users Mailing List
> Onderwerp: [Agavi-Users] CMS Sample App

Veikko Mäkinen

unread,
Apr 1, 2007, 12:52:23 PM4/1/07
to Agavi Users Mailing List
Veikko Mäkinen kirjoitti:

> Due to a demand of Agavi sample code I promised to publish a small
> project of mine. It's a stub of a simple CMS system put together with
> Agavi (0.11-DEV r1865) and Propel. It uses RBAC user, translation,
> routing with custom callbacks and Propel's nested sets. Hence it should
> give a bit more than the default Agavi Sample App.
>
> You can download the project from http://veikko.fi/temp/cms.zip.
>

I've updated the package to the most recent version of my project. I've
added most of the missing functionality (user management, better UI) and
refactored some parts a bit. This application now demonstrates (among
many other things) custom credential loading w/ RBAC user,
datetimevalidator (very simple example), module autoload.xml and lots of
Propel stuff.

Obvious design flaws
=====================
- Locales Fi, Sv and En are now hard-coded in Admin stuff. It would be
trivial to refactor the code to enable use of any 1-n languages.
- Page.New/.Modify and Users.New/.Modify could probably share more. They
are almost identical anyway.
- pre-population of roles, parents and others could be moved to View, I
guess

Now, everyone, feedback please :)

Reply all
Reply to author
Forward
0 new messages