Started developing a survey plugin

2010-07-16 Thread TuteC
Hi all.

I've searched through the internet for a survey plugin for CakePHP,
but couldn't find a simple and modular one as a plugin has to be. So I
started developing one, and as I thought that someone else may find
this useful, I'm sending this email.

I'm releasing the code in http://github.com/tute/frage, and is now
being actively developed.

Kind regards,

Eugenio.

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

You received this message because you are subscribed to the Google Groups 
CakePHP group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en


change action to render on beforeRender()

2010-05-26 Thread TuteC
Hi all. I'd like to change the default action to render so as to check
if a customized one exists (so as to render page.eng.ctp instead of
page.ctp. So, if that file exists, I want to render it on
beforeRender(), like so:

function beforeRender() {
$locale = $this-Session-read('Config.language');
$file_path = VIEWS . $this-viewPath . DS . 
$this-passedArgs[0] . .
$locale.ctp;
if (file_exists($file_path)) {
$this-render($file_path);
}
}

Te problem is that render() calls beforeRender, and I begin an
infinite loop. Is there another way to replicate the behavior I want?
If not, should we have a render() which doesn't call beforeRender
(again), or an option so as to avoid it?

My quick-and-dirty fix consisted in a duplicated render() function
without that call, but I think a better fix would be great for
CakePHP.

Kind regards,

Eugenio.

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

You received this message because you are subscribed to the Google Groups 
CakePHP group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en


New simple attachment component

2009-07-07 Thread TuteC

Hello all!

As I didn't find any simple attachment component for CakePHP, I
started one, based on sabbour's code[2].

It encapsulates file upload and thumbnailing logic, so as to have a
clean controller handling files. It uses the file system, but I'll
improve it to also support DB uploads, so as to password protect them.

You can find it in:
http://github.com/tute/Thumbnail-component-for-CakePHP/

Any comment or suggestion, needless to say, is welcomed.

Best regards;

Tute.

[1] http://github.com/tute/Thumbnail-component-for-CakePHP/
[2] 
http://sabbour.wordpress.com/2008/07/18/enhanced-image-upload-component-for-cakephp-12/

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
CakePHP group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to 
cake-php+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---