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
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
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(
:-)
$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
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
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',
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
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
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
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
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,
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
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
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
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
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
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
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
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
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
$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
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 validation rule (checkUnique method got from tempdocs :-) ):
=
var $validate = array(
'name' = array(
'on'='create',
'rule' = array('checkUnique'),
'message' = 'Name is not unique!',
23 matches
Mail list logo