Chat in Cakephp

2011-03-29 Thread Shashank
Hi, I want to implement chat in my cakephp. I did a search over the net and found only one Ajax Chat Plugin, but i have two issues in it: 1. How to implement it. I am getting problems in that. 2. Is this is the only plugin available for chat in cakephp?? Thanks -- Our newest site for the

JS at bottom of page

2011-03-29 Thread Krissy Masters
I am just trying out the new JS helper and going thru the book I simply added this into the middle of a random page to test it out ?php $this-Html-scriptStart(array('inline' = false, 'cache' = true)); echo $this-Js-alert('I am in the javascript'); $this-Html-scriptEnd();? In the layout

Re: JS at bottom of page

2011-03-29 Thread Andras Kende
Krissy, I think js-writebuffer is for something else ... Just move the js stuff from header to bottom as: ?php echo $this-Html-script('jquery.js'); ? ?php echo $scripts_for_layout; ? /body /html Andras Kende http://www.kende.com On Mar 29, 2011, at 2:25 AM, Krissy Masters wrote: I am just

Re: Chat in Cakephp

2011-03-29 Thread Phang Mulianto
maybe you can use other opensource chat system, and plug it in your cake app... or you build a new one with your knowledge. i choose build it from zero myself, so i can also practice my coding experience. tq On Tue, Mar 29, 2011 at 2:12 PM, Shashank cooldude17202...@gmail.comwrote: Hi, I

Re: Chat in Cakephp

2011-03-29 Thread Shashank
Ya i think you are right. Building it from zero will be a gud idea. On Tue, Mar 29, 2011 at 1:31 PM, Phang Mulianto braveh...@gmail.com wrote: maybe you can use other opensource chat system, and plug it in your cake app... or you build a new one with your knowledge. i choose build it from

Re: Chat in Cakephp

2011-03-29 Thread Shashank
I tried implementing the Ajax Chat but getting some problems in it. 1. When i click on Send, it takes me to a blank chat/post page. and if i come back to my original page its showing something like ds Loading... Name Message I am not getting where i am doing wrong. Even while implementing the

Datasource schemas defined into models

2011-03-29 Thread Clement Hallet
Hello CakePHP, Trying to implement a CouchDB datasource and to closely follow the CakePHP guidelines, I'm in a trick situation : When saving a new record, it's required to have the fields matching the schema : https://github.com/cakephp/cakephp/blob/master/cake/libs/model/model.php#L1308 So,

CakePHP Media View Download of PDF Files Size Limit?

2011-03-29 Thread Lawrence
I've setup downloading of PDF files using the media view. It's working great and I can basically force authentication prior to users downloading the files. The one problem I've run into is that once a PDF file goes over a certain size, the file won't download. I'm given the prompt to download the

about jquery and ajax in cakephp

2011-03-29 Thread abhimanyu bv
Hi, I have searched in google on the topic jquery and ajax in cakephp, but the articles shown are somewhat complex. are there any examples or samples here so that i can learn. -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP

about jquery and ajax in cakephp

2011-03-29 Thread abhimanyu bv
Hi, I have searched in google on the topic jquery and ajax in cakephp, but the articles shown are somewhat complex. are there any examples or samples here so that i can learn. -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP

Datasource schemas defined into models

2011-03-29 Thread Clément Hallet
Hello CakePHP, Trying to implement a CouchDB datasource and to closely follow the CakePHP guidelines, I'm in a trick situation : When saving a new record, it's required to have the fields matching the schema : https://github.com/cakephp/cakephp/blob/master/cake/libs/model/model.php#L1308 So, i

Wildcard DNS | Domain | Subdomain

2011-03-29 Thread swimwithabhra
Hi! Can anybody tell me what does it takes to get a website with wildcard dns configured and properly functional. I read about wildcard DNS and the following are my findings -: 1. Need to add a A type record [as my hosting company is godaddy and they doesn't support CNAME] 2. Add ServerAlias in

Re: Chat in Cakephp

2011-03-29 Thread Shashank
I tried to put all the files like controller, model, js,css into the plugin folder. But now when i click on send i get this error *The requested address '/chat/post' was not found on this server.* On Tue, Mar 29, 2011 at 2:59 PM, Shashank cooldude17202...@gmail.comwrote: I tried implementing

Re: how to hide rewrite url in cakephp?

2011-03-29 Thread pushpa nc
Ryan, I have changed my apache *Document root*: /cakephp in httpd.conf. but m getting The page isn't redirecting properlyerror. What are other parameters to set? Thanks Pushpa On Tue, Mar 29, 2011 at 5:42 AM, Ryan Schmidt google-2...@ryandesign.comwrote: On Mar 28, 2011, at 08:08,

paginate conditions hasMany question

2011-03-29 Thread heohni
Hi, I struggle... I have the following statement: $list = $this-paginate('Member'); Which returns an array (in short) like this: Array ( [0] = Array ( [Member] = Array ( [id] = 5 ) [Payment] = Array

Re: Wildcard DNS | Domain | Subdomain

2011-03-29 Thread Daniel S. Reichenbach
Greetings, 3. Upload .htaccess with necessary modifications. Why would you want to modify .htaccess? This step is not needed for CakePHP to work on multiple subdomains. I am using CakePHP and i have tried performing all the three steps. But whenever I type something like xyz.domain.com [say

Re: Upload Multiple images in Cakephp

2011-03-29 Thread Fons Vandamme
Dear reader, I've noticed this post and I have a similar issue concerning the use of multiple file upload in CakePHP. I'm rather new to CakePHP development but i'm familiar with programming and the MVC concept. I'm developing on cakephp 1.3.7 and use MeioUpload as FileUpload component (url:

Re: Wildcard DNS | Domain | Subdomain

2011-03-29 Thread Ryan Schmidt
On Mar 29, 2011, at 06:00, Daniel S. Reichenbach wrote: Have you properly configured your VirtualHost ... / settings inside Apache? You need one virtual host for domain.com, and one to be used for any name using *.domain.com, and *both have to point to the same DocumentRoot*. No reason you

Re: Wildcard DNS | Domain | Subdomain

2011-03-29 Thread Daniel S. Reichenbach
No reason you can't to both within the same VirtualHost. VirtualHost *:80 ServerName example.com ServerAlias *.example.com DocumentRoot /path/to/cakephp/app ... /VirtualHost True, but you may want to run a different CakePHP application on the main site in some

canceling action execution in the controller.

2011-03-29 Thread Michael Iv
Hi all. I am an noobe here.I want to be able to cancel an action before its execution.The scenario is as follows. I have a navifgation bar. When I press a link I check if the current URL is the same as that of the link.If it is I want to prevent the controller to execute the action which renders

Re: canceling action execution in the controller.

2011-03-29 Thread Sam Sherlock
use a condition within the action and redirect setting a flash message to show feedback to user - S On 29 March 2011 13:37, Michael Iv explomas...@gmail.com wrote: Hi all. I am an noobe here.I want to be able to cancel an action before its execution.The scenario is as follows. I have a

Re: Email Question

2011-03-29 Thread Fons Vandamme
You can troubleshoot this easily by following these steps: 1. Send e-mail; 2. Verify if e-mail is delivered; 3. Change template for e-mails; 4. Delete cache files (without modifying the dir structure); 5. Send an e-mail (using the new template); 6. Verify if e-mail is delivered and template has

Re: paginate conditions hasMany question

2011-03-29 Thread hunny
Try following $this-Member-bindModel(array('hasOne' = array('Payment')), false); $this-Member-unbindModel(array('hasMany' = array('Payment')), false); $this-paginate['Member']['contain'] = array('Payment') // make sure Member Model actAs Containable $results =

syncing two databases

2011-03-29 Thread cake-learner
Is there any way to sync tables schema between two databases? I have already set up a script to push source code to live whenever it's ready, but i want to know there is a way to sync tables to make sure any changes on database will be updated to live database as well. I know there are a couple of

RE: JS at bottom of page

2011-03-29 Thread Krissy Masters
My scripts are compressed so the standard echo $scripts_for_layout does not apply for me. I will keep messing around to see what I can come up with. Thanks -Original Message- From: cake-php@googlegroups.com [mailto:cake-php@googlegroups.com] On Behalf Of Andras Kende Sent: Tuesday, March

saveAll and validate=only

2011-03-29 Thread euromark
i would expect saveAll to return either true or false but instead it returns an array with the individual results so i cannot use something like if ($x = $this-BoardTopic-saveAll($this-data['BoardTopic'], array('validate'='only'))) { ... } how do you do that? loop over the result first to

Re: Email Question

2011-03-29 Thread Alok Mishra
I things browser or email css issue refresh caching and try to it On Tue, Mar 29, 2011 at 9:56 AM, Ryan Schmidt google-2...@ryandesign.comwrote: On Mar 28, 2011, at 23:23, Krissy Masters wrote: Using just the Email Component, no add ons and something weird is going on. I get the email but

Paginate pre-ordered list

2011-03-29 Thread Ed Propsner
I need to paginate a list of results having the search return the results in the order I presented the list to the search. I'm trying to paginate a list of users but I'm using a separate table to define the order, there is no column in the users table to use for the order. Here is an example of

CakePHP files in utf-8 without bom?

2011-03-29 Thread func0der
Hey guys, i was just wondering that all files of cakephp are encoded in ANSII and not in utf-8 without bom. Even though your default settings for the encoding in the database and the files are utf-8. I thought everything has to be utf-8 to make a project with utf-8 work probably? Are there any

Re: CakePHP files in utf-8 without bom?

2011-03-29 Thread euromark
utf8 and ansii is exactle the same as long as you dont use special chars! meaning: if you use english in your views and translate them via locale (po files) you dont need to save them as utf8 but IF you use utf8 chars in your one of your views you gotto save this one correctly On 29 Mrz.,

Re: ODBC listSources() giving Out of Memory

2011-03-29 Thread mhamann
Yep, here's the offending code (also available in the github repo for CakePHP Datasources). /** * Returns an array of sources (tables) in the database. * * @return array Array of tablenames in the database */ function listSources() { $cache = parent::listSources();

cakephp 1.3.8 console ignores --app parameter..

2011-03-29 Thread DanielMedia
Just a heads up to anyone who upgrades to CakePHP 1.3.8. The current version seems to ignore the -app parameter for shells so all of my cron jobs broke. I would see errors like: Error: Class MyShell could not be loaded. The problem has been fixed but not released yet. You can grab the updated

Re: syncing two databases

2011-03-29 Thread Zaky Katalan-Ezra
Do you mean Replicationhttp://dev.mysql.com/doc/refman/5.1/en/replication.html ? -- 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: syncing two databases

2011-03-29 Thread euromark
i use mysqlTool a software which does exactly that there might be some shell tools for cake - but they usually don't support all the elements (at least not the ones I needed) - so I didnt follow that any further On 29 Mrz., 23:04, Zaky Katalan-Ezra procsh...@gmail.com wrote: Do you mean

languages subdomain or directory

2011-03-29 Thread Carlos Eduardo Sotelo Pinto
Hi people I am on a question about languages and seo. I has a cms that support differents languages, the question is how to use this languages on a subdomain like eng.mysite.com esp.mysite.com or a directory mysite.com/eng mysite.com/esp i have read some articles like the make a language

Re: languages subdomain or directory

2011-03-29 Thread Ryan Schmidt
On Mar 29, 2011, at 17:52, Carlos Eduardo Sotelo Pinto wrote: I has a cms that support differents languages, the question is how to use this languages on a subdomain like eng.mysite.com esp.mysite.com or a directory mysite.com/eng mysite.com/esp i have read some articles like

Re: syncing two databases

2011-03-29 Thread Ryan Schmidt
On Mar 29, 2011, at 11:29, cake-learner wrote: Is there any way to sync tables schema between two databases? I have already set up a script to push source code to live whenever it's ready, but i want to know there is a way to sync tables to make sure any changes on database will be updated

Re: CakePHP files in utf-8 without bom?

2011-03-29 Thread Ryan Schmidt
On Mar 29, 2011, at 12:44, func0der wrote: i was just wondering that all files of cakephp are encoded in ANSII and not in utf-8 without bom. Even though your default settings for the encoding in the database and the files are utf-8. I thought everything has to be utf-8 to make a project

Re: languages subdomain or directory

2011-03-29 Thread Carlos Eduardo Sotelo Pinto
I understand an dI like your point of view using directory languages for seo, the question the will be What could it be the best way for make this address?, I think it could be done editing the url helper for make the links, and a function on app controller for get the params or use a router,

Re: CakePHP files in utf-8 without bom?

2011-03-29 Thread Ryan Schmidt
On Mar 29, 2011, at 18:09, Ryan Schmidt wrote: Files that don't contain special characters (i.e. no characters above codepoint 127) don't have an encoding, and can be said to be in any encoding -- UTF-8, ASCII, ISO-8859-1 -- doesn't matter, they're all the same for the lower 127

Re: Wildcard DNS | Domain | Subdomain

2011-03-29 Thread cricket
On Tue, Mar 29, 2011 at 4:13 AM, swimwithabhra meet.ab...@gmail.com wrote: Hi! Can anybody tell me what does it takes to get a website with wildcard dns configured and properly functional. I read about wildcard DNS and the following are my findings -: 1. Need to add a A type record [as my

Re: $this-Session-valid() strangely returning false

2011-03-29 Thread Roland Pish
Thanks a lot Stephen. I never realized that valid() is not an official method anymore. Regards. On 28 mar, 03:54, Stephen step...@ninjacodermonkey.co.uk wrote: $this-Session-valid() isn't listed as an official method in 1.3http://book.cakephp.org/view/1466/Methods Perhaps you want to try:

Re: Datasource schemas defined into models

2011-03-29 Thread Dr. Loboto
Model have schema() method which call describe() method of data source if supported. For manual per-model schemas you can override its schema() method. For datasource-managed schemas you should take a look into its describe() method. On 29 мар, 03:50, Clément Hallet clem...@challet.eu wrote: