Re: Chinese $html-link character display problem in Cake 1.1.6.3273

2006-07-21 Thread Fasthold
Oh, I checked the ticket, thanks very much! I'll wait for the next release.:) --~--~-~--~~~---~--~~ 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

Re: Point of Sanitize-sql?

2006-07-21 Thread yeastinflexion
i thought php automatically addslashes to posted data? --~--~-~--~~~---~--~~ 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 from this group,

Re: Chinese $html-link character display problem in Cake 1.1.6.3273

2006-07-21 Thread [EMAIL PROTECTED]
You may place html.php from previous release into /app/views/helpers folder, to solve the problem. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP group. To post to this group, send email to

Re: cheeseCake Photoblog V1.0 Beta 1 released

2006-07-21 Thread Dr. Tarique Sani [EMAIL PROTECTED]
[EMAIL PROTECTED] wrote: It will be useful to have running demo of cheeseCake OK here is it http://sanisoft-demo.com/cheesecake/ Login with admin / admin to test the admin side - be nice and upload only work-safe pictures, Also do not change the theme - there is only one Am still looking for

Form.Element.EventObserver in ajax helper

2006-07-21 Thread modfather
Has anyone implemented EventObserver in the $ajax-observefield helper. This method uses an event instead of a timer as per the Form.Element.Observer. The parameter passed is, for example, on: blur, instead of the frequency: 5. This is available in the rails observefield method, ie depending on

Re: How to stop ajax submition?

2006-07-21 Thread Daniel King
here's my code: form onsubmit=alert('hehe'); style=display:inline but no messagebox shown. the form was not really submiied. here's the submit button: ?php $options = array( 'url'='/news/add', 'update' ='newListBox',

Re: $html-link problem

2006-07-21 Thread Philipp Ittershagen
deepa wrote: this is what i am using to link the document $html-link('test','/post/view'); This one is quite easy. In your post_controller.php you will have to define the query in the function view() klmann --~--~-~--~~~---~--~~ You received this

Re: How to stop ajax submition?

2006-07-21 Thread Daniel King
Great! I found the solution by myself. Put the js codes for validation into $option['before'] instead of the form's attribute onsubmit can solve my problerm. Like this: ?php $options = array( 'url'='/news/add', 'update' ='newListBox',

Re: $html-link problem

2006-07-21 Thread deepa
the query in function view only helps me to update the data to the table but how will i link to the document? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP group. To post to this group, send email to

Re: Point of Sanitize-sql?

2006-07-21 Thread John Zimmerman [gmail]
Only if magic quotes is enabled in php.iniOn 7/20/06, yeastinflexion [EMAIL PROTECTED] wrote: i thought php automatically addslashes to posted data? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP group. To

Get all controllers from application

2006-07-21 Thread symfony
Hello, I'm searching for an option to get all controllers included controllerfunctions and variables from an application. for example: $controller1-restrictions; $controller3-var3; I only need this for my permission-controller to get a list for all my controllers ;) Has anybody an idea?

About tabels relations in my models

2006-07-21 Thread Tuner
Hello! I don't have much experience in CakePHP. I have read tutorials, wiki and I have studied a lot of code of this framework but I have a problem with one basic thing. I have 3 tables: users: id | username | password groups: id | groupname user_groups: id | user_id | group_id How to set

Re: About tabels relations in my models

2006-07-21 Thread davide
Tener wrote: I have 3 tables: users: id | username | password groups: id | groupname user_groups: id | user_id | group_id How to set members declarations (is that the proper-english-name for objects/classes variables?) of 3 models to make everything works perfectly? I'm writing

Re: About tabels relations in my models

2006-07-21 Thread AD7six
Hi Tuner, This is a hasAndBelongsToMany relationship. You would need to name your join table groups_users for things to be handled automatically (the names need to be in alphabetical order), and the id field in the join table wouldn't be used. If the conventions are followed you can define this

Re: Get all controllers from application

2006-07-21 Thread AD7six
Hi Symfony, To do what you have asked, you would need to write a function that would loop through each file in the controllers (or models, if easier/appropriate) folder, derive the controller name from the file name, create an instance of that controller and then retrieve the fields. There are

Re: $html-link problem

2006-07-21 Thread ryanb006
You could read the file from the server and output it to the browser directly from your view() function, or you could $this-redirect('/path/to/my/doc') within your view() function. Example of first option: http://groups.google.com/group/cake-php/browse_thread/thread/061ad2bd1f87fc4c Ryan

Re: Form.Element.EventObserver in ajax helper

2006-07-21 Thread nate
Doesn't look like this has been implemented. How about opening a ticket on it? https://trac.cakephp.org/ --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP group. To post to this group, send email to

Re: Get all controllers from application

2006-07-21 Thread John David Anderson (_psychic_)
On Jul 21, 2006, at 2:48 AM, symfony wrote: Hello, I'm searching for an option to get all controllers included controllerfunctions and variables from an application. for example: $controller1-restrictions; $controller3-var3; I only need this for my permission-controller to get a list for

Re: Get all controllers from application

2006-07-21 Thread symfony
Hey, thanks for your fast, excellent help :) I'll try it these weekend. When I'll finish I'll post it here as a function :).. kind regards --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP group. To post to

Re: Save Date 1970

2006-07-21 Thread Mika
You could use the adodb_date library by putting it in the vendors folder. --~--~-~--~~~---~--~~ 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

Re: Save Date 1970

2006-07-21 Thread Mika
You could use the adodb_date library by putting it in the vendors folder. --~--~-~--~~~---~--~~ 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

Call to undefined function: mysql_real_escape_string()

2006-07-21 Thread [EMAIL PROTECTED]
Using PHP 4.1.2, I get the following error when I try the tutorial: Call to undefined function: mysql_real_escape_string()...of course this is because the mysql_real_escape_string() function only works in PHP 4.3 or above. If I can't upgrade, my only recourse is the mysql_escape_string()

Re: Call to undefined function: mysql_real_escape_string()

2006-07-21 Thread [EMAIL PROTECTED]
Cake doesn't really support PHP 4.1.2. Try upgrading to something more recent like 4.4. [EMAIL PROTECTED] wrote: Using PHP 4.1.2, I get the following error when I try the tutorial: Call to undefined function: mysql_real_escape_string()...of course this is because the

Re: Call to undefined function: mysql_real_escape_string()

2006-07-21 Thread nate
Cake does not officially support versions of PHP below 4.3.2. --~--~-~--~~~---~--~~ 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 from this

Why my fav.ico does not work properly?

2006-07-21 Thread saavedrajj
I just add the line link rel=shortcut icon href=favicon.ico type=image/x-icon in app/views/layouts/default.thtml and nothing happens if I copy the favicon.ico at app/webroot/img and then add the line: link rel=shortcut icon href=../img/favicon.ico type=image/x-icon only works on

Re: Why my fav.ico does not work properly?

2006-07-21 Thread John Zimmerman [gmail]
Should belink rel=shortcut icon href="" type=image/x-icon / And make sure your favicon is in /app/webroot/favicon.icoOn 7/21/06, saavedrajj [EMAIL PROTECTED] wrote:I just add the linelink rel=shortcut icon href="" favicon.ico type=image/x-iconin app/views/layouts/default.thtmland nothing

Re: Why my fav.ico does not work properly?

2006-07-21 Thread John Zimmerman [gmail]
Also make sure to clear the cache, close, and then re-open the browser (especially IE) to get the favicon to display. Some versions of IE only display the favicon if you save the site in your Favorites. On 7/21/06, John Zimmerman [gmail] [EMAIL PROTECTED] wrote: Should belink rel=shortcut icon

Re: Why my fav.ico does not work properly?

2006-07-21 Thread John Zimmerman [gmail]
link rel=shortcut icon href="" echo $html-url('/favicon.ico');? type=image/x-icon /This one adds the full url using the Cake HtmlHelper On 7/21/06, John Zimmerman [gmail] [EMAIL PROTECTED] wrote: Also make sure to clear the cache, close, and then re-open the browser (especially IE) to get the

Re: Why my fav.ico does not work properly?

2006-07-21 Thread saavedrajj
mmm... doesn't work, this is my code !DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Transitional//EN http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd; head titleTitle/title link rel=shortcut icon href=/favicon.ico type=image/x-icon / ?php echo $html-charset('ISO-8859-1'); ? meta

Re: Why my fav.ico does not work properly?

2006-07-21 Thread John Zimmerman [gmail]
Didn't try your code out yet, but right off your closing head tag is invalidneeds to be /headOn 7/21/06, saavedrajj [EMAIL PROTECTED] wrote:mmm... doesn't work, this is my code!DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0

Re: Why my fav.ico does not work properly?

2006-07-21 Thread John Zimmerman [gmail]
Try the following...!DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Transitional//EN http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd htmlhead titleTitle/title link rel=shortcut icon href="" echo $html-url('/favicon.ico');? type=image/x-icon / ?php echo $html-charset('ISO-8859-1'); ? meta

Re: Why my fav.ico does not work properly?

2006-07-21 Thread AD7six
Maybe this will help: 1) what is the absolute url that works to view the favicon in the browser (e.g. http://www.noswad.me.uk/favicon.ico)? 2) What is that path, relative to your cake install (/favicon.ico) put the relative path in your layout and that should be that. Note that if you are using

Re: Save Date 1970

2006-07-21 Thread John Zimmerman [gmail]
What version of CakePHP are you using? What version of PHP and MySQL?I just did a grep on the cake directory and found no reference to mktime().I then setup a test model/controller/view and used a DATETIME MySQL field type. I scaffolded everything and CakePHP brought up 1946 as the earliest year

Re: Save Date 1970

2006-07-21 Thread John Zimmerman [gmail]
And the webserver is Apache on DebianOn 7/21/06, John Zimmerman [gmail] [EMAIL PROTECTED] wrote: What version of CakePHP are you using? What version of PHP and MySQL?I just did a grep on the cake directory and found no reference to mktime(). I then setup a test model/controller/view and used a

Re: Save Date 1970

2006-07-21 Thread John Zimmerman [gmail]
So far I am unable to get $html-dateTimeOptionTag() to display a year below 1946, but I did manually modify the database entry to make the year 1700 and it displays correctly when I view the timestamp output by Cake, but when I go to edit that record the year still stops at 1946. Anyone have any

Multiple select and relationship many-to-many

2006-07-21 Thread Kenia
Hi.. i have a problem with the multiple select in a relationship many-to-many... my tables: event id_event - int name - varchar areas id_area- int name - varchar events_areas area_id - int event_id - int then, i need to put in the multiple select the areas of the event: add, show, delete and

Re: Save Date 1970

2006-07-21 Thread Nick
We are working with our hosting provider to upgrade Fedora/PHP/MySQL as after looking into this issue a bit more I think it is a problem that reaches beyond Cake due to our setup. Thank you for looking into this Zimmerman. I will post updates on here as soon as I make more headway with it.

Re: Why my fav.ico does not work properly?

2006-07-21 Thread Jon Bennett
put the relative path in your layout and that should be that. Note that if you are using mod_rewrite using $html-url will give you a valid url, if you are using pretty urls - it will not. you also need both icon and shortcut icon link rel=icon href=?php echo $html-url('/favicon.ico');?

Re: Bug: using multiple models in controller

2006-07-21 Thread John Zimmerman [gmail]
I believe if you add the multiverse onto the end of any line of your sources.list that has universe and then do an 'aptitude search java' you will get the sun packages again. Just run 'aptitude install packagename'. I did this with Ubuntu and it works fine.Should be similar with a straight Debian

Re: Missing Database Table

2006-07-21 Thread John Zimmerman [gmail]
http://www.cakephp.org/pastes/addCan you create some pastes of your code?On 7/21/06, Matt2012 [EMAIL PROTECTED] wrote:Dont know whats happening - CAKE loading fine the homepage definitely connecting to the right database but what ever table I putinuseTable its saying its missing. (I started off

Re: Missing Database Table

2006-07-21 Thread Matt2012
well theres not all that much to it (I think you can ignore the view?) http://www.cakephp.org/pastes/show/2f021e23b8505de6867f55b79f090276 I appreciate the extra eyes..! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google

Re: Missing Database Table

2006-07-21 Thread John Zimmerman [gmail]
What versions of the following are you using: PHP, DB Type and Version (i.e. MySQL 5), CakePHP?What operating system are you running the webserver on?And can you dump the SQL schema for your database as well? One thing to double check is that the table name is the plural form instead of singular.

Re: Form.Element.EventObserver in ajax helper

2006-07-21 Thread modfather
ticket sent. --~--~-~--~~~---~--~~ 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 from this group, send email to [EMAIL PROTECTED] For more

Re: Missing Database Table

2006-07-21 Thread Matt2012
Apache version 1.3.34 (Unix) MySQL version 4.1.19-standard PHP version 4.4.2 // -- -- Table structure for trains --

Re: Missing Database Table

2006-07-21 Thread Matt2012
class DATABASE_CONFIG { var $default = array('driver' = 'mysql', 'connect' = 'mysql_connect', 'host' = 'localhost',

AJAX Autocomplete silently failing

2006-07-21 Thread Mechanic
I'm having a bit of difficulty getting Cake to recognize any Ajax functionality. My most recent attempt is to make a simple autocomplete box following Nate's example as seen at http://cakebaker.wordpress.com/2006/06/06/autocompletion-the-easy-way/ I included the helper and the component in the

Re: AJAX Autocomplete silently failing

2006-07-21 Thread bingo
Hi. Even I have exactly smae problem...I am also not sure what autocomplete=off means. Regards, --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP group. To post to this group, send email to