Re: AJAX form creation with CakePHP

2011-05-15 Thread crisuwork
I just made such a feature 2 weeks ago using a simple javascript function to generate more input fields with file as type. I attached that function to a button "Add files" and that is. You need than in controller to write a loop to parse all the array from $_FILES and for each file do call a "save(

Re: Generate Excel from cakephp

2011-05-15 Thread abhimanyu bv
Thanks man. It worked well. -- 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 email to cake-php+unsubs

Re: AJAX form creation with CakePHP

2011-05-15 Thread dreamingmind
rob, I'm very interested to see what good advice comes. I'm a fair way through a similar problem and it's my first ajax. If nothing useful comes in I can provide a little to get you going but since I'm kind of stumbling my way through this, we can hope for a link to a nice concise article! For my

pivot table?

2011-05-15 Thread Mike Birch
I have the following tables: days, periods, prices The Price model belongsTo Day and Period $this->Price->find('all') returns this: Day Period Price 5 - 20 days 01 May 2011 to 31 Aug 2011 $87.00 21 to 2701 May 2011 to 31 Aug 2011 $66.00 28+ 01 May 2011 to 31 Aug 2011

pivot table?

2011-05-15 Thread Mike Birch
I have the following tables: days, periods, prices The Price model belongsTo Day and Period $this->Price->find('all') returns this: DayPeriod Price 5 - 20 days 01 May 2011 to 31 Aug 2011 $87.00 21 to 2701 May 2011 to 31 Aug 2011 $66.00 28+ 01 May 2011 to 31 Aug 20

AJAX form creation with CakePHP

2011-05-15 Thread Rob
Let me start off by explaining what I want to do and where I am right now. I have a CakePHP site where I can submit projects, and each project has many different elements attached to it. I'm created the add project form to be able to add elements as well. I have successfully created a form that

CakeFest 2011 - The CakePHP Conference

2011-05-15 Thread Graham Weldon
Hey all, I'm thrilled to announce that CakeFest 2011 will be held on September 1st through 4th in Manchester, UK! We've got a dual-stream planned for both the Conference and the Workshops, and we've got some interesting talks lined up! Talks will cover a whole range of topics, and the workshops a

Re: Welcome Page not finding CSS/Images

2011-05-15 Thread Marco Pais
I will, hopefully :) 2011/5/15 Matt Murphy > Do post it! I'm most curious and it will surely help the next guy... > > > On Sun, May 15, 2011 at 5:51 PM, Marco Pais wrote: > >> Hehe, thanks anyway. I'll struggle until I find something.. >> >> >> 2011/5/15 Matt Murphy >> >>> Cogent. You, sir,

Re: Welcome Page not finding CSS/Images

2011-05-15 Thread Matt Murphy
Do post it! I'm most curious and it will surely help the next guy... On Sun, May 15, 2011 at 5:51 PM, Marco Pais wrote: > Hehe, thanks anyway. I'll struggle until I find something.. > > > 2011/5/15 Matt Murphy > >> Cogent. You, sir, have stumped the chump! >> >> Sorry :( out of ideas. If I

Re: Welcome Page not finding CSS/Images

2011-05-15 Thread Marco Pais
Hehe, thanks anyway. I'll struggle until I find something.. 2011/5/15 Matt Murphy > Cogent. You, sir, have stumped the chump! > > Sorry :( out of ideas. If I find something, I'll reply again. > > MM > > > On Sun, May 15, 2011 at 5:47 PM, Marco Pais wrote: > >> Yep, is on and is All. Plus, so

Re: Welcome Page not finding CSS/Images

2011-05-15 Thread Matt Murphy
Cogent. You, sir, have stumped the chump! Sorry :( out of ideas. If I find something, I'll reply again. MM On Sun, May 15, 2011 at 5:47 PM, Marco Pais wrote: > Yep, is on and is All. Plus, some configurations that I've made on these 3 > files resulted on Internal Errors, i.e, this .htaccess

Re: Welcome Page not finding CSS/Images

2011-05-15 Thread Marco Pais
Yep, is on and is All. Plus, some configurations that I've made on these 3 files resulted on Internal Errors, i.e, this .htaccess files are making effect,,, 2011/5/15 Matt Murphy > What's the AllowOverrides setting for the vhost this thing is on? Maybe > try it on All? > > MM > > > On Sun, May

Re: Welcome Page not finding CSS/Images

2011-05-15 Thread Matt Murphy
What's the AllowOverrides setting for the vhost this thing is on? Maybe try it on All? MM On Sun, May 15, 2011 at 5:15 PM, Marco Pais wrote: > Thanks again Matt. > > I've tried several configs of the 3 .htaccess files. Right now, I have > cakephp in a subdirectory of htdocs: > >- htdocs -

Re: Welcome Page not finding CSS/Images

2011-05-15 Thread Marco Pais
Thanks again Matt. I've tried several configs of the 3 .htaccess files. Right now, I have cakephp in a subdirectory of htdocs: - htdocs - c:\xampp\htdocs - cake site - c:\xampp\htdocs\subdir\cakephp So, my 3 .htaccess files follows like this: --- subdir/cakephp/.htaccess -

Re: Welcome Page not finding CSS/Images

2011-05-15 Thread Matt Murphy
you could try adding a RewriteBase for each .htaccess file of the 3 index directories which directs to that directory. (again, / /app, and /app/webroot). Might need terminating slashes... Can't remember. MM On Sun, May 15, 2011 at 4:44 PM, marcopais wrote: > Yes, .htaccess files are there. Plu

Re: Welcome Page not finding CSS/Images

2011-05-15 Thread marcopais
Yes, .htaccess files are there. Plus, I have tried without mod_rewrite, as explained here (is somewhere on cakephp book also), but no luck. I read that, although this problem is mainly caused by mod_rewrite issues, it ca

Re: Welcome Page not finding CSS/Images

2011-05-15 Thread Matt Murphy
You may have failed to transfer the hidden files, namely .htaccess. -- the relevant ones live in / /app and /app/webroot. Are they there? MM On Sun, May 15, 2011 at 4:22 PM, marcopais wrote: > Hi there, Sorry to undig this old thread, but I'm running exactly the same > problem as @ajoberstar.

Re: Welcome Page not finding CSS/Images

2011-05-15 Thread marcopais
Hi there, Sorry to undig this old thread, but I'm running exactly the same problem as @ajoberstar. My welcome page doesn't load any css and some other include files, like the site mainmenu. This problem occurs on a site that I've imported from a online server, where it's working fine. I need to

Re: Welcome Page not finding CSS/Images

2011-05-15 Thread marcopais
Hi there, Sorry to undig this old thread, but I'm running exactly the same problem as @ajoberstar. My welcome page doesn't load any css and some other include files, like the site mainmenu. This problem occurs on a site that I've imported from a online server, where it's working fine. I need to

Re: Accessing other model not working

2011-05-15 Thread Jeremy Burns | Class Outfit
Actually, just read this again. In the prices controller you have to call $this->Price->Part to reach parts, or just $this->Price to reach prices. Jeremy Burns Class Outfit jeremybu...@classoutfit.com http://www.classoutfit.com On 15 May 2011, at 17:09, turbo2ltr wrote: > Well that's the first

Re: Accessing other model not working

2011-05-15 Thread Jeremy Burns | Class Outfit
Have you got your model associations set up correctly? Jeremy Burns Class Outfit jeremybu...@classoutfit.com http://www.classoutfit.com On 15 May 2011, at 17:09, turbo2ltr wrote: > Well that's the first thing I tried and I couldn't get it to work. > > If I try to use any reference like '$this-

RE: Future Development Planning

2011-05-15 Thread Krissy Masters
@ad7six no not planning on testing on live environment J @m murphy I will read up on that. That's would be a better idea for now. Only problem is in this situation for a User to be "visible" on the site their profile needs to be complete with min requirements of related table records must have

Re: Accessing other model not working

2011-05-15 Thread turbo2ltr
Well that's the first thing I tried and I couldn't get it to work. If I try to use any reference like '$this->Part->Price' from the Prices controller I get: Undefined property: PricesController::$Part [APP/controllers/ prices_controller.php, line 52] On May 15, 5:48 am, euromark wrote: > desp

Re: Themes in CakePHP 2.0.0-dev

2011-05-15 Thread AD7six
On May 15, 12:54 pm, Signified wrote: > Trying to set up a mobile theme in CakePHP 2.0.0-dev, but it isn't > working as it did in 1.3. Have there been any changes to the themes > implementation in 2.0? > > Structure as follows: > > app/views/themed/mobile/layouts/default.ctp > app/views/themed/m

Re: Future Development Planning

2011-05-15 Thread AD7six
On May 15, 6:05 am, "Krissy Masters" wrote: > I am working on a rather large project that will expand overtime as the site > grows. So as I have never done this with Cake I was wondering how does one > go about this. > > I know in 3 months we will be adding some new features once there are more

Re: languages ​​flags

2011-05-15 Thread AD7six
On May 15, 3:11 pm, "Carlos Eduardo Sotelo Pinto" wrote: > Hi people > > I have a databse with the his own plugin for language management. It   > includes flag, native name and i18n names, I will try to get my employeer   > approval foe get it public, > because there are so many languages that I

Re: Future Development Planning

2011-05-15 Thread Matt Murphy
Why not make 10k fake users now on your dev site? (Maybe write a controller to iterate through a set of fake creds using your existing user controller to put them in -- or just do it by hand in SQL) Do you need to create any scripting of actions across alot of accounts as well (to simulate use)?

Re: languages ​​flags

2011-05-15 Thread Carlos Eduardo Sotelo Pinto
Hi people I have a databse with the his own plugin for language management. It includes flag, native name and i18n names, I will try to get my employeer approval foe get it public, because there are so many languages that I dont have the iso and utf names that all of us can fill and get a p

Re: languages ​​flags

2011-05-15 Thread Salines
This works in firefox, might not work in other browsers. On 15 svi, 10:16, pedro sastre wrote: > Thanks, I has been a great help > > 2011/5/14 Salines > > > > > > > > > > > /* CSS */ > > > select option{ > >        padding: 4px 0px 0px 24px; > >        background-repeat: no-repeat; > >        ba

Re: Accessing other model not working

2011-05-15 Thread euromark
despite the fact that your code doesnt really look too cakish the correct approach to access related models is through chaining: $this->Part->Price->foo(); On 15 Mai, 06:43, turbo2ltr wrote: > Parts hasMany Prices. > Parts belongsTo Prices > > The idea is a part can have many prices but Part wi

Themes in CakePHP 2.0.0-dev

2011-05-15 Thread Signified
Trying to set up a mobile theme in CakePHP 2.0.0-dev, but it isn't working as it did in 1.3. Have there been any changes to the themes implementation in 2.0? Structure as follows: app/views/themed/mobile/layouts/default.ctp app/views/themed/mobile/pages/home.ctp Then in app/app_controller.php:

Re: languages ​​flags

2011-05-15 Thread pedro sastre
Thanks, I has been a great help 2011/5/14 Salines > /* CSS */ > > select option{ >padding: 4px 0px 0px 24px; >background-repeat: no-repeat; >background-position: 4px center; > } > > /*flags*/ > select option[value="cat"] { >background-image: url(../img/admin/flags