'cake schema generate' in 1.2.5

2009-09-27 Thread Serge Rodovnichenko
This shell fails to generate a schema with an error 'Missing database table `app_models` for model AppModel' :-/ What I do wrong? :-) --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups CakePHP group. To post to this

Re: 'cake schema generate' in 1.2.5

2009-09-27 Thread Serge Rodovnichenko
Thanks. That helps :) On 27 сен, 19:55, Алексей Разбаков c...@uapub.com wrote: If you have app_model.php file in app directory you need to move it in the root 2009/9/27 Serge Rodovnichenko serge...@gmail.com This shell fails to generate a schema with an error 'Missing database table

Fetching data from self-joined model. RC4

2008-12-21 Thread Serge Rodovnichenko
Bug or feature? CategoryModel: = hasMany=array( 'Category'= array( 'className'='Category', 'foreign_key'='parent_id' ))) //category has many categories. Category-find('all') returns an array like this: array(

Re: CakePHP: How to remove LEFT JOIN in updateAll()

2008-11-12 Thread Serge Rodovnichenko
:-) $this-controller-FilesFolders-unbindModel(array( 'belongsTo' = array_keys($this-controller-FilesFolders-belongsTo) )) On 12 нояб, 10:57, Kryptonian [EMAIL PROTECTED] wrote: Hi, I have this problem that if my model uses a var $belongsTo = array (), my updateAll() generated statement was

Re: HABTM Model::save() or Model::__saveMulti() seems to be broken :-/

2008-11-12 Thread Serge Rodovnichenko
It doesn't work. :-( $data[Model][Model] = array('a', 'b', 'c') nor Model.[0].[key]='a' Model.[0].[key]='b' Model.[0].[key]='c' I've just rewrote code to use old good Model-query to insert associations, without any `automagic`. On 12 нояб, 06:51, Rafael Bandeira aka rafaelbandeira3 [EMAIL

HABTM Model::save() or Model::__saveMulti() seems to be broken :-/

2008-11-11 Thread Serge Rodovnichenko
After updating Cake libs from SVN, Cake does not saves HABTM associated data. Model 'Product': -- natural_key VARCHAR(100) PRIMARY KEY name (VARCHAR...) e.t.c HABTM 'Replacement'= array( 'className'='Product', 'joinTable'='product_replacements', 'foreignKey'='product_key',

A way to lost your session in Cake 1.2RC3 :-)

2008-11-10 Thread Serge Rodovnichenko
It's simple: In your application, click on a link to one action, then click on a link to the second action without waiting of results of first action. Session data lost. A heavy-loaded server and complex database query, generated by first action/Model or slow network connection may help you to

Re: Seperate Public/Admin Apps with Shared Models Webroot?

2008-11-10 Thread Serge Rodovnichenko
It's not a right way to create a separate controllers (admin/public) for one model. Use admin routing and separate layouts for your site frontend and backend. On 7 нояб, 11:50, Kappa [EMAIL PROTECTED] wrote: I agree with you, but at the same time i think that having separate webroot for admin

Re: A way to lost your session in Cake 1.2RC3 :-)

2008-11-10 Thread Serge Rodovnichenko
sessions? On Nov 10, 10:45 am, Serge Rodovnichenko [EMAIL PROTECTED] wrote: It's simple: In your application, click on a link to one action, then click on a link to the second action without waiting of results of first action. Session data lost. A heavy-loaded server and complex database

Re: A way to lost your session in Cake 1.2RC3 :-)

2008-11-10 Thread Serge Rodovnichenko
Thanks, Gwoo. This helps :-) Where to get more information about behavour of security levels? I think in 'high' level Cake performs a Referrer checks. This is why I lose sessions in case described above. What are other effects of 'high', 'medium' and 'low' security levels settings? Except a

2 Gwoo: Zeroes as named and unnamed parameters. Continuation of discussion ot ticket 4917

2008-06-15 Thread Serge Rodovnichenko
OK. Zero cannot be an unnamed parameter like this: /mycontroller/index/ 0, it's a feature. But this the test below fails too: $result = Router::url(array('controller'='mycontroller', 'action'='index', 'id'=0)); $expected = '/mycontroller/index/id:0'; $this-assertEqual($result, $expected); So,

Bakery login problem. I forgot my username :-)

2008-06-14 Thread Serge Rodovnichenko
I forgot my username in bakery. :-) How to restore it? 'Reset password' just resets password :-) --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups CakePHP group. To post to this group, send email to

Re: New To Cake PHP

2007-12-21 Thread Serge Rodovnichenko
Theory is here: http://en.wikipedia.org/wiki/Model-view-controller On Dec 21, 6:10 pm, Gourab singha [EMAIL PROTECTED] wrote: I am new To Cake PHP .It is very difficult to me that communicate Module,Controller,View To Each Other,Please Send me a simple coded project that help me to understand

Re: Working with XML-RPC

2007-12-20 Thread Serge Rodovnichenko
I wrote a component, that uses an XML-RPC library from PEAR. On Dec 19, 7:57 pm, Juan Basso [EMAIL PROTECTED] wrote: Hi, Anyone have worked with xml-rpc? Not for server, but to a client. My application need get data under xml-rpc of others machines... Thanks. Juan Basso

Re: Selective Recursive Find

2007-12-10 Thread Serge Rodovnichenko
For Cake 1.2 take a look at Containable behaviour http://www.thinkingphp.org/2007/06/14/containable-20-beta/ or Bindable behaviour (I prefer it! :-) : http://cake-syrup.sourceforge.net/ For cake 1.1 search this group for keyword 'expects' :-) On Dec 10, 4:24 pm, Baz [EMAIL PROTECTED] wrote: I

[Cake 1.2] Function aliases will be deprecated?

2007-12-09 Thread Serge Rodovnichenko
Function aliases (like aa(), am(), a(), e() and so on) will be deprecated in future releases of 1.2? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP group. To post to this group, send email to

Re: Obtain all elements of multiple select

2007-12-07 Thread Serge Rodovnichenko
Try to set/reset a 'selected' attribute of OPTION when moving options between two lists. On Dec 6, 9:19 pm, dandreta [EMAIL PROTECTED] wrote: I have an HABTM relation between ModelA and ModelB. In the add view of A, I have created two lists, one with all B elements of the database and other

Re: Nested Categories Problem

2007-12-07 Thread Serge Rodovnichenko
TreeBehaviour uses a Nested Sets pattern, unlike conventional parent- child pattern, used in your schema. More about various patterns of SQL- trees: http://www.dbazine.com/oracle/or-articles/tropashko4 You need a 3 fields to use with TreeBehaviour: 'parent', 'lft', 'rgt'. Remember, that Nested

Re: User Defined Fields

2007-12-07 Thread Serge Rodovnichenko
You need an additional table with user fileds: id, user_id, fieldname, fieldvalue. User hasMany UserDefinedFields. On Dec 7, 4:17 pm, JTTACJ1 [EMAIL PROTECTED] wrote: What is the best strategy for allowing application users to define database fields on the fly? For example in a customer

Re: I'm having problems with associations...

2007-12-04 Thread Serge Rodovnichenko
1. Add $primaryKey = 'zip'; in Zipcode model. 2. Define 'foreignKey'='zip' in $hasMany association. 3. Your associations should looks like: User belogsTo Zip, Zip hasMany Users. On Dec 4, 9:02 am, Jon Hinson [EMAIL PROTECTED] wrote: Ok, I can't seem to solve this problem for the life of me. I

FormHelper, hidden field '_method'

2007-12-03 Thread Serge Rodovnichenko
$form-create() produces a 'form' tag, followed by hidden field '_method'. What purpose of this option? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP group. To post to this group, send email to

Re: FormHelper, hidden field '_method'

2007-12-03 Thread Serge Rodovnichenko
P.S. Cake 1.2 from SVN. On Dec 3, 1:47 pm, Serge Rodovnichenko [EMAIL PROTECTED] wrote: $form-create() produces a 'form' tag, followed by hidden field '_method'. What purpose of this option? --~--~-~--~~~---~--~~ You received this message because you

Model-validates() ignores 'on'='created' option of validation rule?

2007-12-03 Thread Serge Rodovnichenko
Model validation rule (checkUnique method got from tempdocs :-) ): = var $validate = array( 'name' = array( 'on'='create', 'rule' = array('checkUnique'), 'message' = 'Name is not unique!',