Re: Random Flash Messages

2011-04-26 Thread chris
Sounds similar to an issue I was seeing. It only happend on IE, my thread is here http://groups.google.com/group/cake-php/browse_thread/thread/f92934d0974fbbec/238e7a934d9ef9f8#238e7a934d9ef9f8 In the end I disabled the cache for all the time a user is logged in, with $this-disableCache();

Re: Socket Server

2011-04-26 Thread Dominik Gajewski
Hi Yes, it is possible use sockets in cake, here you are cake socket api http://api.cakephp.org/class/http-socket I hope that will help you to solve your problem 2011/4/25 carlosrg carlos.roig.gordi...@gmail.com: It's possible to create a server socket with CakePHP? I know about HttpSocket

Re: Random Flash Messages

2011-04-26 Thread AD7six
On Apr 26, 11:30 am, chris chris@internetlogistics.com wrote: Sounds similar to an issue I was seeing. It only happend on IE, my thread is here http://groups.google.com/group/cake-php/browse_thread/thread/f92934d0... In the end I disabled the cache for all the time a user is logged in,

Overriding Auth

2011-04-26 Thread Max
Hi all, I am currently developing in Cake 1.3 and I've been attempting to override the AuthComponent as described in: http://www.milestree.com/php/custom-login-function-with-cakephp http://cakebaker.42dh.com/2009/09/08/extending-cakephps-core-components/ I started out with a working

Theme still referring to base webroot css file

2011-04-26 Thread Doug
Hi. I set up a theme directory structure for themes within my cakephp 1.3 app. It seems to work correctly except that it's still referencing the base css file (app/webroot/css/cake.generic.css) instead of the themed css file (app/views/themed/default/webroot/css/default.css).

hii

2011-04-26 Thread Nilesh Kangane
hiii i m new and want to learn cakephp who can help me?? -- 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,

Re: hii

2011-04-26 Thread AD7six
On Apr 26, 12:39 pm, Nilesh Kangane nilesh.kangan...@gmail.com wrote: hiii i m new and want to learn cakephp who can help me?? You!! ;) -- 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

Re: hii

2011-04-26 Thread Uriel Juliatti Valle
Try it: http://tv.cakephp.org/ 2011/4/26 Nilesh Kangane nilesh.kangan...@gmail.com hiii i m new and want to learn cakephp who can help me?? -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org

Re: Random Flash Messages

2011-04-26 Thread Eduardo Pinto
In my case, this problem happens at least with Chrome and Firefox. Can't test it at IE right now. AD, I'll try to follow your suggestion. On 26 Abr, 12:52, AD7six andydawso...@gmail.com wrote: On Apr 26, 11:30 am, chris chris@internetlogistics.com wrote: Sounds similar to an issue I was

Re: David Persson - Media Plugin - Handing .docx and .xlsx uploads

2011-04-26 Thread designv...@gmail.com
Anyone? On Mar 22, 12:13 pm, designv...@gmail.com designv...@gmail.com wrote: Hi there, Has anyone got any idea how to get the Media Plugin to recognise Office 2007 files correctly? I can upload old .doc files fine and they get put in the 'doc' folder, and don't fail the mime validation

cake schema update wants to alter the whole database

2011-04-26 Thread Simon Males
Hello, I'm attempting to version my sites schema, by running the following command: $ cake -connection dev schema generate -f Which AFAIK generates an appropriate schema.php. To test the newly generated schema I attempt an update: $ cake -connection dev schema update Here I expect a 'Schema

Slow connection to Data base

2011-04-26 Thread Hartmann
Hello everybody! I've installed and configured cake 1.3.8 on an Ubunutu Server 10.10 all right. Before configuring the database, the cake home page was taking 0.15 s to load and was alerting that it wasn't able to connect to the database (of course)... So, I configured my database.php (in my

Re: cake schema update wants to alter the whole database

2011-04-26 Thread Simon Males
On Tue, Apr 26, 2011 at 11:45 PM, Simon Males s...@sime.net.au wrote: Hello, I'm attempting to version my sites schema, by running the following command: $ cake -connection dev schema generate -f Which AFAIK generates an appropriate schema.php. To test the newly generated schema I attempt

Re: Slow connection to Data base

2011-04-26 Thread Diogo Hartmann
Something interesting to add: When I use a localhost database the page are dispalyed very fast. Is anything wrong with usign an external database? Atenciosamente, Diogo Hartmann -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP

Need possibility to paginate an custom array

2011-04-26 Thread heohni
Hi, is there any solution available? Or anybody who can create such a function against payment for me? I need this urgently! Thanks! -- 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

Queries and Relationships(in DBs)

2011-04-26 Thread goluhaque
If I have a long list of ids(extracted from a table), and I have to pull out corresponding records from another table, can it be done via an iteration loop and stored in a *single* variable(so that it can be easily passed on to the view)? Or do I have to use Relationships? -- Our newest site

Re: Need possibility to paginate an custom array

2011-04-26 Thread euromark
ähm, double post? http://groups.google.com/group/cake-php/browse_thread/thread/745f772a6b0e19c6/7a1b094a9a380e75?lnk=gstq=paginate+array#7a1b094a9a380e75 On 26 Apr., 18:15, heohni heidi.anselstet...@consultingteam.de wrote: Hi, is there any solution available? Or anybody who can create such

Re: Queries and Relationships(in DBs)

2011-04-26 Thread Jeremy Burns | Class Outfit
Add a condition to your find: 'conditions' = array('Model.field_name' = $yourArrayOfIds) Jeremy Burns Class Outfit jeremybu...@classoutfit.com http://www.classoutfit.com On 26 Apr 2011, at 17:03, goluhaque wrote: If I have a long list of ids(extracted from a table), and I have to pull out

Re: Server trouble

2011-04-26 Thread cricket
On Sun, Apr 24, 2011 at 11:20 PM, Labe Einhorn fifog...@gmail.com wrote: html file under the root of the site Do you mean in app/webroot? What does Apache's config for this site look like? What is DocumentRoot set to? -- Our newest site for the community: CakePHP Video Tutorials

Re: Socket Server

2011-04-26 Thread Miles J
What do you mean by socket server. Something like a REST system? On Apr 26, 3:07 am, Dominik Gajewski dominikgajews...@gmail.com wrote: Hi Yes, it is possible use sockets in cake, here you are cake socket api http://api.cakephp.org/class/http-socket I hope that will help you to solve your

Re: Some problem on the hasmany relationship

2011-04-26 Thread cricket
Is $this-Stock-id set to something? What does the SQL look like? Set debug to 2 to see it. On Mon, Apr 25, 2011 at 1:25 PM, jackgoh kockh...@gmail.com wrote: Hi, I am facing some problem when deal with a realtionship tables, the record is not display : // in Stock model:        var

Re: Some problem on the hasmany relationship

2011-04-26 Thread jackgoh
Hi, Nobody can help me out??? Regards On Apr 26, 1:25 am, jackgoh kockh...@gmail.com wrote: Hi, I am facing some problem when deal with a realtionship tables, the record is not display : // in Stock model:         var $hasAndBelongsToMany = array(                 'Category' = array(  

Re: Theme still referring to base webroot css file

2011-04-26 Thread cricket
On Mon, Apr 25, 2011 at 12:12 PM, Doug douglas.sprin...@gmail.com wrote: Hi. I set up a theme directory structure for themes within my cakephp class ArticlesController extends AppController {        var $view = 'Theme';        var $theme = 'default'; Looks like you got these mixed up. --

Re: David Persson - Media Plugin - Handing .docx and .xlsx uploads

2011-04-26 Thread cricket
What have you done to debug the problem? What's different about these files? MIME type maybe? What does google say about these files and their MIME? How might the solutions you find online be used with Cake? On Tue, Apr 26, 2011 at 9:23 AM, designv...@gmail.com designv...@gmail.com wrote:

how to make registration form with ajax in cakephp

2011-04-26 Thread taq
hi I need to create ajax registration form who have example or tutorial thank you -- 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

Re: Slow connection to Data base

2011-04-26 Thread cricket
On Tue, Apr 26, 2011 at 9:29 AM, Diogo Hartmann diogo...@gmail.com wrote: Something interesting to add: When I use a localhost database the page are dispalyed very fast. Is anything wrong with usign an external database? Ask yourself if there may be something wrong with accessing YOUR external

Re: Theme still referring to base webroot css file

2011-04-26 Thread Doug Springer
What do you mean? This is per the book. the $view variable should be set to 'Theme' to indicate that I am using themes and the $theme should be set to the name of my theme (which is 'default' in this case) right? On Tue, Apr 26, 2011 at 2:01 PM, cricket zijn.digi...@gmail.com wrote: On Mon, Apr

Re: Theme still referring to base webroot css file

2011-04-26 Thread cricket
On Tue, Apr 26, 2011 at 2:05 PM, Doug Springer douglas.sprin...@gmail.com wrote: What do you mean? This is per the book. the $view variable should be set to 'Theme' to indicate that I am using themes and the $theme should be set to the name of my theme (which is 'default' in this case) right?

Re: Slow connection to Data base

2011-04-26 Thread Ayman Bedair
Well of course a DB on the same server should connect much faster than a DB on an external server. Yet in your case it's on the same LAN so there shouldn't be huge delays with it! The best thing to do is as circket suggested. Create a simple PHP- Script page that uses normal DB connection

read(null,$id) or findById($id) and limit data in associated model

2011-04-26 Thread Salines
Hello. I Have two models,Brands and Products, where Brand hasmany Products When I calling action 'view' in my products controller, I need following result , . SELECT `Brand`.`id`, `Brand`.`active`, `Brand`.`name`, `Brand`.`description`, `Brand`.`image`, `Brand`.`website`, `Brand`.`created`,

Re: read(null,$id) or findById($id) and limit data in associated model

2011-04-26 Thread Salines
UPDATE: class BrandsController extends AppController { var $name = 'Brands'; function view($id = null) { if (!$id) { $this-Session-setFlash(__('Invalid brand', true)); $this-redirect(array('action' = 'index'));

Re: read(null,$id) or findById($id) and limit data in associated model

2011-04-26 Thread Taffarel de Lima
I don't understood cleary what you need, but try this $brand - $this-Brand-Product-find( 'all', array ( 'conditions' = array( 'Product.brand_id' = $some_id ))); I hope this help you! 2011/4/26 Salines nikola.parad...@gmail.com UPDATE: class BrandsController extends AppController {

Re: read(null,$id) or findById($id) and limit data in associated model

2011-04-26 Thread Salines
Sorry my English is not good. when I call exp, www.example.com/brands/view/2 Show some information about the brand and the last 9 related products added to the database, which are active 1 (online status). The brand has many products, maybe 100, but I need only last 9. On 26 tra, 22:13,

Re: read(null,$id) or findById($id) and limit data in associated model

2011-04-26 Thread cricket
On Tue, Apr 26, 2011 at 4:35 PM, Salines nikola.parad...@gmail.com wrote: Sorry my English is not good. when I call exp, www.example.com/brands/view/2 Show some information about the brand and the last 9 related products added to the database, which are active 1 (online status). The brand

Re: read(null,$id) or findById($id) and limit data in associated model

2011-04-26 Thread Salines
Thanks for the instruction, it now works. On 26 tra, 23:22, cricket zijn.digi...@gmail.com wrote: On Tue, Apr 26, 2011 at 4:35 PM, Salines nikola.parad...@gmail.com wrote: Sorry my English is not good. when I call exp,www.example.com/brands/view/2 Show some information about the brand

Aros, Acos, Aros_acos, Groups data disappear from mysql?!

2011-04-26 Thread piousbox
Hi all, I am writing this app: http://InfiniteShelter.com For some reason, at some point (maybe when new users register) either the table aros, or acos, or aros_acos, or groups get truncated. I don't know how it happens, but sometimes my data just disappears from the database. It's very annoying

Re: Publish my project online on shared host

2011-04-26 Thread Emano
Yes, UTF8. Why have any situation that the charset prevents publish site. Att. Thanks On Apr 23, 6:49 pm, Dominik Gajewski dominikgajews...@gmail.com wrote: What kind of charset do you use? UTF8? 2011/4/23 Ryan Schmidt google-2...@ryandesign.com: On Apr 22, 2011, at

how to embed swf animation in home.ctp of my cakephp project

2011-04-26 Thread varai
Hi, Does anyone know on how to embed an swf file in myfolder/views/pages/ home.ctp? I tried the following embed stmt and it is not working: div id=content1 object classid=clsid:D27CDB6E-AE6D-11cf-96B8-44455354 codebase=http://download.macromedia.com/pub/shockwave/cabs/flash/

Re: David Persson - Media Plugin - Handing .docx and .xlsx uploads

2011-04-26 Thread Ryan Snowden
Same here - My docx go through to 'gen', but the MIME type is recognised by the plugin correctly. I didn't see it as a problem though as I can still get the file :) On 27 April 2011 01:58, cricket zijn.digi...@gmail.com wrote: What have you done to debug the problem? What's different about

user defined table fields

2011-04-26 Thread turbo2ltr
I'm working on a system that needs to allow users to add their own attributes to the DB. For instance if you had a movies database, I need to allow the user to go into the attribute configuration and add genre which would allow every record in the movie DB to have a genre field. When they view a

Re: user defined table fields

2011-04-26 Thread Max H. Thayer
Cake relies heavily on pre-defined and configured schemas... for a system you describe you might create a relation (table) called user_defined_attributes with a schema like: table name: user_defined_attributes id (PK) user_id (FK to your user) attrb_title attrb_description table name:

Re: user defined table fields

2011-04-26 Thread turbo2ltr
Thanks, This is precisely the schema I was going to use. I guess I'm not quite sure what I'm askingor maybe it's that I already know the answer.. heh. Guess I'll just play with it and see what I come up with...I think my concern is more around building the view. With the right relationships,

Re: Slow connection to Data base

2011-04-26 Thread Dr. Loboto
http://dev.mysql.com/doc/refman/5.1/en/server-options.html#option_mysqld_skip-name-resolve On Apr 26, 8:12 pm, Hartmann diogo...@gmail.com wrote: Hello everybody! I've installed and configured cake 1.3.8 on an Ubunutu Server 10.10 all right. Before configuring the database, the cake home

Re: Proper associations for a link table that links to the same table

2011-04-26 Thread turbo2ltr
I have to say I'm pretty impressed with cakePHP so far. I really didn't think this would work, but the fact that I just did what seemed logical and it worked like a charm just made cake awesome in my book. So I did confirm that you can indeed HABTM to yourself. I created a link table called

Cake mail vs PHPMailer

2011-04-26 Thread Jeremy Burns
A generic question really. I've seen a few articles that recommend using PHPMailer for generating emails in preference to the Cake email component, especially for bulk emails. Is there any substance to this suggestion? What might the advantages be? -- Our newest site for the community: CakePHP