Re: Defining Plugin

2013-10-27 Thread Ed Propsner
You're absolutely right, I was definitely confusing the two. I suppose that I'm so used to referencing the plugin as camel-case everywhere else within the app and since functions are camel-case and they are referenced as such in the URL, it wasn't a far stretch to make the mistake of constructing m

Saving CakeEmail output to .eml

2013-10-27 Thread Reuben
Hi I have a client requirement to save generated emails to disk, as well as send them. I can see that the CakeEmail::send() function returns an array, holding the headers and the message. Has anyone had any experience in saving this data to an .eml file, or any other client email file format,

Re: Defining Plugin

2013-10-27 Thread euromark
Yes, I guess you have been creating non-conventional links so far. Mainly because you are confusing framework internal naming schemes with URL naming scheme The latter defines everything underscore_lowercased, even the plugin. The first refers mainly to classes, which will always be named CamelCa

Re: Defining Plugin

2013-10-27 Thread Reuben
I've never used pagination for a plugin in before, but I'm guessing specifying the plugin for the model would be required. i.e. $this->paginator->sort('username', 'Username', array('model'=>'SomePlugin.Model')); Though I guess with doing that, there would have to be an assumption that the mode

Re: Defining Plugin

2013-10-27 Thread CrotchFrog
I did find one place so far that this problem with plugin names is creating an issue whereas I feel that it should not be. Working with a table (in a plugin) I define a heading as *$this->paginator->sort('username', 'Username'); *which in turn creates the link as Username which seems just fi

Re: Reutilizable App, How to?

2013-10-27 Thread Vinicius Dusso
Hey Mark, thanks for your reply! By 'copy-and-paste', I meant when I need to create a new project, so I would only copy-and-paste this customized Plugin, insted of copying all the separated MVC files... Do you put all the app logic inside your plugin's AppController ? I had some issues with Ac

Re: Where to place this logic?

2013-10-27 Thread Anja Liebermann
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi Reuben, thanks for your answer. I practise testing models and controllers (preferably models) since about 2 months and by now I get some routine. But libs are a new one. I will see how these things work out! Anja Am 25.10.2013 15:08, schrieb R

Please fill this survey

2013-10-27 Thread mohit kumar
Hi, Greetings. The following survey is meant for educational assignment for one of my friend. Please spare some time and fill this survey. *https://www.surveymonkey.com/s/QT78HXP* Thanks for your valuable time. *With Best Regards, Mohit Kumar * -- Like Us on FaceBook

Re: bulk record add in a model by diffrent terminal to a single database issue

2013-10-27 Thread Ashish Mahana
thanks for replying euromark, I have also the form upload functionality that also having the same problem, and of course this is the requirement for the client so i have to do in ftp way and form way. The users has unique session while logged in to works on same application. so while uploading

Re: Reutilizable App, How to?

2013-10-27 Thread euromark
Yes, plugins are the way to go. I fail to see the issue with reusing a plugin component, though. And I don't understand what you mean by copy-and-paste? Ideally, you don't do that at all, but use/extend the available classes. Mark Am Sonntag, 27. Oktober 2013 00:52:01 UTC+2 schrieb Vinicius Dus

Re: bulk record add in a model by diffrent terminal to a single database issue

2013-10-27 Thread euromark
Seems like overkill to me.. Why not simply provide an upload form to import csv? That's how I always do it - its nonsense to put ftp in between IMO Also, using some basic functionality you can also assert that this job is not run twice in the same instance by locking the action when its currently