Yep that will do it. I wasn't sure you were free to change the primary key.
On Feb 27, 2012 6:22 PM, "padma" wrote:
> Thanks Jeremy...I changed the primary key in the Model Attribute and
> works like a charm.
>
> On Feb 27, 11:01 am, jeremyharris wrote:
> > It sounds like you should probably jus
Hi all,
I am not sure how to fix this socketException while making an
attempt to post an email. Thanks for the help. Do I need to touch
anything in php.ini file.
CakeLog::write('debug', 'Something did not work');
$email = new CakeEmail();
$email->from(array('p_peru...@
Thanks Jeremy...I changed the primary key in the Model Attribute and
works like a charm.
On Feb 27, 11:01 am, jeremyharris wrote:
> It sounds like you should probably just include your own 'join' 'key[1] in
> your find statement then.
>
> 1:http://book.cakephp.org/1.3/en/view/1047/Joining-tables
Hello all,
I am having a problem with using Paypal API on my cakePHP site while
using an SSL. My site is entirely secured with an SSL. Everything
seems to work except for the returning link. Everything works when not
using SSL. I have both Paypal and IPN. The IPN notification works. But
when retur
So I would recommend having one location of Cake on your root, then
people can just create new applications(or projects) inside this
directory.
So you can access them from example.com/projectname you just simply
move your webroot out of your app(project) folder and rename it to
ProjectName.
Then in
Thanks! If that is the case, then that will work out just fine for me.
And to address your concern: Yes, the date fields are manipulated by
JavaScript.
On Feb 27, 11:09 am, jeremyharris wrote:
> You should only need to disable them if they are being manipulated with
> JavaScript.
>
> That said,
Hi, thanks for responding.
We're working with a team on this project. Everyone has his/her own
working copy of the folder structure I gave above.
Ideally, the situation would be in which every user would have his/her
copy of the "projectname" folder only, and let the contents of
ProjectName (witho
I'm not sure what you're asking, but it sounds like you want to move
it somewhere else. You can do this by moving your webroot, and then
modifying your webroot index.php file and pointing it to where cake is
at (lib) and then also providing it the name of your application
folder (projectname)
On F
$conditions = array('Formula.formulasId' => $id);
$fields = array(
'materials.description', 'formula.formulasId,
formula.materialsId,
formula.weight');
$instructions = $this->Formula->find('all',
array('conditions' => $c
Hi all,
I'm working on transferring an existing PHP application to the CakePHP
framework.
I've baked all my models, controllers and views.
My folder structure looks like this:
ProjectName
- app
- lib
- projectname
- Config
- Console
- Controller
- Lib
- Loc
debug() automatically echoes
so no echo required^^
On 27 Feb., 17:11, phpMagpie wrote:
> echo debug($array); gives much nicer formatting.
--
Our newest site for the community: CakePHP Video Tutorials
http://tv.cakephp.org
Check out the new CakePHP Questions site http://ask.cakephp.org and he
I've seen a setup which *forces* you to re-assign all children to another
parent node, not always the most effective.
Curious to see what other people have to suggest as this is something I
need to tackle also.
On 27 February 2012 16:24, phpMagpie wrote:
> Spurred into action (eventually) by Je
The book lays out all the conventions and if you read through it then
complete the blog tutorial and it's still not working then you need to read
through the book again till you do understand it.
Stick to the conventions and things move a lot quicker!
--
Our newest site for the community: Cake
Spurred into action (eventually) by Jeremy Burn's (ClassOutfit) talk at
CakeFest Manchester, I have for the first time tuned my database and
included referential integrity relations. The database is now doing
everything that it should be, i.e. stopping me from deleting records that
would resul
echo debug($array); gives much nicer formatting.
--
Our newest site for the community: CakePHP Video Tutorials
http://tv.cakephp.org
Check out the new CakePHP Questions site http://ask.cakephp.org and help others
with their CakePHP related questions.
To unsubscribe from this group, send emai
this is why we have version control, after all :)
On Monday, February 27, 2012 5:16:12 AM UTC-8, Thiago Belem wrote:
>
> +1 to euromark
>
>
> 2012/2/27 euromark
>
>> why dont you guys just try it
>> its not like it will explode and kill you or something
>
>
--
Our newest site for the community:
Where in your controller are you attempting to run any finds with
conditions using the category or product id?
On Monday, 27 February 2012 08:56:08 UTC, Smooth wrote:
>
> Hey everyone,
>
> I have a page where you can add products to a list, on that page i
> want a select for the categories and
You should only need to disable them if they are being manipulated with
JavaScript.
That said, I've had issues trying anything other than disabling the entire
HABTM data:
$this->Security->disabledFields = array('BusinessHour');
This is because the way Cake compares the fields does not take int
It sounds like you should probably just include your own 'join' 'key[1] in
your find statement then.
1: http://book.cakephp.org/1.3/en/view/1047/Joining-tables
On Sunday, February 26, 2012 4:15:18 PM UTC-8, padma wrote:
>
> Hi,
>
> I have the model configured with belongsto association.
>
>
There's nothing really out of the ordinary going on here, it's basic Cake
stuff.
Your ajax form should POST the data to /users/login. Then your controller
action can look something like:
public function login() {
if ($this->Auth->login($this->data) {
// set flash
// set user data via $this->Aut
Check out Set::filter()
On Sunday, February 26, 2012 8:12:10 AM UTC-8, Reynier Pérez Mira wrote:
>
> I need to run a save/update query but only update those fields that aren't
> empty. My form contains a FILE field and if I don't upload any file then
> when the save() is executed this field goes
See the following code:
$day)
{
echo $form->input('BusinessHour.'.$k.'.day', array('type' =>
'hidden', 'value' => $k));
}
// Disabling the fields with the Security Component (in controller)?
$this->Security->disabledFields = array('BusinessHour.day');
?>
For HABTM model fields like the ones
OK, but I work on a multilingual projekt and need the name of the
outgroup translated, so I need to use __() function.
I have my array ready, but right now the 'group key' is numeric key
and I don't know how to replace this numeric key with a string (which
I can translate)
On 27 Feb., 14:17, Thiag
http://book.cakephp.org/2.0/en/core-libraries/helpers/form.html#FormHelper::select
Always check the documentation...
If you would like to generate a select with optgroups, just pass data in
hierarchical format. This works on multiple checkboxes and radio buttons
too, but instead of optgroups wrap
+1 to euromark
2012/2/27 euromark
> why dont you guys just try it
> its not like it will explode and kill you or something
--
Our newest site for the community: CakePHP Video Tutorials
http://tv.cakephp.org
Check out the new CakePHP Questions site http://ask.cakephp.org and help others
wit
Hi,
I would like to such a select:
France
Paris
Peugeot
But is there a chance to build this via the form helper?
--
Our newest site for the community: CakePHP Video Tutorials
http://tv.cakephp.org
Check out the new CakePHP Questions site http://ask.cakephp.org and help o
;)
Von: euromark
An: CakePHP
Gesendet: 13:18 Montag, 27.Februar 2012
Betreff: Re: How to upgrade from 2.0 to 2.1
why dont you guys just try it
its not like it will explode and kill you or something
On 27 Feb., 10:51, Serkan Sipahi wrote:
> Hi,
>
> only
why dont you guys just try it
its not like it will explode and kill you or something
On 27 Feb., 10:51, Serkan Sipahi wrote:
> Hi,
>
> only replace lib folder? not more?
>
>
> Von: Tilen Majerle
> An: cake-php@googlegroups.com
> Gesendet: 23:36 Sonntag, 26.Febr
Hi, you can use the implode function, you have 2 options.
1. Modify app_model.php , the save() function:
Modify the line:list($fields[], $values[]) = array($x, $y);
into
function save($data = null, $validate = true, $fieldList = array()) {
Hey everyone,
I have a page where you can add products to a list, on that page i
want a select for the categories and a select for the products, if the
categories select is changed i want the products select to list all
the products in that selected categorie.. I tried some of the info i
found on
I think he is talking about https://github.com/torifat/cake-menu_builder
I'm also trying to get this working with 2.1, but keep getting
different kinds of errors, depending on where I put the menu builder
php file
Seems like the author was working on a 2.0 compatible build (there is
a 2.0 branch
Hi,
only replace lib folder? not more?
Von: Tilen Majerle
An: cake-php@googlegroups.com
Gesendet: 23:36 Sonntag, 26.Februar 2012
Betreff: Re: How to upgrade from 2.0 to 2.1
all should works fine if you just replace new lib folder :)
--
Lep pozdrav, Tilen M
To check the data layout, you could use or
var_dump($updates);
On 27 February 2012 01:44, Ali Wasif wrote:
> Hey guys, I am having issues while using foreach...
>
> This is what I have in my Updates Controller and its working fine.
> While outputting the data in views/updates/index, I am
Damn, I forgot the link again!
http://nuts-and-bolts-of-cakephp.com/2009/03/14/run-multiple-cakephp-app-side-by-side/
On 27 February 2012 08:50, Stephen wrote:
> Apologies, I didn't explain properly... I was on the train!
>
> *Step 1*
> I followed the nuts and bolts "Run multiple apps side-by-si
Apologies, I didn't explain properly... I was on the train!
*Step 1*
I followed the nuts and bolts "Run multiple apps side-by-side" tutorial,
this meant that I could use one shared cake folder between app folders (Not
that it's really important to achieve what you want).
>From here by accessing ww
35 matches
Mail list logo