sorry that was $this->User->create();
You are right if my data array contain ID then it will update. i
checked i never pass any id i am creating new user but with $this-
>ModelName->save($this->data); upade my 1st record. in cakePHP 1.3.3
version :(
why is this happening ?
On Aug 10, 11:09 a
$this->ModelName->create() [[NB NOT created ]] does exactly what it says it
will; it creates a new record. In any event, your two blocks of code are
different; one has a create statement, the other does not. What you should
check is whether there is an id element in your data array. If there is
Hi,
i am using 1.3.3 stable version.
i am heaving problem with this version.
let take an example:-
if i do this
$this->ModelName->save($this->data);
this link will update my 1st row every time i run this.
but
if i do this
$this->ModelName->created();
$this->ModelName->save($this->data);
t
I've noticed a difference in the extract and classicExtract methods of
the Set class. When extracting data from an array that only has one
numeric key set the results aren't the same when using extract and
classicExtract if the numeric key isn't 0. For example:
$data = array(
15 =>
'Post' =>
Felix,
for a simple cart not sure if habtm is needed...
could be:
products
id | name | description | image | price | qty
orders
id | name | address | grandtotal | tracking | status |
order hasmany orderi_tems
order_items
id | order_id | product_id | qty | price |...
I'd be tempted to have an order_items table that is not ruled by habtm. Then
you can add columns for product_id, quantity, price_charged, tax, dispatched
etc.
Jeremy Burns
Class Outfit
jeremybu...@classoutfit.com
http://www.classoutfit.com
On 9 Aug 2010, at 17:27, Felix wrote:
> Hi, I was won
Hi, I was wondering if anyone can help with a problem I'm having.
I'm building a simple shopping cart system for which I have two
objects
1. Product (stores product details - name, cost, SKU, etc.)
2. Order (Stores order details - customer address, shipping type,
etc.)
In the database these are
On Sun, Aug 8, 2010 at 11:16 AM, Mariaczi.PL wrote:
> Hi!
>
> I have a problem.
>
> I need to create card indexes.
>
> Group has Files(e.g. Families), Group has many users, and users from
> one group have to have access only for records which have correct
> group_id.
> Families is one table, and f
On Sat, Aug 7, 2010 at 11:48 AM, nick wrote:
> This seems very basic but I am trying the "blog" example line by
> line.
> I am using Cake version 1.3.3
>
> When I try the add post basically adding functionality to add the
> post, everything works fine until I try to save the new record.
> I get th
Use the default property: http://book.cakephp.org/view/1402/options-default
Jeremy Burns
Class Outfit
jeremybu...@classoutfit.com
http://www.classoutfit.com
On 9 Aug 2010, at 16:00, james wrote:
> Hi,
>
> I have a user field that at the moment is populated via a dropdown
> that is a list of al
Hi,
I have a user field that at the moment is populated via a dropdown
that is a list of all users in the tabel. What I'd like to do is auto
populate that field from theAuth.User.username value so that the user
never has to enter their name in a record.
How is this done?
thanks!
Check out the n
What is the cake version?
try rename to default.ctp
By John Chronus
On Mon, Aug 9, 2010 at 10:12 AM, Mariano C. wrote:
> I have completed my application's development, now I wanna start to
> style anything with my css. I have created a default.thtml and saved
> it under app/views/layouts but
I have completed my application's development, now I wanna start to
style anything with my css. I have created a default.thtml and saved
it under app/views/layouts but I still see the cakephp style. Why?
Check out the new CakePHP Questions site http://cakeqs.org and help others with
their CakePHP
this is the sql:
SELECT DISTINCT tags.title
FROM tags
INNER JOIN pages_tags ON pages_tags.tags_id = tags.id
WHERE pages_tags.pages_id
IN (
SELECT pages.id
FROM pages
INNER JOIN pages_tags ON pages_tags.pages_id = pages.id
INNER JOIN tags ON tags.id = pages_tags.tags_id
Check out the new CakePHP
Hey!
Ok i have pages which have and belong to many tags.
I do not want to use categories so i'm using tags instead.
For example, i'm tagging a page with help, development, design or
article, development, peace
When i load the page /views/article, i would like to load all the tags
that belong to
Looks great, But this is closed for testing now =]
Any other games?
On Aug 9, 12:27 pm, Quess wrote:
> http://racelords.pl/(gam is in polish)
>
> Currently the game status is still beta but I was playing it few
> months ago and game look quite nice and was very playable.
>
> Regards,
> Miro
>
>
Follow the MIN example, and replace the MIN with SUM.
Jeremy Burns
Class Outfit
jeremybu...@classoutfit.com
http://www.classoutfit.com
On 9 Aug 2010, at 10:34, Cruisine wrote:
> tq for ur answer.
> but i couldnt found any statement that explaining about how to sum a
> field in query on cakephp.
tq for ur answer.
but i couldnt found any statement that explaining about how to sum a
field in query on cakephp..
so..any idea?
On Aug 9, 4:23 pm, Jeremy Burns | Class Outfit
wrote:
> There is an example here
> (http://book.cakephp.org/view/1030/Complex-Find-Conditions) that shows how to
> do
There is an example here
(http://book.cakephp.org/view/1030/Complex-Find-Conditions) that shows how to
do a MIN query, which is essentially the same thing.
Jeremy Burns
Class Outfit
jeremybu...@classoutfit.com
http://www.classoutfit.com
On 9 Aug 2010, at 10:09, Cruisine wrote:
> hi i'm still
http://racelords.pl/ (gam is in polish)
Currently the game status is still beta but I was playing it few
months ago and game look quite nice and was very playable.
Regards,
Miro
On 8 Sie, 16:44, Zippoxer wrote:
> I'm trying to create a browser game for few months already. A big
> journey betwee
hi i'm still newbie at cakephp.
and i still wondering how to make sum query on cakephp ?
for example i want to make a query like this :
select count(id) as customer, sum(payment) as money from customer
where department_id=1
how to implement it on cakephp ??
do you have the solution ?
i need ur help
http://cakepackages.com/package_search/acl
http://github.com/Theaxiom/SuperAuth
On Aug 9, 5:06 am, weilies wrote:
> thanks for the reply and i jz tried out IBM cakePHP tutorial
> yeah you are right, the only diff is one with UI but another via cmd
> line and code editor
>
> i m still learning the
Do you mean the style? If so, by default the message is placed into a div (for
example, for an auth error, div id="flashMessage") which you can style using
CSS. Or you can set a particular class when you set the flash message:
$this->Session->setFlash('Example message text', 'default', array('cl
Hi!
I have an application powered by cakephp.
users have some options in client panel (mydomain/manager),
and i want to create www module for every user and it need to be
accessed on login.domain
i dont know how to do this.
user should can add sites, galery, newses on his www site.
i thought abou
then maybe this try...idk i'm not sure if work
{{{
$this->Auth->authorize = 'actions';
$this->Auth->loginAction = array('controller' => 'users', 'action' =>
'login', 'prefix' => false, 'prefix2' => false);
$this->Auth->loginRedirect = array('controller' => 'users', 'action' =>
'login', 'pr
thx miles for the reply...
is there sth specific in cake to do this?
On 6 Aug., 20:35, Miles J wrote:
> Just setup a cron job that runs every 1/24 hour(s) that cleans up the
> tmp directory.
>
> Why not just put all uploads into the same tmp directory? Very slim
> chance anything will ever overw
26 matches
Mail list logo