Re: problem with TinyMCE under debug mode

2010-03-31 Thread WebbedIT
Are you using something like Firebug and if so is it showing any errors in the console? I'm using TinyMCE without issue, to compare your setup to mine you can read my blog entry: http://webbedit.co.uk/blog_posts/view/tinymce-cakephp-mcimagemanager-mcfilemanager HTH Paul Check out the new

Re: Set class help needed

2010-03-31 Thread WebbedIT
Does the form helper automagically create select lists with OPTGROUPS? Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. You received this message because you are subscribed to the Google Groups CakePHP group. To post to this

Re: Associated model not returning all data

2010-03-31 Thread WhyNotSmile
Thanks John, that solved it! On Mar 30, 4:43 pm, John Andersen j.andersen...@gmail.com wrote: Check your name of the BannedUser model filename, should be banned_user.php! Enjoy,    John On Mar 30, 4:28 pm, WhyNotSmile sharongilmor...@googlemail.com wrote: I have 3 models in my app:  

Re: Multiple Table-Model, Multiple DB

2010-03-31 Thread cupidoly
Jeremy Burns, I truly salute you for such a detailed explanation. Actually, I always prefer RDBMS. I just wanted to try a new concept. I have already mentioned that this is just a concept, nothing into implementation. We are just brainstorming. Our boss likes any new idea, let it be bullshit. He

Re: Multiple Table-Model, Multiple DB

2010-03-31 Thread Jeremy Burns
No worries. Sounds like your database needs tuning (indexes etc). I'd look there first. I'd also examine what data you are querying to make sure you are not retrieving unnecessary data. If you are going to go the Cake route (which I'd highly recommend) then I'd encourage you to look at these

Re: Retrieving objects from the DB instead of arrays

2010-03-31 Thread Christian Leskowsky
The cookbook is really comprehensive. The content isn't always where I'd expect it to be but I found reading it from top to bottom several times very helpful. Beyond that I'd say just start building your project and structure it the way you want within the confines of Cakely convention. Your 2nd

Re: Validating not in list

2010-03-31 Thread moos3
What you are going to want to is this,in your add or create cunstion add this bit of code: $nicknames=array('mike','gizmo','root'); if (in_array($this-data['User']['username'],$nicknames)){ $this-Session-setFlash('nickname is reserved please try another one', 'default', array('class'='bad');

Re: Cake 1.2.6 - Can't bake anything

2010-03-31 Thread Jonathon Musters
I would start with the connection string. Making sure that the user/password has access and that even sql will allow remote connection by ip (tcp/ip) and named pipe On 3/30/10, Ed Propsner crotchf...@gmail.com wrote: Just checking ... I'm new to Cake as well but seen it happen all too many

Re: Cake 1.2.6 - Can't bake anything

2010-03-31 Thread Jay Childers
The connection parameters are solid, the authenticAtion is solid, and theserver def. Receives remote requests. This is more a problem with the bake application itself. Sent from my iPhone On Mar 31, 2010, at 6:44 AM, Jonathon Musters luvz2...@gmail.com wrote: I would start with the

Re: Cake 1.2.6 - Can't bake anything

2010-03-31 Thread Jeremy Burns
Is it worth posting your database configuration file (with username, password and server details obscured)? Jeremy Burns jeremybu...@me.com On 31 Mar 2010, at 13:17, Jay Childers wrote: The connection parameters are solid, the authenticAtion is solid, and theserver def. Receives remote

Re: Cake 1.2.6 - Can't bake anything

2010-03-31 Thread Jay Childers
?php class DATABASE_CONFIG { var $default = array( 'driver' = 'mssql', 'persistent' = false, 'host' = 'xxx', 'port' = 1433, 'login' = 'xxx', 'password' = '', 'database' = 'x', ); } ? On Wed, Mar 31, 2010 at 7:18 AM, Jeremy Burns jeremybu...@me.com wrote: Is

Re: Cake 1.2.6 - Can't bake anything

2010-03-31 Thread Christian Leskowsky
Is a sql server driver included as part of a stock php install? On Wed, Mar 31, 2010 at 9:06 AM, Jay Childers mcfro...@gmail.com wrote: ?php class DATABASE_CONFIG { var $default = array( 'driver' = 'mssql', 'persistent' = false, 'host' = 'xxx', 'port' = 1433, 'login' =

Help! Files being read from wrong directory

2010-03-31 Thread TobyG
Hi there, Hope someone can help, as I've just spent the last 2.5 hrs trying to track down the cause of this problem, without any success. I have a cakePHP application happily running in it's own subdirectory on our shared hosting server, I have frequently used an alternative subdirectory to

Re: Cake 1.2.6 - Can't bake anything

2010-03-31 Thread Jay Childers
Yes it is. I have other apps not using cakephp that connect to this server correctly. On Wed, Mar 31, 2010 at 8:36 AM, Christian Leskowsky christian.leskow...@gmail.com wrote: Is a sql server driver included as part of a stock php install? On Wed, Mar 31, 2010 at 9:06 AM, Jay Childers

Re: Further Datasource documentation

2010-03-31 Thread Lucca Mordente
Not yet! I stopped to work on that for a while... However, I shall release it as soon as it get good! Lucca Mordente On Wed, Mar 31, 2010 at 2:09 AM, alan zeroaster...@gmail.com wrote: Did you ever build the datasource? Want to release it on cakeforge or here? On Mar 18, 8:56 pm, Lucca

Re: Help! Files being read from wrong directory

2010-03-31 Thread Dr. Loboto
Clear Cake caches. This may occur if you copy temps from one install to another. On Mar 31, 7:44 pm, TobyG toby.i.griffi...@googlemail.com wrote: Hi there, Hope someone can help, as I've just spent the last 2.5 hrs trying to track down the cause of this problem, without any success. I have

Re: Set class help needed

2010-03-31 Thread Dr. Loboto
If you pass fields option to find(list) as described for grouping - this will do all the magic. On Mar 31, 3:13 pm, WebbedIT p...@webbedit.co.uk wrote: Does the form helper automagically create select lists with OPTGROUPS? Check out the new CakePHP Questions site http://cakeqs.org and help

Class 'TreeBehavior' not found

2010-03-31 Thread Michel Kogan
when class GroupTreeBehavior extending class TreeBehavior, I got this error: [quote] Fatal error: Class 'TreeBehavior' not found in /var/www/cakephp/app/ models/behaviors/group_tree.php on line 2 [/quote] line 2 is: [code] class GroupTreeBehavior extends TreeBehavior [/code] what's the problem

My problem solved :)

2010-03-31 Thread Michel Kogan
my problem solved just by adding this line before class definition: App::import('Behavior','Tree'); thanks :) Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. You received this message because you are subscribed to the Google

How I can add USE INDEX() find() method

2010-03-31 Thread max
Hello I want force use mysql multiple-field index. Mysql don't use multiple-field index in my query. How I can add USE INDEX to the Model-find() method? After call Model-find() method Cakephp executed this query SELECT * FROM `table` where a=1 AND b2 ORDER BY b How I can add USE INDEX into

Undefined index

2010-03-31 Thread newbie
Hi All, I'm getting error: Notice (8): Undefined index: Audit [APP\views\audits\indexsln.ctp, line 32] Notice (8): Undefined index: Endpoint the codes are index.ctp: ?php $options = array_combine ($a_eid, $a_sln); //$form-create('audits' echo $form-create('Audit', array(

Re: Possible to blank (hide) columns and show those again in a complete rendered view?

2010-03-31 Thread sebb86
Hello, With this code, my problem is solved. [CODE] script type=text/javascript function toggleColumn(table, column) { for (var i = 0; i table.rows.length; i++){ if (table.rows[i].cells.length column){ var cell = table.rows[i].cells[column];

Re: Validating not in list

2010-03-31 Thread John Andersen
I would go with the custom validation, as you suggested! Enjoy, John On Mar 30, 10:19 pm, Bart vangeneug...@gmail.com wrote: Hello, I'm trying to build an application that is User based. However, I want to reserve some nicknames so you can't register them. When going over the validation

Re: Class 'TreeBehavior' not found

2010-03-31 Thread John Andersen
You probably have to include it yourself, probably using App::import, but that is only a guess from my side :) Enjoy, John On Mar 31, 1:19 pm, Michel Kogan mahnaz...@gmail.com wrote: when class GroupTreeBehavior extending class TreeBehavior, I got this error: [quote] Fatal error: Class

Re: Class 'TreeBehavior' not found

2010-03-31 Thread John Andersen
Ok, just saw the next message in the line! SOLVED On Mar 31, 7:36 pm, John Andersen j.andersen...@gmail.com wrote: You probably have to include it yourself, probably using App::import, but that is only a guess from my side :) Enjoy,    John On Mar 31, 1:19 pm, Michel Kogan

Re: Undefined index

2010-03-31 Thread John Andersen
Please look at the code at line 32 from the indexsln.ctp file. Compare the index names with the expected structure. Do you really have an index named Endpoint? If you still can't see the error, then please show the code at line 32, so we also may be able to look at it :) Enjoy, John On Mar 31,

$this-...-query(...);

2010-03-31 Thread Dominik Kukacka
Hey everyone, i tried to make an join query on two tables! my query is: SELECT * FROM planets AS Planet LEFT OUTER JOIN buildings AS Building ON (Planet.id = Building.planet_id) WHERE Building.user_id=1; so, the query works well in my PMA and in Workbench (CL), but in cakePHP it

Re: Cake 1.2.6 - Can't bake anything

2010-03-31 Thread jejk
Hello Have you checked driver issues : http://osdir.com/ml/CakePHP/2009-07/msg00275.html http://forums.iis.net/t/1156341.aspx JK On 30 mar, 14:53, McFrosty mcfro...@gmail.com wrote: So, I'm new to Cake...that being said, I followed all the directions and went through the blog tutorial, so I

Re: Set class help needed

2010-03-31 Thread cricket
On Mar 31, 10:16 am, Dr. Loboto drlob...@gmail.com wrote: If you pass fields option to find(list) as described for grouping - this will do all the magic. Thanks, both, for the tip. I'd forgotten about that option (I don't think I've used it before). I'm not sure that it'll work in this case,

Re: $this-...-query(...);

2010-03-31 Thread John Andersen
We need more information! How are you realizing your query - are you using CakePHP models find or query method? Please show the code where you are using your query! Enjoy, John On Mar 31, 6:18 pm, Dominik Kukacka dominik.kuka...@gmail.com wrote: Hey everyone, i tried to make an join query

Re: Validating not in list

2010-03-31 Thread Bart Vangeneugden
Hello, thanks for the responses. I used custom validation the way moos3 suggested. Thanks, Bart On Wed, Mar 31, 2010 at 18:33, John Andersen j.andersen...@gmail.comwrote: I would go with the custom validation, as you suggested! Enjoy, John On Mar 30, 10:19 pm, Bart

Re: $this-...-query(...);

2010-03-31 Thread Dominik Kukacka
Hey my complete function is: $user = $this-Auth-user(); $this-Planet-recursive = 0; $planets = $this-Planet-query(SELECT * FROM planets AS Planet LEFT OUTER JOIN buildings AS Building

Re: $this-...-query(...);

2010-03-31 Thread John Andersen
I suggest you turn on debug and print out what is returned from the query, because the query is going straight to the database - CakePHP is not doing anything to it! So what you see in your debug information in your first post is not related to this query! What your first post debug information

Use singleton for database connection

2010-03-31 Thread dyutiman
Hi, I need to run multiple processes of my application, built in Cakephp. And for that I need it to use singleton for its database class. Is there any way I can achieve that here... Have anybody thought about this.. thanks Dyutiman Check out the new CakePHP Questions site http://cakeqs.org and

Re: Use singleton for database connection

2010-03-31 Thread Christian Leskowsky
Could you give us more background? On Wed, Mar 31, 2010 at 4:06 PM, dyutiman dyutiman.chaudh...@gmail.comwrote: Hi, I need to run multiple processes of my application, built in Cakephp. And for that I need it to use singleton for its database class. Is there any way I can achieve that

Re: Newbie question for best practice on how to combine CakePHP with a (given) design

2010-03-31 Thread janitor048
Hey guys, thanks a lot for these very useful hints. I will definitely do some more reading and start experimenting along the lines of your suggestions. And probably come back with more specific questions then.. :-) Cheers, Oliver On Mar 29, 6:05 pm, cricket zijn.digi...@gmail.com wrote: To

Queue plugin trouble

2010-03-31 Thread cricket
I've set up the Queue plugin to handle email jobs for a site. It's worked pretty well but suddenly I'm seeing multiple emails go out or none at all. It seems that the worker is either not being launched or is failing to properly update the DB (so completed jobs are not marked as such). I should

All my Page can't find/index

2010-03-31 Thread punyaronald
Hii ... My website host at Multiple Server. Main server at Indonesia (http:// www.jayakartahotelsresorts.com) . at this server my website running well. But i have problem at other server, Server Singapore (http:// sg.jayakartahotelsresorts.com) and server USA (http://

always use singular model and controller names

2010-03-31 Thread tekcorap
Hi everyone, I have a small problem. I'm using CakePHP 1.2.6. Unfortunately, not as in English plurals in Turkish. eg makale(article) in the plural of the word Turkish makaleler (not articles). Create a model when I check the articles CakePHP table names should be in the form of my makalelers. I

App::import - not working, how to bugtrace

2010-03-31 Thread schizophrenie
Hi @ all, i was following up a googlemap tutorial, i've recognized that the code is old, so i've updated nearly everything but one thing isn't working. instead of vendor('googlegeo') i am using App::import('Vendor', 'googlegeo') but i think its not loading, because my class within is not

Re: App::import - not working, how to bugtrace

2010-03-31 Thread cricket
On Mar 31, 7:36 pm, schizophrenie yaf...@yahoo.de wrote: Hi  @ all, i was following up a googlemap tutorial, i've recognized that the code is old, so i've updated nearly everything but one thing isn't working. instead of vendor('googlegeo')  i am using  App::import('Vendor', 'googlegeo')

Can I do the following with cakephp?

2010-03-31 Thread Bankai
- Export results of a database table to excel - Have an autosave feature like google docs into my web app - Whats the best javascript framework (jquery, mootools, prototype, etc) to use along with cakephp And now the biggie! - Lets say I live in a third world country (which I do), and the lights

Re: always use singular model and controller names

2010-03-31 Thread Jeremy Burns
Try adding some custom inflections (plurals): http://book.cakephp.org/view/953/Inflections Jeremy Burns jeremybu...@me.com On 31 Mar 2010, at 22:42, tekcorap wrote: Hi everyone, I have a small problem. I'm using CakePHP 1.2.6. Unfortunately, not as in English plurals in Turkish. eg

Re: Can I do the following with cakephp?

2010-03-31 Thread cricket
On Apr 1, 12:46 am, Bankai hgnelso...@gmail.com wrote: - Export results of a database table to excel Have a look at this article: http://bakery.cakephp.org/articles/view/csv-helper-php5 Be sure to see the author's updated version here: http://ifunk.net/cakephp/helpers/csv.php.txt Finally,

Custom flash messages

2010-03-31 Thread Ed Propsner
I've been playing around trying to customize my flash messages with CSS and I'm having a bit of trouble. I tried to define the class with the message itself [code]$this-Session-setFlash(__(' Some Flash message here ', array('class' = 'flash_failure')));[/code] I also tried to use