Country -> State combo box Ajax problem

2007-08-31 Thread Ghanshyam Rathod
Hi friends, As i have one form having Country and State combo box. Depend on country selected it will Fill up States automatically. Here is my Code : // file : edit.thtml //calling ajax functions function getstates(st) { country = $('country_name').value; alert(country);

Country -> State combo box Ajax problem

2007-08-31 Thread Ghanshyam Rathod
Hi friends, As i have one form having Country and State combo box. Depend on country selected it will Fill up States automatically. Here is my Code : // file : edit.thtml //calling ajax functions function getstates(st) { country = $('country_name').value; alert(country);

Re: Fw: cakephp Eclipse install where is console???

2007-08-31 Thread SIXS
Thanks for answering. I had already watched the video for installing console. My problem is when I go to where console is susposed to be located in cake as c:\Vertrigo\www\Kake\cake\console there is no console (Vertrigo is a xampp like association of apache, php, mysql) Kake is the name

Re: Join Log Results by Date

2007-08-31 Thread McFadly
Hi Chris - Thanks for ideas. Here's my implementation based on your suggestion: function logs() { $clientLogs = $this->ClientLog->findAll(null, null, 'ClientLog.created DESC', 15); $pubLogs = $this->PubLog->findAll(null, null, 'PubLog.created DESC', 15); $logs = array();

Re: Cannot retrieve new records after saving them

2007-08-31 Thread Chris Hartjes
On 8/31/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > Well, the query definitely runs, as the data exists in the table after > the script completes. The problem is that I'm trying to access the > new row in the table during the same run of the script immediately > after running Model::save

Re: Adding disabled property to tags in

2007-08-31 Thread Chris Hartjes
On 8/31/07, Daniel Ellis <[EMAIL PROTECTED]> wrote: > > I patched my version of cake to add the ability to make select options > disabled. I assume this would be a useful feature for some, is there > somewhere I should check it in? Go to http://trac.cakephp.org and submit your patch as a ticket u

Re: Fw: cakephp Eclipse install where is console???

2007-08-31 Thread Chris Hartjes
On 8/31/07, SIXS <[EMAIL PROTECTED]> wrote: > > Hi, > I a trying to install cakephp in Eclipse and when I get to showing where > console is located I can't find it. I created a cakephp and looked for > console I couldn't find it!. I am on win XP Pro, and Vertrigo(apache, php, > mysql, etc). > >

Re: Join Log Results by Date

2007-08-31 Thread Chris Hartjes
On 8/31/07, McFadly <[EMAIL PROTECTED]> wrote: > > Hello Bakers, > > I have two Models in my database that contain log data. > > ClientLog (id, client_id, message, created) > PubLog (id, pub_id, message, created) > > I would like to have a "Dashboard" page similar to Basecamp or > Facebook, where

problems with midphase hosting

2007-08-31 Thread Alvaro
Hello, I am trying to get working my cakeph application in midphase hosting, doing the same thing I do for others hostings but can't make it work, I get a 404 error. Anywone has experience in this hosting? Thanks Alvaro --~--~-~--~~~---~--~~ You received this me

Re: Cannot retrieve new records after saving them

2007-08-31 Thread [EMAIL PROTECTED]
Well, the query definitely runs, as the data exists in the table after the script completes. The problem is that I'm trying to access the new row in the table during the same run of the script immediately after running Model::save(), under the assumption that this command would immediately save t

Re: Cannot retrieve new records after saving them

2007-08-31 Thread [EMAIL PROTECTED]
Hmmm... Conceptually, that'd be OK for the first time, but not exactly what I would be looking for when I used the same $this->Foo- >field('id', $cond); call for existing records that may have been updated. How would I save the output of getLastInsertId() to the 'id' value of the current instanc

outputting results from a db in groups of common content

2007-08-31 Thread GunitMail
Hello! Ok here is how an entry in my database looks like: [Work] => Array ( [id] => 1 [name] => piece of work 1 [type] => Print [date] => 2006-03-02 [description] => blah blah [content] => WORK! ) How would

Adding disabled property to tags in

2007-08-31 Thread Daniel Ellis
I patched my version of cake to add the ability to make select options disabled. I assume this would be a useful feature for some, is there somewhere I should check it in? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Gro

Re: back functionality

2007-08-31 Thread Chris Hartjes
On 8/31/07, rtanz <[EMAIL PROTECTED]> wrote: > > hi i would like to make a back button on some pages, how can i know > the url of the previous page? thanks If you're in the controller, you can get the previous page via $this->referer(). I use it all the time to send people back to the page they

Fw: cakephp Eclipse install where is console???

2007-08-31 Thread SIXS
- Original Message - From: SIXS To: cake-php@googlegroups.com Sent: Friday, August 31, 2007 11:39 AM Subject: Eclipse install where is console??? Hi, I a trying to install cakephp in Eclipse and when I get to showing where console is located I can't find it. I created a cakephp and

Join Log Results by Date

2007-08-31 Thread McFadly
Hello Bakers, I have two Models in my database that contain log data. ClientLog (id, client_id, message, created) PubLog (id, pub_id, message, created) I would like to have a "Dashboard" page similar to Basecamp or Facebook, where all my log items show up in sequence according to their created

Re: back functionality

2007-08-31 Thread [EMAIL PROTECTED]
store the previous page in a session and use that to make the link, or use the javascript history object. On Sep 1, 12:26 am, rtanz <[EMAIL PROTECTED]> wrote: > hi i would like to make a back button on some pages, how can i know > the url of the previous page? thanks --~--~-~--~~--

back functionality

2007-08-31 Thread rtanz
hi i would like to make a back button on some pages, how can i know the url of the previous page? 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-ph

Cake 1.2 Share Session Across Subdomains

2007-08-31 Thread Ryan Rose
Is it possible to share sessions (stored in the database) across subdomains without changing any of the Cake core files? Thanks. Ryan Rose Vice President Digiwize, Inc. One Technology Drive Tolland, CT 06084 e: [EMAIL PROTECTED] p: 860.730.2631 http://www.digiwize.com --~--~-~--~---

Re: How to implement a loading symbol for a html element- someone help please

2007-08-31 Thread Samuel DeVore
http://ajaxian.com/archives/ajaxload-custom-loading-indicators and look at the example for http://api.cakephp.org/class_ajax_helper.html#7e2e659c88c9cd4d833d531417d7ae03 and then you just have a div with the animated gif in it with display:none as the style attr. On 8/31/07, Chris Hartjes <

Re: Cannot retrieve new records after saving them

2007-08-31 Thread John David Anderson (_psychic_)
On Aug 31, 2007, at 1:24 PM, [EMAIL PROTECTED] wrote: > > I'm working on a CakePHP script running from the command-line. I'm > attempting to check for a record in table "foo", and if it doesn't > exist, I add a new record using the Model::save() method. Afterwards, > I immediately call Model::

Preventing 1.2's form helper from rendering a fieldset with radio buttons

2007-08-31 Thread Aaron Shafovaloff
I'm using the latest SVN update of 1.2 Why all the sudden are all my radio buttons surrounded by fieldsets? Can I disable this part? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this

Cannot retrieve new records after saving them

2007-08-31 Thread [EMAIL PROTECTED]
I'm working on a CakePHP script running from the command-line. I'm attempting to check for a record in table "foo", and if it doesn't exist, I add a new record using the Model::save() method. Afterwards, I immediately call Model::field() to try to capture the auto_incremented "id" field so that

Re: How to implement a loading symbol for a html element- someone help please

2007-08-31 Thread Chris Hartjes
On 8/31/07, Gayathiri <[EMAIL PROTECTED]> wrote: > > Hi, > > I am using a select menu in my webpage. When i select an item, all > subitems under that are retrieved from database and is displayed in > the select menu. Now, again user has to select a subitem from the > menu. Then subsub items under

How to implement a loading symbol for a html element- someone help please

2007-08-31 Thread Gayathiri
Hi, I am using a select menu in my webpage. When i select an item, all subitems under that are retrieved from database and is displayed in the select menu. Now, again user has to select a subitem from the menu. Then subsub items under that are retrieved from database again. It happens like this 3

Eclipse install where is console???

2007-08-31 Thread SIXS
Hi, I a trying to install cakephp in Eclipse and when I get to showing where console is located I can't find it. I created a cakephp and looked for console I couldn't find it!. I am on win XP Pro, and Vertrigo(apache, php, mysql, etc). Thanks for any help. Jim --~--~-~--~~-

Re: Cake & Mysql& UTF-8 :(

2007-08-31 Thread Mech7
Thanks this works great with me in 1.2 :) would be nice if this was added in database.default.php or atleast in the comments. On Aug 31, 6:44 pm, djiize <[EMAIL PROTECTED]> wrote: > if you have Cake 1.2, add 'encoding' => 'utf8' in conf/database.php > if you have Cake 1.1, call query("SET NAME 'U

Re: Cake CPU hungry

2007-08-31 Thread Felix Geisendörfer
> > I'm using expects(), it's pretty handy. My problem might be loading > lot of models but still 'pages' doesn't load any models. Do you know that for sure? If you lets say load the Users model in AppController, then it is more then likely that *all* of your other models are loaded b/c they are

Re: Cake & Mysql& UTF-8 :(

2007-08-31 Thread djiize
if you have Cake 1.2, add 'encoding' => 'utf8' in conf/database.php if you have Cake 1.1, call query("SET NAME 'UTF8' ") just after connexion (don't remember if in database.php or app_model.php) On 31 août, 18:36, Mech7 <[EMAIL PROTECTED]> wrote: > Ah that is great google can't handle them either

Re: Cake & Mysql& UTF-8 :(

2007-08-31 Thread Samuel DeVore
in cake 1.1 I usually add to my app_model.php for the project class AppModel extends Model { function __construct($id = null, $table = null, $ds = null) { parent::__construct($id, $table, $ds); if (!defined('MYSQL_SET_NAMES_UTF8'

Re: Cake CPU hungry

2007-08-31 Thread thequietlab
thanks for your answers, @Simon > ab -n 1000 -c 20 > means that you have 20 concurrent users making 1000 requests. The > important part here is the concurrent bit. ok, sorry I said it wrong - I know what does it mean but I'm not sure what should be the values to simulate traffic at a range like

Cake & Mysql& UTF-8 :(

2007-08-31 Thread Mech7
Does anybody know how to save utf8 charachters properly in Cake.. when i save special characters they get saved very weird in mysql for exmaple: becomes The database table is set to utf8_general_ci and in the html it is set to utf8 too.. The problem seems to come when saving to mysql

Re: Should I access tables from a helper?

2007-08-31 Thread majna
you should query the tables from controller e.g app_controller, use beforeFilter or beforeRender callbacks in app_controller to have menus for all pages. Then set menu array to the view. Use helper to generate menu markup. it's more close to MVC pattern. On Aug 31, 4:56 pm, wgrant <[EMAIL PROT

Should I access tables from a helper?

2007-08-31 Thread wgrant
Hello, My application has a menu bar on every page that is defined in the layout. The elements for the drop menus are stored in my database. It feels right to use a helper to create an array of the menu items to pass to the views / layouts that may need to display a menu. However, is it correct

Re: Searching across HABTM relationships

2007-08-31 Thread Mech7
It seems that there is a new WITH thingy in models there are some more people asking questions about this (including myself) As there is not much info about it except the presentation of 1.2 :( On Aug 31, 4:44 am, KingJackaL <[EMAIL PROTECTED]> wrote: > I should have searched less API/manual/Goog

Re: How to prevent ID manipulations in forms?

2007-08-31 Thread Marcus T. Jaschen
MarcusTerasa wrote: > But if a user manipulates the form and posts a different id, another > entry would be updated or created. So in a real world app it would be > a great security risk. > > What could I do to prevent it? Simply check in your Controller action if the user which requests the cha

Re: Cake CPU hungry

2007-08-31 Thread majna
try profiling with xdebug, use var $persistModel = true; in controller set debug to 0, cache views if u can, or just query results, persistent mysql connection , avoid var $uses() ClassRegistry may help sometimes do not use mod_rewrite On Aug 31, 3:46 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]>

Re: Cake CPU hungry

2007-08-31 Thread [EMAIL PROTECTED]
ab -n 1000 -c 20 means that you have 20 concurrent users making 1000 requests. The important part here is the concurrent bit. There's a wide variety of things you can do to optimise your controller, which are way beyond the scope of a single post, especially since you don't really say anything ab

Re: DBDesigner to CakePHP Scaffold Tool Release Candidate.

2007-08-31 Thread Dérico Filho
Hi... I tested it against CakePHP 1.1.17.5612, but I am on the works to make it compatible with version 1.2 I aim for the future versions to make it a driver for DBDesigner's XML and MySQL Workbench's WBM for the same script... However I've not begun working with MySQL Workbench for 2 reasons: f

ACL question: ACO-ARO links not being set as expected. Why?

2007-08-31 Thread Paul
Hi there, I'm getting more and more frustrated with ACL, so please someone help me before I drive myself mad! I'm sure once I'm over this last hurdle it'll all fall into place :) If i do this: $this->Acl->deny($aroNode,$acoNode); then all the _read, _update etc. fields in the aros_acos table a

Re: Tutorial for user management ?

2007-08-31 Thread alkemann
I am looking for something like this as well. I have tried the ones out there that handles the separate issues, but haven't been able as of yet to put it all together. On Aug 29, 2:42 pm, Mech7 <[EMAIL PROTECTED]> wrote: > Is there a tutorial for cakephp 1.2 how to deal with user > management...

How to prevent ID manipulations in forms?

2007-08-31 Thread MarcusTerasa
Hi, when I use scaffolding, the edit forms contain a hidden field with the id of the current entry. So at post the app knows which entry has to be updated. But if a user manipulates the form and posts a different id, another entry would be updated or created. So in a real world app it would be

Re: DBDesigner to CakePHP Scaffold Tool Release Candidate.

2007-08-31 Thread Dérico Filho
so for I tested it against CakePHP 1.1.17.5612... But I am on the works for supporting 1.2 version... On Aug 30, 3:21 pm, rtconner <[EMAIL PROTECTED]> wrote: > I didnt really see this in the specs, what version(s) of cake will > this work with? > > On Aug 30, 11:14 am, Dérico Filho <[EMAIL PROTEC

Re: Help needed with Router.php

2007-08-31 Thread Ketan Patel
Hi, I thought of this but you then have to define for all the controllers you have and it could easily get out of control. However, till I get better advice, I have done the following. I had a problem only when the default action of the controller would be called. eg. http://www.domain.com/help

Cake CPU hungry

2007-08-31 Thread thequietlab
Hi, I was making some performance tests for my application and I'm pretty scared to see how much CPU is Cake (1.2) using while put in a moderate traffic. I was doing : ab -n 1000 -c 20 (I'm still not sure how does it translates to "real traffic" but used it as a method to stress the server) Test

0 to many

2007-08-31 Thread Vincent
I am trying to get a 0 to many relationship working with scaffolding. practically that would mean than the BelongsTo drop down as a "blank" option. Is that possible? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "

Re: Weird slowness problem.

2007-08-31 Thread Felix Geisendörfer
This may be a stupid question, but have you tried how long a fresh cake install takes to load? This would help to determine if the problem could be within your app. -- Felix -- My Blog: http://www.thinkingphp.org My Business: http://www.fg-webdesign.de Langdon Stevenson

Re: Weird slowness problem.

2007-08-31 Thread Langdon Stevenson
Hi phpjoy Do you have the full directory structure of app/tmp/* in place? If you don't, then you will find that your site may run very slowly. I saw exactly this problem on a W2K development server that I was running. Putting in all of the empty directories made a huge difference (now it r

Re: 1.2 Data Validation Without Corresponding Field in Model

2007-08-31 Thread luke BAKING barker
ketan is right, a possible gotcha is that for a checkbox, I found the only way to get it to behave right is to use var $validate = array( 'terms_and_conditions'=> '/1/' ) setting 'required' = true or 'required'= VALID_NOT_EMPTY wouldnt work for me. This is not a bug (I think), more to do with

Re: Weird slowness problem.

2007-08-31 Thread Preloader
Hi phpjoy, I had some serious performance troubles when placing JS/CSS into Cake's "vendors" folder. All worked fine, when putting them in the app's "vendors" folder instead. Regards, Christoph On 31 Aug., 14:29, Ketan Patel <[EMAIL PROTECTED]> wrote: > seems silly to ask but do you have any f

Re: Help needed with Router.php

2007-08-31 Thread Preloader
Hello Ketan, I'm not sure this is the best solution, but for me it works, if I define all controller actions explicitly at the beginning: Router::connect('/', array('controller' => 'pages', 'action' => 'display', 'home')); Router::connect('/mycontroller1/:action', array('controller' => 'mycontro

Re: Weird slowness problem.

2007-08-31 Thread Ketan Patel
seems silly to ask but do you have any firewalls like Norton or ZoneAlarm, if yes then try turning them off. Also, try unloading the modules that you don't need in the httpd.conf. You may have some sleep statement unknowingly somewhere... Just few thoughts that came to my mind.. Ketan On Aug 31,

Re: 1.2 Data Validation Without Corresponding Field in Model

2007-08-31 Thread Ketan Patel
Even if you do not have a field in the Database, you can add a field the validation array in the model and this would do the check for you. So in your model 'classname' add 'AcceptRules' field to the validation array. Doing so would not have any side-effects as I do it all the time. Ketan On Aug

Weird slowness problem.

2007-08-31 Thread phpjoy
Hey, I have a weird slowness problem on my machine. I use MySQL 5, PHP 5.2x. It's the xampp server installation. I have a very weird problem, my cake page loads up super-slow. I have a new computer, E6750 2g mem. 1 page takes about 3 seconds to load. On my old machine (2 ghz p4), everytime I lo

Help needed with Router.php

2007-08-31 Thread Ketan Patel
I want to create a url such as : http://www.domain.com/cityName-- Having issues with this as cityname could be any city in the world. http://www.domain.com/cityname/ab-12323-ksowld12aca2 -- Works fine. when I give the cityname, it goes on looking for 'CityNameController.php'. Now I can't

Re: using formhelper

2007-08-31 Thread ianh
It is not clear whether this is a 1.1 or a 1.2 question as you have mixed up the helpers. Assuming 1.2 there is all sorts of automagic that you can use. Best idea is to read nates blog entry on this topic at http://cake.insertdesignhere.com/posts/view/15. As a first start, try input('year')); ?>

Re: regarding making upload function work in Cake php

2007-08-31 Thread haj
You made my day LOL On Aug 31, 3:48 am, Grant Cox <[EMAIL PROTECTED]> wrote: > I had that problem recently - the upload button wouldn't work if I > just clicked it, but I found that really pressing it hard would > usually do it. I took the button apart and found out the contacts > were just dirt

using formhelper

2007-08-31 Thread rtanz
how can i translate this into cake code? with the form helper Year im trying to use this but its not working labelTag('year', 'Year');?> input('year', array('size' => '60'));?> tagErrorMsg('year', 'Please enter the Year.');?> --~--~-~--~~

Re: how do make all of views of the same style but one?

2007-08-31 Thread LS
Let me see if I can answer that You can create a default.ctp (are you using 1.2?), and a custom.ctp in the controller you set $this->layout = 'custom' in the required action... If you could describe your problem a little further it would be helpful Regards On Aug 31, 6:42 am, Wimg <[EMAIL

Re: How can I add the .po file in DB

2007-08-31 Thread LS
the .po file is not in the database. It is in the filesystem... That's L10n anyway... I'm not using I18n... Check this out: http://groups.google.com/group/cake-php/msg/13afbe9841b91314 and this: http://groups.google.com/group/cake-php/web/frequent-discussions Regards On Aug 31, 4:50 am, candesp

how do make all of views of the same style but one?

2007-08-31 Thread Wimg
all of views are a log at the top right corner except one view. thx !` --~--~-~--~~~---~--~~ 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

Re: override dbo

2007-08-31 Thread Martin Schapendonk
Hi Jeff, 2007/8/30, Jeff Loiselle aka phishy <[EMAIL PROTECTED]>: > I wrote the Oracle DBO. The version in the latest 1.2 nightly works > and is supported. As Chris Hartjes said, if you have any problems with > that version, submit a ticket to Trac. I would love to get more Oracle > people on boa

How can I add the .po file in DB

2007-08-31 Thread candesprojects
I want to have the interface translation (po file) in the database, this way I can easily change it from browser, and no need for a .po editor. How can I do this with Cake? Thanks, Cristian --~--~-~--~~~---~--~~ You received this message because you are subscrib

Re: regarding making upload function work in Cake php

2007-08-31 Thread Grant Cox
I had that problem recently - the upload button wouldn't work if I just clicked it, but I found that really pressing it hard would usually do it. I took the button apart and found out the contacts were just dirty. Cleaned it with some steel wool (we also sprayed it with some Web 2.0 - looks awes