Re: Does CakePHP convention require primary key to be auto-incrementing?

2012-08-10 Thread Albert 'Tigr'
AFAIK you have a choice of: - integer key that you set in your DB to be auto-incremented - UUID key that CakePHP will automatically generate for you - any other key that you generate yourself before saving HTH Albert On Thursday, August 9, 2012 9:59:44 AM UTC+2, Lightee wrote: > > Dear CakePHP g

Re: Cake PHP User Management Plugin Eagle

2012-07-25 Thread Albert 'Tigr'
███▄▄███▄ ▓▓█░░█ ▓▓█░░█ ▓▓█░░█ ▓▓█░░█ ▓▓█░░█ ▓▓████ ██▀░░░██▀ ░██ ░░█░░░█ ░░░█░░█ ░░░█░░█ ▀▀ On Sunday, July 15, 2012 4:51:27 PM U

Re: CakeBase | Simple idea to assist CakePHP Developers

2012-07-25 Thread Albert 'Tigr'
You can use the plugin for user authentication (login) that I am working on :D https://github.com/tigrino/Z Albert On Tuesday, July 24, 2012 4:08:03 PM UTC+2, Merianos Nikos wrote: > > Hello. > > My name is Merianos Nikos and I have create a GitHub public application > named CakeBase and you ca

Re: Can I / should I create multiple models for same single table?

2012-07-25 Thread Albert 'Tigr'
You can certainly create multiple models for one table and you should if you want to have several different behaviors, like in your case. It is quite possible that your "Tree" does not work because of a name clash or you made a mistake somwhere in naming the class, file or something else. I wou

Re: User management and authentication plugin for CakePHP 2

2012-07-23 Thread Albert 'Tigr'
anguage for user > $_SERVER['HTTP_ACCEPT_LANGUAGE']; > > W dniu niedziela, 22 lipca 2012 07:33:49 UTC+2 użytkownik Albert 'Tigr' > napisał: >> >> Hi! >> >> On Saturday, July 21, 2012 11:23:52 AM UTC+2, Piotr Beschel wrote: >>> >>> *

Re: Cake PHP User Management Plugin Eagle

2012-07-23 Thread Albert 'Tigr'
On Sunday, 22 July 2012 13:17:43 UTC+2, Steve wrote: > > > This Eagle Plugin was made for a user who is facing problem with > Login/Registration and other issues. It has 56 features. Please don't > concentrate on design, everything is code. > Ok, where is the code then? Albert -- Our n

Re: User management and authentication plugin for CakePHP 2

2012-07-21 Thread Albert 'Tigr'
Hi! On Saturday, July 21, 2012 11:23:52 AM UTC+2, Piotr Beschel wrote: > > *If i'm right u can use echo __('some text') in your email views.* > > Yes, but that is inefficient. You'd have to split the text in small chunks (length limits!) and translate them through the .po files. I'd rather have

Re: User management and authentication plugin for CakePHP 2

2012-07-20 Thread Albert 'Tigr'
the view template when creating the mail. Is this correct? On Wednesday, July 11, 2012 10:06:40 PM UTC+2, Albert 'Tigr' wrote: > > Hello, all! > > I wrote a yet another user authentication plugin for the CakePHP. I could > not find a plugin that would satisfy my require

Re: Charts - Anyone knows a good valid one?

2012-07-19 Thread Albert 'Tigr'
You got me curious so I had a look at the jqPlot. A fantastic tool, thank you for the tip, I am definitely going to use it for my sites. What is the problem with it? I just downloaded, unpacked and went to the 'examples' directory. All examples work like a swiss made clock and I think there is

Re: Security Release - CakePHP 2.1.5 & 2.2.1

2012-07-14 Thread Albert 'Tigr'
Thank you. Could you update the links on the website? They all point to 2.2.0. On Saturday, July 14, 2012 11:37:33 PM UTC+2, mark_story wrote: > > CakePHP 2.1.5 and 2.2.1 have just been released. If you are using > CakePHP's `Xml` class, you should upgrade as soon as possible. > > The security i

Re: SaveAll issue with nested arrays

2012-07-13 Thread Albert 'Tigr'
Oh, I don't know. Just give it a try. First create() and then saveAll(request->data). It may help. On Thursday, July 12, 2012 4:27:20 PM UTC+2, Michael wrote: > > This is from the docs: > > "The saveAll function is just a wrapper around the saveMany and > saveAssociated methods. it will inspect

Re: home.ctp

2012-07-11 Thread Albert 'Tigr'
Actually, there is a PagesController: http://book.cakephp.org/2.0/en/controllers/pages-controller.html On Wednesday, 11 July 2012 18:15:45 UTC+2, Marsson wrote: > > Hi there! > > > I´m a beginner so I´ve looking the folder structure and files of the > 2.2.0 distro. > > I´ve noticed there

User management and authentication plugin for CakePHP 2

2012-07-11 Thread Albert 'Tigr'
, login etc. So it is perfectly usable already. I will appreciate any feedback on both the general CakePHP using code and the security of the thing. github: https://github.com/tigrino/Z Thanks! Albert aka Tigr -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org

Re: SaveAll issue with nested arrays

2012-07-11 Thread Albert 'Tigr'
I thought saveAll was for saving multiple rows into the same table while saveAssociated was for saving to multiple tables... And do not forget to create() or set() your data to model before saving. On Tuesday, July 10, 2012 2:57:15 PM UTC+2, Michael wrote: > > When I pass this array to my saveAl

Re: the hasMany Model array is gone !

2012-07-09 Thread Albert 'Tigr'
The array from erading data does not look right for hasMany. What is the command you use for reading data? How do you save the data? What's in your View? Show the code, please. On Monday, 9 July 2012 19:29:30 UTC+2, DANNY wrote: > > Hi everyone : > > I create two Model , Order and OrderDetail > >

Re: No cases in url parameters ?

2012-07-08 Thread Albert 'Tigr'
Read about COLLATE parameter and decide what collation you want to use (latin1_general_cs, ut8_bin etc). Then simply issue an ALTER TABLE X MODIFY ... statement in the SQL window of the phpMyAdmin. But watch out for the sorting order in your selects, the results of _bin collation may be not qui

Re: No cases in url parameters ?

2012-07-08 Thread tigr
YOu have to create your table with a case-sensitive user name field By default it is not. http://dev.mysql.com/doc/refman/5.0/en/case-sensitivity.html Cheers! On Sunday, 8 July 2012 02:16:09 UTC+2, JonStark wrote: > > Hi ! > > I have an app where user profiles can be found thanks to their userna

Re: Pages and Auth

2012-07-08 Thread tigr
Hi! I am also falling in love with it, so far as to become jealous already :) The authentication is what you did at your users pages. The authentication and authorization are different. Now you have to set up the authorization using some method, like controller/action authorization for example.

Re: Login takes away the slug from my URL

2012-07-08 Thread tigr
If it were so, you could do $this->Auth->loginRedirect = $this->referer() in your app's beforeFilter... On Saturday, 7 July 2012 20:02:17 UTC+2, cricket wrote: > > I think Cake might be redirecting to Auth's loginAction that is set in > AppController. > > Maybe you should drop the slug part fro

Re: Issues with edits and afterSave in Cake 2.2

2012-07-07 Thread tigr
Could it be that the data was not COMMITed yet? Check the SQL log? On Friday, 6 July 2012 12:06:03 UTC+2, Ernesto wrote: > > Hi all > > i'm having a weird issue with Cake 2.2 model's afterSave() > > i need to update some csv files after any order has been saved or updated. > to achieve this i made

Re: Login problem

2012-07-07 Thread tigr
n the users controller is >> >>public function beforeFilter() { >> parent::beforeFilter(); >> $this->Auth->allow('add_bolsista','logout'); >> } >> So i do use that. I am using the isAutorized based in some tutorials, >>

Re: 3.0: a peek into CakePHP's future

2012-07-07 Thread tigr
No, that is not "nice". The strength of the CakePHP design is in being very straightforward when it comes to working with the data. I have seen other frameworks and I think that object-oriented ways are not suitable for working with data. Well, of course, you can, but would you want to, given a

Re: 3.0: a peek into CakePHP's future

2012-07-06 Thread tigr
be a much better deal. I do not expect that many people selected CakePHP in the hope that it would move to object-oriented data. There are other frameworks for that. Thank you. Albert aka Tigr On Friday, July 6, 2012 4:36:03 AM UTC+2, José Lorenzo wrote: > > Since its creation, more t

Re: Login problem

2012-07-05 Thread tigr
debug() all over the place. On Wednesday, July 4, 2012 2:52:23 PM UTC+2, Paulo Victor wrote: > > Hum, right. I checked and this is the correct. > > But the problem remains. Aparently i have to keep reading the most recent > docs. Must be something like that. > > 2012/

Re: ModelValidator fails on SaveAssociated in Plugin

2012-07-05 Thread tigr
, July 4, 2012 7:00:29 PM UTC+2, tigr wrote: > > Hi! > > There is something I do not understand. I have a plugin where I save some > data into related models. When I do it with a Save, everything works fine. > As soon as I try to use SaveAssociated, I get this error (and it is

ModelValidator fails on SaveAssociated in Plugin

2012-07-04 Thread tigr
Hi! There is something I do not understand. I have a plugin where I save some data into related models. When I do it with a Save, everything works fine. As soon as I try to use SaveAssociated, I get this error (and it is interfering of course with the headers). Can someone confirm that this is

Re: Login problem

2012-07-04 Thread tigr
Accordsing to documentation, it should be array('authorize' => 'Controller'), and not 'authorize'=>array('Controller'), Could this be the problem? On Tuesday, July 3, 2012 5:34:51 PM UTC+2, Paulo Victor wrote: > > I don't know what do do anymore. My login system is up and runnig, but no > ma

Re: syntax error, unexpected T_CLASS

2012-07-04 Thread tigr
vim is your friend :) On Tuesday, July 3, 2012 3:45:48 PM UTC+2, David Lozzi wrote: > > Holy sucky-IDE Batman! That worked!! GAH that's frustrating. I'm using > Komode Edit for my IDE, which obviously didn't pick up on that. What IDE do > you use? -- Our newest site for the community: CakePHP

Re: Method from controller is not mapped

2012-07-04 Thread tigr
I would think that since your host name is just a single word, perhaps cake may get confused by your urls sometimes. Why don't you try to rename the host into 'ServerName mysite.local'? That would make the urls look much more 'normal'... On Tuesday, July 3, 2012 7:34:55 PM UTC+2, c05min wrote:

Re: User list in a plugin

2012-07-03 Thread tigr
Hi! In order to use the model relationships, you first must set them up. In the definition of the Event model, how does it relate to the User model? Cheers On Monday, July 2, 2012 11:09:29 AM UTC+2, Francesco Pantisano wrote: > > Hi, > i have installend a plugin on cakephp2, > but now i want to