Re: Extra data in HABTM tag set-up

2007-10-08 Thread R. Rajesh Jeba Anbiah

On Oct 9, 1:22 am, Mech7 <[EMAIL PROTECTED]> wrote:
> Me neither.. everybody says use with in 1.2 for using the join table
> data, but nobody can tell it clear on how it use it :| Except from
> selecting on foreign keys in the join table or displaying it in a
> view.

   "with" is unnecessary now in latest svn version to get the data;
the relevant info is in "PostsTag" key (similar to what you'll specify
with "with")

   But, I'm not sure about save/edit. I'm quite certain that Form
helper is unusable for extra data. If using "with", I could save/
insert extra data; but I don't find it to update.

   I have also asked the same in other thread where there seems to be
enough HABTM experts
http://groups.google.com/group/cake-php/browse_frm/thread/6c07e01d44f7e1c6/345187bc45683f72?#345187bc45683f72

   I have also added in 
http://groups.google.com/group/cake-php/web/frequent-discussions

   Hopefully, AD7six or any HABTM expert will help.

--
  
Email: rrjanbiah-at-Y!comBlog: http://rajeshanbiah.blogspot.com/


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Cake`s unit-tests works very unstable.

2007-10-08 Thread Loci-master

Hello everyone.
   For the start, I`ll explain what configuration do I use. It`s
CakePHP 1.2.0.5427alpha and usual built-in CakePHP Test Suite v
1.2.0.0.

The problem is: my test cases work very unstable. It can passes and in
the next test-rerun fails with any operations on the test or model. It
happens because my tests use the same database at the same time and
after one test`s finish database is truncated when another test is
still running. This problem occurs more often when I run few test
cases simultaneously with little interval. That is why I can add this
tests to group.

I have some ideas to solve this problem, but I don`t think they are an
excellent solution:
1) use sleep() method in setUp/tearDown
2) use as many DBConfigs as we have test cases, so every test case use
different database.

   Does someone of you, guys, have this problem? What can you suggest
to solve it?

Thanks

P.S. Sorry for  my bad English


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: Getting related data

2007-10-08 Thread Adwin Wijaya

so your product should be:

Products
:id
:image_id

Images
:id
:product_id

Products  --> :hasOne image
Images -> :hasOne product

if a Image can be used by multiple products then the Images table
should :
Images
:id

Products
:id
:image_id

Products hasOne: image
Images belongsTo: product

CMIIW.


On Oct 8, 2:00 pm, andyreimer <[EMAIL PROTECTED]> wrote:
> Well it seems to work if I switch around the relationship.  If Product
> belongsTo Image, then that image record is available to me based on
> the presense of the image_id in the product table.  It doesn't really
> make sense to say that the product belongs to the image, but thats
> just the semantics that cake employs to say "I have a foreign key in
> this table, go to another table and get the related record with a
> matching primary key" vs. "I have a primary key, go to another table
> and find all records with a matching foreign key".


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: Badword Bahavior

2007-10-08 Thread dardosordi

Yes, just load the model and use it.

loadModel('Badwords');

$this->badwords =& new Badwords();



On Oct 8, 5:35 pm, Braindead <[EMAIL PROTECTED]> wrote:
> I don't want to use the badword model in my controller. I want to use
> it in a behavior. Are there any possibilities?


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: Uploading Large Files

2007-10-08 Thread dardosordi

I think that swfupload is opensource.

On Oct 8, 5:52 pm, "Novice Programmer" <[EMAIL PROTECTED]>
wrote:
> Any one aware of any open-source/free solution since i dont have that much
> finances for the project... :(.
>
> Thanks in Advance.
>
> On 10/8/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
>
>
>
>
>
> > Exactly what I need. Thanks
>
> > On 7 Oct, 02:39, MicroAngelo <[EMAIL PROTECTED]> wrote:
> > > Hi Marius,
>
> > > One of our clients wanted a progress bar, so we used Thin File Upload,
> > > a Java solution that features this and drag-and-drop file support too
> > > (it can be found athttp://upload.thinfile.com-it's not free
> > > though), along with Chris Partridge's excellent File Handler Component
> > > in Cake (I used to be able to find it in the Bakery...) and they work
> > > together pretty well.
>
> > > Good luck!
>
> > > On Oct 5, 3:41 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]>
> > > wrote:
>
> > > > Hi,
>
> > > > I am trying to figure out what's the best way to upload large files.
> > > > Let's say 10MB+. It has to be part of the web interface therefore FTP
> > > > is not an option... Java, Flash would do. I just can't find anything
> > > > suitable.
>
> > > > Thanks
>
> --
> Thanks & Regards,
> Novice (http://ishuonweb.wordpress.com/).


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



.htaccess anti-hotlink issue

2007-10-08 Thread fael

hello
first of all, i'd like to say that this is my first message and that i
am a big fan of cakephp, i think it is a great framework and the
community is even better.

currently i am developing a webapp in which i upload pictures to the /
upload folder, in the webroot. i need this pictures being rescaled in
different sizes (big, medium and small) so the original process was
upload > resize, but the upload process was much slower.
so i implemented a simple and kind-of workaround: in routes i set the
resize controller to /upload/* so when image_big.jpg is called, if it
doesn't exist yet, the controller will load and resize image.jpg, same
to image_medium.jpg and image_small.jpg.
the problem is that creating a .htaccess file in /upload folder, to
disallow hotlink, cake will break in this folder, as the .htaccess in
webroot is overridden by this new, so no controllers loading nor cake
404 errors, just the apache ol' plain "Not found"

has anyone had previous experience with this kind of issue? is there a
workaround to get through this?

thank you, have nice day


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: Use a helper function inside a controller

2007-10-08 Thread francky06l

Well it's not really an MVC behavior, but in cake you can use
loadHelper('helpername') in your controller. Then you will access it
as in view.

hope this helps

On Oct 7, 3:04 pm, "[EMAIL PROTECTED]"
<[EMAIL PROTECTED]> wrote:
> Hi
> I have this question.
> I have the calendar helper and I want use a function of this inside a
> controller?
> How can I do this?
> Many Thanks
> Marco


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: How to do mod_rewrite????

2007-10-08 Thread jeffkwiat

Ok, I finally got it...I used the same link val used to get the
mod_rewrite working for the CSS on the cakephp page and placed the
following into my /etc/apache2/sites-available/default file:


AllowOverride All


This worked for the cakephp page, but I was still receiving 404 File
Not Found errors everywhere else, including http://localhost/posts/index.

In order to fix this, I adjusted the above entry to:


AllowOverride All


I no longer receive 404s, and as of right now, it looks like it's
working as it should.

Hope this helps anyone else who is currently pulling out their
hair :).

Thanks,
Jeff.

On Oct 8, 5:00 pm, jeffkwiat <[EMAIL PROTECTED]> wrote:
> Hey guys,
>
> I was having the same issue as val with the mod_rewrite not generating
> the CSS on the Cake Install page.  That works now, but I am still
> getting 404s when I try to gohttp://localhost/posts/index.  Am I
> pointing to the wrong address, or is it something else.  My setup is:
>
> Ubuntu Feisty Fawn
> CakePHP v1.1.17.5612
> Apache2
> PHP5
> MySQL 5.1
>
> Any help would be much appreciated.
>
> Thanks,
> Jeff.
>
> On Oct 8, 4:27 pm, val <[EMAIL PROTECTED]> wrote:
>
> > On 
> > ubuntuhttp://bakery.cakephp.org/articles/view/installing-cakephp-on-ubuntu
> > .
> > For me it worked!
>
> > On Oct 8, 8:01 pm, "SIXS" <[EMAIL PROTECTED]> wrote:
>
> > > How do you actually set the mod rewrite. I  set it in sthe system 
> > > httpd.conf, but I don't see the color in the cakephp page.
> > > Is there another issue.
> > > I have installed it several times and hve installed it in another system, 
> > > both XP OS. I am going to install it on a Ubuntu system.
> > > Jim


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



How to handle multiple image-upload in the same model / form?

2007-10-08 Thread burzum

My problem is that i have a multipage-report, or better to say one big
report (table) with ~500 fields devided into some pages with a list of
pages to make it less confusing. Some of the pages contain 1 to 12
images. Now my question or problem:

How do i handle them in a good way?

Should i use an extra table to store them? How do i handle all the
photos in the same form? They have to appear on certain positions in
the report. So i must be able to identify them to set them in the
right position. Where do i put the handling in? Model? Any suggestions
for helpers, components, behaviors?

It's required that the files are converted to jpg if they are no jpg,
saved in their original size for documentation purpose and that
thumbnails are created for the pages. I have to create another resized
version of the image for direct printing out of the browser (a view
for the photo filling a DINA4 page) and i have to include them in a
pdf of the report.


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: How to do mod_rewrite????

2007-10-08 Thread jeffkwiat

Hey guys,

I was having the same issue as val with the mod_rewrite not generating
the CSS on the Cake Install page.  That works now, but I am still
getting 404s when I try to go http://localhost/posts/index.  Am I
pointing to the wrong address, or is it something else.  My setup is:

Ubuntu Feisty Fawn
CakePHP v1.1.17.5612
Apache2
PHP5
MySQL 5.1

Any help would be much appreciated.

Thanks,
Jeff.

On Oct 8, 4:27 pm, val <[EMAIL PROTECTED]> wrote:
> On ubuntuhttp://bakery.cakephp.org/articles/view/installing-cakephp-on-ubuntu
> .
> For me it worked!
>
> On Oct 8, 8:01 pm, "SIXS" <[EMAIL PROTECTED]> wrote:
>
> > How do you actually set the mod rewrite. I  set it in sthe system 
> > httpd.conf, but I don't see the color in the cakephp page.
> > Is there another issue.
> > I have installed it several times and hve installed it in another system, 
> > both XP OS. I am going to install it on a Ubuntu system.
> > Jim


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: Eclipse code completion in Views

2007-10-08 Thread schneimi

Yes that would be nice, but i think it's not possible, because these
variables are handled by cake.

Stu schrieb:
> Well, I unfortunately can't get code completion on methods in $form->,
> or $html-> in a view (*.ctp file).
>
> It's no big deal, but it would be very nice.
>
> On Oct 8, 1:58 pm, schneimi <[EMAIL PROTECTED]> wrote:
> > Yes, you are right, the second step is not necessary.
> >
> > Stu schrieb:
> >
> > > Ah ok, I'd done the first step but not the second step. I'm at work at
> > > the moment, but I'll do the second step when I get home.
> >
> > > Thanks
> >
> > > On Oct 7, 5:28 pm, schneimi <[EMAIL PROTECTED]> wrote:
> > > > Hi,
> >
> > > > You have to do two steps:
> >
> > > > - Add *.thtml to Preferences->General->Content Types->PHP Content
> > > > Type
> > > > - Add *.thtml and assign the PHP-Editor in Preferences->General-
> >
> > > > >Editors->File Associations
> >
> > > > regards,
> >
> > > > Michael
> >
> > > > Stu schrieb:
> >
> > > > > Hi Bakers,
> >
> > > > > Does anyone know if it is possible to get code completion working for
> > > > > Views in eclipse? I've got it working for Models in a controller, but
> > > > > can't seem to get any code completion when in a View, and do something
> > > > > like  I'm just wondering if there is some
> > > > > configuration option I'm missing or something like that.
> >
> > > > > Any help would be appreciated,
> >
> > > > > thanks
> >
> > > > > Stu


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: Uploading Large Files

2007-10-08 Thread Novice Programmer
Any one aware of any open-source/free solution since i dont have that much
finances for the project... :(.

Thanks in Advance.


On 10/8/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
>
>
> Exactly what I need. Thanks
>
> On 7 Oct, 02:39, MicroAngelo <[EMAIL PROTECTED]> wrote:
> > Hi Marius,
> >
> > One of our clients wanted a progress bar, so we used Thin File Upload,
> > a Java solution that features this and drag-and-drop file support too
> > (it can be found athttp://upload.thinfile.com- it's not free
> > though), along with Chris Partridge's excellent File Handler Component
> > in Cake (I used to be able to find it in the Bakery...) and they work
> > together pretty well.
> >
> > Good luck!
> >
> > On Oct 5, 3:41 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]>
> > wrote:
> >
> > > Hi,
> >
> > > I am trying to figure out what's the best way to upload large files.
> > > Let's say 10MB+. It has to be part of the web interface therefore FTP
> > > is not an option... Java, Flash would do. I just can't find anything
> > > suitable.
> >
> > > Thanks
>
>
> >
>


-- 
Thanks & Regards,
Novice (http://ishuonweb.wordpress.com/).

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: Badword Bahavior

2007-10-08 Thread Braindead

I don't want to use the badword model in my controller. I want to use
it in a behavior. Are there any possibilities?


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: How to do mod_rewrite????

2007-10-08 Thread val

On ubuntu http://bakery.cakephp.org/articles/view/installing-cakephp-on-ubuntu
.
For me it worked!

On Oct 8, 8:01 pm, "SIXS" <[EMAIL PROTECTED]> wrote:
> How do you actually set the mod rewrite. I  set it in sthe system httpd.conf, 
> but I don't see the color in the cakephp page.
> Is there another issue.
> I have installed it several times and hve installed it in another system, 
> both XP OS. I am going to install it on a Ubuntu system.
> Jim


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: Extra data in HABTM tag set-up

2007-10-08 Thread Mech7

Me neither.. everybody says use with in 1.2 for using the join table
data, but nobody can tell it clear on how it use it :| Except from
selecting on foreign keys in the join table or displaying it in a
view.

On Oct 6, 1:45 pm, "R. Rajesh Jeba Anbiah"
<[EMAIL PROTECTED]> wrote:
> On Oct 3, 3:00 am, macasek <[EMAIL PROTECTED]> wrote:
>
> > I actually asked this same question in another thread:
>
> >http://groups.google.com/group/cake-php/browse_thread/thread/88a03571...
>
> > The answer is the use CakePHP1.2 using the 'with' option.
>
>Thanks, by googling I found this  OCPHP.pdf>
>
>But, I still don't get it to work for adding.. I suppose, this may
> work for reading the data from table.. Still working on.. if anyone
> had done this, kindly share. TIA
>
> --
>   
> Email: rrjanbiah-at-Y!comBlog:http://rajeshanbiah.blogspot.com/


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: Eclipse code completion in Views

2007-10-08 Thread Stu

Well, I unfortunately can't get code completion on methods in $form->,
or $html-> in a view (*.ctp file).

It's no big deal, but it would be very nice.

On Oct 8, 1:58 pm, schneimi <[EMAIL PROTECTED]> wrote:
> Yes, you are right, the second step is not necessary.
>
> Stu schrieb:
>
> > Ah ok, I'd done the first step but not the second step. I'm at work at
> > the moment, but I'll do the second step when I get home.
>
> > Thanks
>
> > On Oct 7, 5:28 pm, schneimi <[EMAIL PROTECTED]> wrote:
> > > Hi,
>
> > > You have to do two steps:
>
> > > - Add *.thtml to Preferences->General->Content Types->PHP Content
> > > Type
> > > - Add *.thtml and assign the PHP-Editor in Preferences->General-
>
> > > >Editors->File Associations
>
> > > regards,
>
> > > Michael
>
> > > Stu schrieb:
>
> > > > Hi Bakers,
>
> > > > Does anyone know if it is possible to get code completion working for
> > > > Views in eclipse? I've got it working for Models in a controller, but
> > > > can't seem to get any code completion when in a View, and do something
> > > > like  I'm just wondering if there is some
> > > > configuration option I'm missing or something like that.
>
> > > > Any help would be appreciated,
>
> > > > thanks
>
> > > > Stu


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: Badword Bahavior

2007-10-08 Thread djiize

to access another Model from a controller, add this:
var $uses = array('Guestbook', 'Badword');  // all models you need
that aren't associated with an loaded one

and now $this->Badword->find*() magic happens!

On 8 oct, 18:46, Zoltan <[EMAIL PROTECTED]> wrote:
> That's the way I would do it too :(
> I guess there are to solutions - you could make BadWords a component
> instead of a behavior and use multiple models that way, the other
> would be to store your bad-words in an array, rather than calling them
> from the database. You could even move it into the config file for
> easier editing.
>
> Zoltanwww.yyztech.ca
>
> On Oct 8, 12:28 pm, Braindead <[EMAIL PROTECTED]> wrote:
>
> > I'm trying to write a badword behavior for my guestbook, where a
> > guestbook entry has to be verified when one or more badwords are
> > detected inside the guestbook entry. My badwords are stored in a
> > database. The problem is how to query the badwords, when the current
> > model is the guestbook?
>
> > Is the only possibility something like
>
> > $badwords = $model->query('SELECT `entry` FROM `badwords` ORDER BY
> > `entry`');
>
> > or is there a more "cake-like" way?


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: How to do mod_rewrite????

2007-10-08 Thread Bernardo Vieira

Hi,
Make sure all .htaccess files are in place, also, in some cases you have 
to set RewriteBase to get mod_rewrite to work.


schneimi wrote:

>Hi,
>
>not sure what version of Cake you use, but when I installed the latest
>stable version of cakePHP, I was also very confused, mod_rewriting was
>obviously working on my apache (tested it seperatly),  but no matter
>what I tried, I didn't come to see any css effects on the cake site.
>
>Well I could'nt solve the problem, but all looked nice after
>installing Cake 1.2, so maybe thats an option for you too.
>
>Michael
>
>SIXS schrieb:
>  
>
>>How do you actually set the mod rewrite. I  set it in sthe system httpd.conf, 
>>but I don't see the color in the cakephp page.
>>Is there another issue.
>>I have installed it several times and hve installed it in another system, 
>>both XP OS. I am going to install it on a Ubuntu system.
>>Jim
>>
>>
>
>
>>
>
>  
>


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: Extra data in HABTM tag set-up

2007-10-08 Thread Zoltan

Yes, I'm still having problems with saving data:

This is what I have so far:

WITH association on the model:
var $hasAndBelongsToMany = array(
'Tag' => array('className' => 'Tag',
'with' => 'TaggedPlace' ,
'joinTable' => 'places_tags',...


A form with fields like:





then (not) saving with:
function beforeSave() {
if(!empty($this->data['Tag'])) { $this->TaggedPlace->save($this-
>data['Tag']);  }
return(true);
}

I'm thinking there is a problem with the form fields (i'm generating
them manually now - helper will come later). Anybody have any ideas
where I'm going wrong?

Zoltan

On Oct 6, 7:45 am, "R. Rajesh Jeba Anbiah"
<[EMAIL PROTECTED]> wrote:
> On Oct 3, 3:00 am, macasek <[EMAIL PROTECTED]> wrote:
>
> > I actually asked this same question in another thread:
>
> >http://groups.google.com/group/cake-php/browse_thread/thread/88a03571...
>
> > The answer is the use CakePHP1.2 using the 'with' option.
>
>Thanks, by googling I found this  OCPHP.pdf>
>
>But, I still don't get it to work for adding.. I suppose, this may
> work for reading the data from table.. Still working on.. if anyone
> had done this, kindly share. TIA
>
> --
>   
> Email: rrjanbiah-at-Y!comBlog:http://rajeshanbiah.blogspot.com/


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: Blog Tutorial (Section A.9.)

2007-10-08 Thread val

You could post the code or the steps that reproduce the bug, to give
more information (link?..).
Well I'm new here, but maybe others know what are you talking about.

On Oct 7, 2:26 pm, 2b3 <[EMAIL PROTECTED]> wrote:
> Hi all, I'm just starting out and learning here... and I'm stumped...
> is this a bug...?
>
> I've just completed this section "A.9 Adding Posts" to create an "add
> post" page for the tutorial blog. Although everything is coming up
> thru the web browser correctly, on both Safari and Firefox (on Mac,
> both latest), I get the following:
>
> Title
> (input box, ok)
> Body
> (textarea box ok)
> Array
> (save button)
>
> It's the word "array" that seems to appear out of no where even tho
> the add.thtml code is verbatim as in the tutorial. Why is this word
> "Array" showing up in the browser view when /posts/add view is
> requested?
>
> In the HTML for this page... it shows...
>  textarea>Array   
>
> Where does this come from? Is this something in the $html helper?
>
> Thoughts?
> Ian


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: How to do mod_rewrite????

2007-10-08 Thread schneimi

Hi,

not sure what version of Cake you use, but when I installed the latest
stable version of cakePHP, I was also very confused, mod_rewriting was
obviously working on my apache (tested it seperatly),  but no matter
what I tried, I didn't come to see any css effects on the cake site.

Well I could'nt solve the problem, but all looked nice after
installing Cake 1.2, so maybe thats an option for you too.

Michael

SIXS schrieb:
> How do you actually set the mod rewrite. I  set it in sthe system httpd.conf, 
> but I don't see the color in the cakephp page.
> Is there another issue.
> I have installed it several times and hve installed it in another system, 
> both XP OS. I am going to install it on a Ubuntu system.
> Jim


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



How to do mod_rewrite????

2007-10-08 Thread SIXS
How do you actually set the mod rewrite. I  set it in sthe system httpd.conf, 
but I don't see the color in the cakephp page.
Is there another issue.
I have installed it several times and hve installed it in another system, both 
XP OS. I am going to install it on a Ubuntu system.
Jim
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: Badword Bahavior

2007-10-08 Thread Zoltan

That's the way I would do it too :(
I guess there are to solutions - you could make BadWords a component
instead of a behavior and use multiple models that way, the other
would be to store your bad-words in an array, rather than calling them
from the database. You could even move it into the config file for
easier editing.

Zoltan
www.yyztech.ca

On Oct 8, 12:28 pm, Braindead <[EMAIL PROTECTED]> wrote:
> I'm trying to write a badword behavior for my guestbook, where a
> guestbook entry has to be verified when one or more badwords are
> detected inside the guestbook entry. My badwords are stored in a
> database. The problem is how to query the badwords, when the current
> model is the guestbook?
>
> Is the only possibility something like
>
> $badwords = $model->query('SELECT `entry` FROM `badwords` ORDER BY
> `entry`');
>
> or is there a more "cake-like" way?


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Badword Bahavior

2007-10-08 Thread Braindead

I'm trying to write a badword behavior for my guestbook, where a
guestbook entry has to be verified when one or more badwords are
detected inside the guestbook entry. My badwords are stored in a
database. The problem is how to query the badwords, when the current
model is the guestbook?

Is the only possibility something like

$badwords = $model->query('SELECT `entry` FROM `badwords` ORDER BY
`entry`');

or is there a more "cake-like" way?


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: Testing Enum Fields

2007-10-08 Thread Daniel Hofstetter

Hi Jérémie,

> Nice to read you, i've learned and progressed a lot reading your
> blog !

Thanks :)

> I'm using SimpleTest ...
>
> At least how could I bypass this problem for my tests ?
> Or define them like strings just for the tests ?

I am sorry, but I don't know how you could bypass this problem...

> And is there a reason cakephp doesn't support enums ?

I don't know what's the reason for that, maybe because enums are not
supported by all database systems.

Regards,
daniel

--
Daniel Hofstetter
http://cakebaker.42dh.com


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: Checkboxes instead of multiple select

2007-10-08 Thread R. Rajesh Jeba Anbiah

On Oct 7, 3:00 pm, "Jon Bennett" <[EMAIL PROTECTED]> wrote:
> hi Stefan,
>
> > Is it possible to use checkboxes instead of a multiple select to
> > represent data in a many-to-many relation?
>
> I wrote a helper ages ago that does just that, check 
> outhttp://cakeforge.org/snippet/detail.php?type=snippet&id=190

This is off-topic for this thread; but, I believe this thread
attracts HABTM experts. I have a problem exactly mentioned here in
http://groups.google.com/group/cake-php/browse_frm/thread/d9a3860f821ced7a/0cd5dfad14617acb?#0cd5dfad14617acb

Say, we have posts, tags and posts_tags tables. posts_tags table
has extra data apart from map values, say, id, post_id, tag_id, foo1,
foo2

   If it's classical way, when adding a post, I'd have a DOM append so
that the fields for posts_tags can be added in posts/add/id:
Form for "post" record
DOM form for related tags:
checkboxes to select tags, input box for foo1, foo2  [JS: click to add
more tag info]

   How this can be achieved? TIA

--
  
Email: rrjanbiah-at-Y!comBlog: http://rajeshanbiah.blogspot.com/


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: Uploading Large Files

2007-10-08 Thread [EMAIL PROTECTED]

Exactly what I need. Thanks

On 7 Oct, 02:39, MicroAngelo <[EMAIL PROTECTED]> wrote:
> Hi Marius,
>
> One of our clients wanted a progress bar, so we used Thin File Upload,
> a Java solution that features this and drag-and-drop file support too
> (it can be found athttp://upload.thinfile.com- it's not free
> though), along with Chris Partridge's excellent File Handler Component
> in Cake (I used to be able to find it in the Bakery...) and they work
> together pretty well.
>
> Good luck!
>
> On Oct 5, 3:41 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]>
> wrote:
>
> > Hi,
>
> > I am trying to figure out what's the best way to upload large files.
> > Let's say 10MB+. It has to be part of the web interface therefore FTP
> > is not an option... Java, Flash would do. I just can't find anything
> > suitable.
>
> > Thanks


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: Testing Enum Fields

2007-10-08 Thread Jeremie

Hi,

Nice to read you, i've learned and progressed a lot reading your
blog !

I'm using SimpleTest ...

At least how could I bypass this problem for my tests ?
Or define them like strings just for the tests ?

And is there a reason cakephp doesn't support enums ?

Thanks
Jérémie


On 8 oct, 16:20, Daniel Hofstetter <[EMAIL PROTECTED]> wrote:
> Hi Jérémie,
>
> > I'm trying CakePHP 1.2 Test Suite today, 
> > withhttp://bakery.cakephp.org/articles/view/testing-models-with-cakephp-1...
> > andhttp://cakebaker.42dh.com/2006/12/18/testing-with-cakephp-12-a-preview/
>
> > But when i run my first test, i get an exception for every Enum type
> > in my DB :
>
> > Exception: E:\project\core\tests\cases\models\user.test.php ->
> > UserTestCase -> start -> Unexpected PHP error [Column type
> > enum('M','Mme','Mlle') does not exist] severity [E_USER_WARNING] in [E:
> > \project\cake\libs\model\datasources\dbo\dbo_mysql.php line 508]
>
> > Did i do something wrong ?
> > Don't CakePHP Testsuite allow to use some enum types ?
> > And how could I test my project anyway ?
>
> Well, enums are not supported in CakePHP.
>
> And you have to be careful as the two links you posted use different
> test suites. The first one uses the built-in test suite, whereas the
> other uses the test suite I wrote..
>
> HTH
>
> daniel
>
> --
> Daniel Hofstetterhttp://cakebaker.42dh.com


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: Eclipse code completion in Views

2007-10-08 Thread schneimi

Yes, you are right, the second step is not necessary.

Stu schrieb:
> Ah ok, I'd done the first step but not the second step. I'm at work at
> the moment, but I'll do the second step when I get home.
>
> Thanks
>
> On Oct 7, 5:28 pm, schneimi <[EMAIL PROTECTED]> wrote:
> > Hi,
> >
> > You have to do two steps:
> >
> > - Add *.thtml to Preferences->General->Content Types->PHP Content
> > Type
> > - Add *.thtml and assign the PHP-Editor in Preferences->General-
> >
> > >Editors->File Associations
> >
> > regards,
> >
> > Michael
> >
> > Stu schrieb:
> >
> > > Hi Bakers,
> >
> > > Does anyone know if it is possible to get code completion working for
> > > Views in eclipse? I've got it working for Models in a controller, but
> > > can't seem to get any code completion when in a View, and do something
> > > like  I'm just wondering if there is some
> > > configuration option I'm missing or something like that.
> >
> > > Any help would be appreciated,
> >
> > > thanks
> >
> > > Stu


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: Testing Enum Fields

2007-10-08 Thread Daniel Hofstetter

Hi Jérémie,

> I'm trying CakePHP 1.2 Test Suite today, 
> withhttp://bakery.cakephp.org/articles/view/testing-models-with-cakephp-1...
> andhttp://cakebaker.42dh.com/2006/12/18/testing-with-cakephp-12-a-preview/
>
> But when i run my first test, i get an exception for every Enum type
> in my DB :
>
> Exception: E:\project\core\tests\cases\models\user.test.php ->
> UserTestCase -> start -> Unexpected PHP error [Column type
> enum('M','Mme','Mlle') does not exist] severity [E_USER_WARNING] in [E:
> \project\cake\libs\model\datasources\dbo\dbo_mysql.php line 508]
>
> Did i do something wrong ?
> Don't CakePHP Testsuite allow to use some enum types ?
> And how could I test my project anyway ?

Well, enums are not supported in CakePHP.

And you have to be careful as the two links you posted use different
test suites. The first one uses the built-in test suite, whereas the
other uses the test suite I wrote..

HTH

daniel

--
Daniel Hofstetter
http://cakebaker.42dh.com


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Testing Enum Fields

2007-10-08 Thread Jeremie

Hi,

I'm trying CakePHP 1.2 Test Suite today, with
http://bakery.cakephp.org/articles/view/testing-models-with-cakephp-1-2-test-suite
and
http://cakebaker.42dh.com/2006/12/18/testing-with-cakephp-12-a-preview/

But when i run my first test, i get an exception for every Enum type
in my DB :

Exception: E:\project\core\tests\cases\models\user.test.php ->
UserTestCase -> start -> Unexpected PHP error [Column type
enum('M','Mme','Mlle') does not exist] severity [E_USER_WARNING] in [E:
\project\cake\libs\model\datasources\dbo\dbo_mysql.php line 508]

Did i do something wrong ?
Don't CakePHP Testsuite allow to use some enum types ?
And how could I test my project anyway ?

Thanks if you can help !
Have a nice day ...
Jérémie


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: Using php usort or uksort functions in Cake

2007-10-08 Thread MikeK

Finally got it figured out. Was a naming issue with objects -- need an
array with the name of the class, in this case the controller.

class MyController extends AppContoller {

function mycmp($a, $b)
{}
function index() {
uksort($nbaits, array('MyController','mycmp'));
}


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: Useing bake script to create models

2007-10-08 Thread [EMAIL PROTECTED]

hi,
i have the same problem.
I made a simple test db,

table:users
id int(10) primary key unsigned autoincrement
profile_id int(10)
name

table profiles
id int(10) primary key unsigned auto inc
name

When i try to bake bake.php doesn't find relations between the two
models.
I getting mad about this stupid thing, please help me!

p.s.
i tried to copy / paste the sql dump from cakephp.org ' s model manual
(HABTM) and it works !


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: Eclipse code completion in Views

2007-10-08 Thread Stu

Ah ok, I'd done the first step but not the second step. I'm at work at
the moment, but I'll do the second step when I get home.

Thanks

On Oct 7, 5:28 pm, schneimi <[EMAIL PROTECTED]> wrote:
> Hi,
>
> You have to do two steps:
>
> - Add *.thtml to Preferences->General->Content Types->PHP Content
> Type
> - Add *.thtml and assign the PHP-Editor in Preferences->General-
>
> >Editors->File Associations
>
> regards,
>
> Michael
>
> Stu schrieb:
>
> > Hi Bakers,
>
> > Does anyone know if it is possible to get code completion working for
> > Views in eclipse? I've got it working for Models in a controller, but
> > can't seem to get any code completion when in a View, and do something
> > like  I'm just wondering if there is some
> > configuration option I'm missing or something like that.
>
> > Any help would be appreciated,
>
> > thanks
>
> > Stu


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: cakePHP friend/buddy system

2007-10-08 Thread avi

Thanks for the reply cakeFreak, I check out all 3 links and I think I
understand it.
However I cannot seem to get it to save. If I try to add a friend to a
user that has an account in the system it doesn't seem to work, it
yields a warning.

Warning (2): preg_match() [function.preg-match]: Delimiter must not be
alphanumeric or backslash [CORE/cake/libs/model/model.php, line 1674]
It is having problems saving the newly constructed $this->data.
Below is my add_friends function


   function addfriend($friend_id = null) {
//$this->data = $this->User->read(array('id'), $this-
>obAuth->getUserId());

//let us try and add friends for the user with 
id=3
$this->data = $this->User->read(array('*'), '3');
//view user's info
print_r($this->data['User']);
$friends = array();
foreach ($this->data['Friend'] as $friend) {
$friends[] = $friend['id'];
}


$friends[] = $friend_id;

echo "friend array:";
print_r($friends);

$admirers = array();
foreach ($this->data['Admirer'] as $admirer) {
$admirers[] = $admirer['id'];
}
$admirers[] = $friend_id;

echo "admirer array:";
print_r($admirers);


unset($this->data['Friend']);
unset($this->data['Admirer']);

$this->data['Friend']['Friend'] = $friends;
$this->data['Admirer']['Admirer'] = $admirers;

echo "printing this->data:";
print_r($this->data);

echo " did it save?: 
".$this->User->save($this->data)."";
   /* if ($this->User->save($this->data)) {
$this->Session->setFlash('Added to Friends.');
}
*/
}


Also, do I need to populate the friend_id in the users table with
anything? such as the user_id? or just blank. Below is the schema of
my users table.

id
friend_id
group_id
firstname
astname
email
password
active

On Oct 3, 6:08 pm, cakeFreak <[EMAIL PROTECTED]> wrote:
> Try to read these posts:
>
> Self-referential has_many :through 
> associationshttp://blog.hasmanythrough.com/2006/4/21/self-referential-through
>
> http://groups.google.com/group/cake-php/browse_frm/thread/c8ebc2097f8...
>
> http://groups.google.com/group/cake-php/browse_frm/thread/e70d4147be0...
>
> Hope this helps!
>
> Dan


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: Getting related data

2007-10-08 Thread andyreimer

Well it seems to work if I switch around the relationship.  If Product
belongsTo Image, then that image record is available to me based on
the presense of the image_id in the product table.  It doesn't really
make sense to say that the product belongs to the image, but thats
just the semantics that cake employs to say "I have a foreign key in
this table, go to another table and get the related record with a
matching primary key" vs. "I have a primary key, go to another table
and find all records with a matching foreign key".

On Oct 7, 11:29 pm, Adwin  Wijaya <[EMAIL PROTECTED]> wrote:
> you can add product_id so that the image only belongs to the one
> product.
>
> Btw, how about to combine the product and image into one table ?
> I used to make as one table instead of doing one on one relationship.
> (less query .. i think)
> cmiiw
>
> adwinwww.wysmedia.com


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: Getting related data

2007-10-08 Thread dardosordi

I think that you can't map this to any cake relationship (bakers,
please correct me if I'm wrong). But you can add a afterFind callback
to your model to fetch the image data, or use a custom query and JOIN
both tables.

If you want to use the automagic on cakephp, I suggest you use a
HABTM:

products:
- id
- stuff

images:
id
path
etc

image_product:
- image_id
- product_id


HTH,

- Dardo.


On Oct 8, 3:29 am, Adwin  Wijaya <[EMAIL PROTECTED]> wrote:
> you can add product_id so that the image only belongs to the one
> product.
>
> Btw, how about to combine the product and image into one table ?
> I used to make as one table instead of doing one on one relationship.
> (less query .. i think)
> cmiiw
>
> adwinwww.wysmedia.com


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: Checkboxes instead of multiple select

2007-10-08 Thread tracyfloyd

stefanb:
I recently had a similar project and ended up doing this in my view
and it seems to be working great so far... obviously you'll need to
change your var names accordingly:

Categories:


 value=""> - 









On Oct 7, 2:55 pm, dardosordi <[EMAIL PROTECTED]> wrote:
> Also there are two great articles in the bakery that will help you:
>
> http://bakery.cakephp.org/articles/view/create-multiple-checkboxes-in...
>
> http://bakery.cakephp.org/articles/view/alternative-methods-for-worki...
>
> On Oct 7, 7:00 am, "Jon Bennett" <[EMAIL PROTECTED]> wrote:
>
> > hi Stefan,
>
> > > Is it possible to use checkboxes instead of a multiple select to
> > > represent data in a many-to-many relation?
>
> > I wrote a helper ages ago that does just that, check 
> > outhttp://cakeforge.org/snippet/detail.php?type=snippet&id=190
>
> > hth
>
> > jon
>
> > --
>
> > jon bennett
> > w:http://www.jben.net/
> > iChat (AIM): jbendotnet Skype: jon-bennett


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: Need help with ajax->sortable

2007-10-08 Thread Mike Griffin

On 07/10/2007, LW <[EMAIL PROTECTED]> wrote:
>
> Hi,
>
> I cant't get this sortable working it seems, maybe someone can give me
> a hint:

I used this page to get my sortable lists set up:
http://dustinweber.com/cakephp/cakephp-sortable-ajax-drag-drops-the-basics/

Instead of putting the images into divs, try putting them into an
unordered list like Dustin uses.

Mike.

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



customize baked views

2007-10-08 Thread cakeFreak

Hey guys,
is there a way to customize the views templates used while baking with
the command line feature?

Should I edit the views in cake/libs/templates/views?

Cheers

Dan


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---