Re: Auth problem, login not working.

2009-02-10 Thread Dcahrakos
oops, sorry, was in a rush to leave for work didnt have time to post it. The login function is empty, which according to the docs on the auth component, thats the way its supposed to be since auth does it all. my config for auth in the AppController is: var $components = array('Auth');

Re: How to do Data Sanitization in CakePHP 1.2.9?

2009-02-10 Thread Yogesh
Hi, I want to avoid the script tag so that no one do the hack or insert the records using script tag. I don't know what it should be called exactly, but in my database some times records get inserted automatically and continuously about 100 to 150 records, these are seems to be inserted using some

Re: switching databases on dev and production

2009-02-10 Thread cds
I saw this somewhere so I won't claim credit, but this how I do it. You just have to change one value in core.php after implementing this system. Since Configure::read is usable from views too, you can set paths for javascripts like lightbox or other application elements without hunting for change

Re: switching databases on dev and production

2009-02-10 Thread travisbeck
that's what i had planned on doing. I just hoped there was a cleaner way. thanks for the help though. On Feb 10, 10:12 pm, Adam Royle wrote: > I use svn:ignore on app/config/database.php, and only commit a generic > database.php.default file (that contains no usernames/passwords). Each > time I

Re: Render XML

2009-02-10 Thread mscdex
mscdex wrote: >$post = $this->Post->getNormalViewData(); Sorry, that should be: $post = $this->Post->getNormalViewData($id); You get the idea ;-) --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "CakePHP"

Re: Render XML

2009-02-10 Thread czarcrab
Many ways to do it; I am explaining the one I use. I retrieve XML based on extension. So my URL looks like http://localhost/entries/index.xml Here are my steps: 1. Add an XML directory under you views, for eg. in my case app\views\entries\xml 2. Create an index.ctp with the following code s

Re: Render XML

2009-02-10 Thread mscdex
Alfredo Quiroga-Villamil wrote: > This should be simple, yet for some reason can't find how to do it. > > I need to render XML. > > What is the correct way to accomplish this? I use XML in my Cake application and here is what I've done: In my routes.php, I added the line: Router::parseExtensions

Re: Render XML

2009-02-10 Thread Alfredo Quiroga-Villamil
I am actually originating an ajax request to load up a chart that will be xml based. I just did the usual: $this->layout = 'ajax'; and passed my xml to the view. I got things working, however I would still be interested in finding out how to handle xml responses in case I ever need it in the fu

Bug? Order isn't respected when doing a cascade delete

2009-02-10 Thread nebbian
Hi, I have the following models: class Competition extends AppModel { var $name = 'Competition'; var $useTable = 'Competition'; var $primaryKey = 'CompetitionID'; var $recursive = 2; var $hasMany = array( 'CompetitionAnswers' =

Render XML

2009-02-10 Thread Alfredo Quiroga-Villamil
This should be simple, yet for some reason can't find how to do it. I need to render XML. What is the correct way to accomplish this? Thanks in advance, Alfredo --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Ca

Re: switching databases on dev and production

2009-02-10 Thread Adam Royle
I use svn:ignore on app/config/database.php, and only commit a generic database.php.default file (that contains no usernames/passwords). Each time I checkout the code (dev, staging, production) I rename the .default file to database.php and make my edits on the server. So ultimately no passwords a

[noob] switching databases on dev and production

2009-02-10 Thread travisbeck
i see that you can add multiple database defnitions for development,production, and test in the database.php file. how do you get your application to switch between the different environments? Our app is in version control and i'd very much like to not have to constantly worry about the database

Re: International validation messages in a contact form

2009-02-10 Thread ohcibi
> Also, I thought it would be worth mentioning that if you don't want to > specify the error messages in the view, you can also set them in your > beforeValidate() function. thx for this hint, i like it more that way but my problem was at another place.. i should had pasted this one: if ($this

Re: validating email_confirm field

2009-02-10 Thread foldiman
Thanks, your advice led me to the solution. With the full debug on, I could see that before the INSERT query was executed, a SELECT COUNT(*) AS `count` FROM `users` AS `User` WHERE `User`.`email_confirm` = 'm...@email.com' was throwing an error. This was because I had a 'unique' validation rule s

Re: Mod Rewrite problem

2009-02-10 Thread thankyou
Wonderful, thank you On Feb 9, 10:31 am, Webweave wrote: > Here's a good writeup from the > bakery:http://bakery.cakephp.org/articles/view/mod-rewrite-on-godaddy-shared... > > On Feb 9, 5:53 am, thankyou wrote: > > > I'm not very familiar with modrewrite -- do I just add the text > > "RewriteB

Re: Auth error when integrate with ACL in CakePHP 1.2.1.8004

2009-02-10 Thread yodi
Thanks, Gwoo, it works fine right now! On Tue, 2009-02-10 at 08:46 -0800, Gwoo wrote: > Actually you should probably use Auth->allow('logout') in your users > controller. > Also, if you want to add to the actionMap then use Auth::mapActions(); > > --~--~-~--~~~---~-

Re: validating email_confirm field

2009-02-10 Thread mscdex
foldiman wrote: > Cake wants an 'email_confirm' column in the Users table. This is key > to what I'm trying to understand. I don't have a 'password_confirm' > column EITHER. But for some reason, Cake does not mind. Is there a > built in exception for a field called 'password_confirm'? Maybe you c

Re: How long run the sql statement?

2009-02-10 Thread Sidney
You can get a lot of performance info from almost all the main DB engines (commands vary) that can help identify where new indexes would improve things. Otherwise I guess you have to look into cake internals to figure out how it gets this data for debug level 2 and massage it to fit your needs.

Re: validating email_confirm field

2009-02-10 Thread foldiman
Ok. Thanks. But this only works if I specify exactly which columns to save in my controller using: $user = $this->User->save($this->data, true, array('email', 'password', 'password_confirm', 'first_name', 'last_name') Notice I left out 'email_confirm' in the list even though that field appears i

Re: Router, NamedParameters & Urls...

2009-02-10 Thread CraigFisher
Indeed - and the URL looks like it will be fine; with lots of %3Fs and %2As. Unfortunately after a lot of digging around, I've discovered a 'feature' in Apache mod_rewrite due to the way that cake uses it's pretty URLs. It means that the URL is already **unencoded** by the time it reaches the

Re: validating email_confirm field

2009-02-10 Thread Miles J
If you are trying to match dynamic data, it wont work because Cakes default validation is for static data. Heres a method I use to match dynamic: Place this in your appmodel. /** * Validates two inputs against each other * @param array $data * @param string $co

Re: ClassRegistry::init vs loadModel

2009-02-10 Thread Miles J
I wrote a post about this a few days ago. http://www.milesj.me/blog/read/16/loading-models-specific-to-certain-actions --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send emai

Re: Auth problem, login not working.

2009-02-10 Thread Miles J
Can we see your login action() and all the config for auth. On Feb 10, 1:29 pm, Dcahrakos wrote: > Hi, > > I am using the Auth component for registration and login, registration > is working perfectly, but login doesnt seem to be doing anything at > all, > > I have Auth loaded in the AppControll

Auth problem, login not working.

2009-02-10 Thread Dcahrakos
Hi, I am using the Auth component for registration and login, registration is working perfectly, but login doesnt seem to be doing anything at all, I have Auth loaded in the AppController since I will be using it site wide, however when I try to log in I just return to the login page because the

Re: validating email_confirm field

2009-02-10 Thread foldiman
Ok. Here's the relevant code in the view file 'users/add.ctp' echo $form->create('User', array('action' => 'add')); echo $form->input('first_name', array('label' => '*First name', 'before' => '', 'between' => '', 'after' => '', 'error' => array('wrap' => 'span', 'class' => 'errorMsg'), 'maxlength

Re: save() function not working plz help

2009-02-10 Thread khurram shizad
Thanks to google groups and respectable mradosta too.you have solved my problem Thanks to regards On Tue, Feb 10, 2009 at 11:54 AM, mradosta wrote: > > Try in 3 adding a dot (.) > > Bad > echo $form->input('Author name'); > > Good > echo $form->input('Author.name'); > > On 10 feb, 17:17, khurram

Re: getting information from all your plugins

2009-02-10 Thread Matt Curry
I haven't tested this at all, but... $adminLinks = array(); if ($plugins = Configure::listObjects('plugin')) { foreach ($plugins as $key => $value) { $classObj = ClassRegistry::init($value); //or $classObj = ClassRegistry::init(Inflector::camelize($value)); $adminLinks = array_merge

Re: getting information from all your plugins

2009-02-10 Thread Evert
nobody? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.

Re: save() function not working plz help

2009-02-10 Thread mradosta
Try in 3 adding a dot (.) Bad echo $form->input('Author name'); Good echo $form->input('Author.name'); On 10 feb, 17:17, khurram wrote: > i have table 'authors' with two columns.The 1st one column is 'id' > auto incremented.the 2nd one is 'name'. > > 1.this is the model >    class Author exte

save() function not working plz help

2009-02-10 Thread khurram
i have table 'authors' with two columns.The 1st one column is 'id' auto incremented.the 2nd one is 'name'. 1.this is the model 2.this is the controller set('auth', $this->Author->find('all')); } function add() { if (!empty($this->data)) { $this->Author->create();

Credit Card Expiration Date Validation

2009-02-10 Thread JoshSchramm
Hey all, I cant seem to find anything online to explain this so i'm hoping you all can help a bit. I am validating credit card information and right now i'm working on ensuring the user enters an expiration date. For this i have to fields one for month and one for year both using $form->input('t

Re: using ajax helper to reload an element

2009-02-10 Thread brian
not sure this is the best way to do this function refreshSearchElement() { $this->layout = false; // get your new param ... $this->set('new_param', $new_param); } refresh_search_element.ctp: echo $this->element('search_element_1', array('the_param', $new_param)); On Mon, Feb 9, 2009 at

Re: Problems with combining COUNT(*) and GROUP BY

2009-02-10 Thread seedifferently
Thanks, the Teknoid link's afterFind method worked beautifully! On Feb 10, 12:07 am, Miles J wrote: > What kalt said wont work, here you go. > > http://groups.google.com/group/cake-php/browse_thread/thread/f823cc7f... --~--~-~--~~~---~--~~ You received this mess

Re: Logging system for CAKEPHP

2009-02-10 Thread mscdex
marco.rizze...@gmail.com wrote: > Now I must create a logging system in order to register all possible > errors (PHP execution error or MySQL error etc. ) If you are wanting to log to a file, you can edit your php.ini and change the following two values: error_log = /var/log/php.log display_erro

Re: International validation messages in a contact form

2009-02-10 Thread Gonzalo Servat
On Mon, Feb 9, 2009 at 9:33 PM, ohcibi wrote: > > Hi everybody, > > i have set up a Contact-Model like this: > http://paste.pocoo.org/show/103359/ > (according to http://snook.ca/archives/cakephp/contact_form_cakephp/). > i want to provide international validation messages so i output the > form-

Re: Router, NamedParameters & Urls...

2009-02-10 Thread mscdex
dr. Hannibal Lecter wrote: > URL encoded query strings perhaps? I second this, PHP makes this easy: http://us2.php.net/urlencode --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group,

Re: Logging system for CAKEPHP

2009-02-10 Thread marco.rizze...@gmail.com
Another thing ... not all MySql's errors are detected with the method Error inside AppModel On Feb 10, 6:24 pm, "marco.rizze...@gmail.com" wrote: > Hi > I have a production ( debug=0 ) system with CAKEPHP. > Now I must create a logging system in order to register all possible > errors (PHP

Re: Router, NamedParameters & Urls...

2009-02-10 Thread dr. Hannibal Lecter
URL encoded query strings perhaps? On Feb 10, 6:30 pm, CraigFisher wrote: > What's the best way of using named parameters to pass URLs into a > controller...  The router groks because it picks up the : and / as > separators.  Obviously I can perform some sort of specific code/decode > in the cod

Re: MooTools Ajax Pagination

2009-02-10 Thread Arak Tai'Roth
Don't get me wrong, there's nothing wrong with it. I was just personally hoping for something that was integrated more tightly into CakePHP, that's all. Also, I'm pretty new to using AJAX, and most definitely MooTools, so I was hoping for more of a starting point. On Feb 10, 10:07 am, grigri wr

Re: Logging system for CAKEPHP

2009-02-10 Thread marco.rizze...@gmail.com
Another thing for MYSQL I would get also the "warning" how can do it? On Feb 10, 6:24 pm, "marco.rizze...@gmail.com" wrote: > Hi > I have a production ( debug=0 ) system with CAKEPHP. > Now I must create a logging system in order to register all possible > errors (PHP execution error or MyS

Router, NamedParameters & Urls...

2009-02-10 Thread CraigFisher
What's the best way of using named parameters to pass URLs into a controller... The router groks because it picks up the : and / as separators. Obviously I can perform some sort of specific code/decode in the code but I feel there must be a 'proper' way of doing it. I've tried using rawurle

Logging system for CAKEPHP

2009-02-10 Thread marco.rizze...@gmail.com
Hi I have a production ( debug=0 ) system with CAKEPHP. Now I must create a logging system in order to register all possible errors (PHP execution error or MySQL error etc. ) I have read some post about this but I don't understand completely how do it? For example for MySql error I can use the met

Re: validating email_confirm field

2009-02-10 Thread Gwoo
http://api.cakephp.org/class/validation#method-ValidationequalTo Also, we have no idea why you get the error because we cannot see the code. http://bin.cakephp.org --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cak

Re: International validation messages in a contact form

2009-02-10 Thread Gwoo
Supply your validation rules. It looks to me that you are trying to key the error messages off of the "rule", which would be incorrect. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this

Re: Auth error when integrate with ACL in CakePHP 1.2.1.8004

2009-02-10 Thread Gwoo
Actually you should probably use Auth->allow('logout') in your users controller. Also, if you want to add to the actionMap then use Auth::mapActions(); --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "CakePHP" group.

Re: ClassRegistry::init vs loadModel

2009-02-10 Thread Gwoo
Yes the old loadModel() function from basics was deprecated. However the loadModel() method in Controller is still used. http://api.cakephp.org/class/controller#method-ControllerloadModel --~--~-~--~~~---~--~~ You received this message because you are subscribed to

Re: Fatal error: App::require() - Trying to run through the Example Blog App

2009-02-10 Thread Gwoo
"Permission denied" Check the permissions. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to

validating email_confirm field

2009-02-10 Thread foldiman
I'm trying to build a form that includes both a password_confirm field as well as a email_confirm field. The password_confirm field behaves as expected when using a confirmPassword() function in the model that compares the two fields, 'password' and 'password_confirm'. However, there's a problem

Re: CAKEPHP variable in querystring

2009-02-10 Thread cyk0tik
ah ok thanks :) On Feb 10, 4:33 pm, grigri wrote: > Cake isn't doing this, your PHP setup is. > > CAKEPHP is the name of the session cookie. In most setups, session > handling is done by an http cookie sent through the headers. When > either the server admin or the intended site visitors wear ti

Fatal error: App::require() - Trying to run through the Example Blog App

2009-02-10 Thread ross.de...@gmail.com
Hi All, I'm new to the world of Cake, and am trying to work my way through the Example Blog Application. My set up went well, and all my boxes are green, so the database connection is fine and my tmp folder is writable. However, after creating my first Controller, Model and View as per the exa

Re: MooTools Ajax Pagination

2009-02-10 Thread grigri
What more do you want? That looks like a very neat starting point form ajax pagination with mootools (I use mootools as my js framework of choice; don't do a huge amount of ajax though). Why doesn't this seem like "the best option"? What's wrong with it? On Feb 10, 3:34 pm, "Arak Tai'Roth" wrot

css problem

2009-02-10 Thread monirr444
How to put Two css in Defalut Layout whithout reflecting with each other i have this jquery plugin its media viewer i want the users to play the youtube videos of my site in my own website in Iframe whenver i put the css and javascrpt it reflect with each other any help will be appreciated this

Re: MooTools Ajax Pagination

2009-02-10 Thread Arak Tai'Roth
Is there anything else out there? This is definitely an option, but it doesn't seem like the best option to me. On Feb 9, 6:59 pm, "Websta*" wrote: > Here is the code of a really basic mootools JS object that can pretty > much be dropped in for paging a standard cake index view > > http://pasteb

Re: Model.save() works OK but cannot manage to get Model.savaAll() to work (rollback)

2009-02-10 Thread mradosta
I guess the relation is "user hasMany user_datail". Please, send us the array you're tryng to save. On 9 feb, 16:59, Aktarus wrote: > Hello, > > I am starting with CakePHP, the latest version. > I have created 2 tables: 'users' and 'user_details' - they are > obviously related ;) > > I am cre

Re: How can I perform "normal" PHP code within the cake directory ?

2009-02-10 Thread hasentopf
So simple! A BIG: thank-you!!! :-) On 10 Feb., 15:39, grigri wrote: > Just move the file/files into app/webroot. From there you can call > them normally. > > hth > grigri > > On Feb 10, 1:07 pm, hasentopf wrote: > > > Dear cake-users. > > > I found no answer so far for my question, maybe you

Re: How can I perform "normal" PHP code within the cake directory ?

2009-02-10 Thread grigri
Just move the file/files into app/webroot. From there you can call them normally. hth grigri On Feb 10, 1:07 pm, hasentopf wrote: > Dear cake-users. > > I found no answer so far for my question, maybe you know a solution: > > I converted a web project completely to CakePHP. > > I would like to

Re: CAKEPHP variable in querystring

2009-02-10 Thread grigri
Cake isn't doing this, your PHP setup is. CAKEPHP is the name of the session cookie. In most setups, session handling is done by an http cookie sent through the headers. When either the server admin or the intended site visitors wear tinfoil hats, the 'url rewriting' functionality is used, which

Re: Firefox Search Engine Plug-In

2009-02-10 Thread WebbedIT
Well put LunarDraco! I've been working with Cake for on and off 4-5 months now and only seem to be scratching the surface. Without the likes of those you listed above and grigri, teknoid etc. I would have had to be carted off to the funny farm and given some nice relaxants! I hasten to add thou

Re: Firefox Search Engine Plug-In

2009-02-10 Thread LunarDraco
>From my point of view anything I write to benefit the community can be lifted at will. I contribute to help not to gain fame or money. If I want money I'll keep it to myself and sell it to those who are willing to pay for it. I really appreciate the active community surrounding cake and those wh

Re: Firefox Search Engine Plug-In

2009-02-10 Thread Hernan
No problem. As I've said to Marcelo in private, I'm glad this plug-in soap opera had a happy ending. And it seems we both did (more or less) the same thing at the same time. Great minds think alike, you know the saying... :) On Feb 10, 10:49 am, Marcelo Andrade wrote: > On Tue, Feb 10, 2009 at 6

Re: How can I perform "normal" PHP code within the cake directory ?

2009-02-10 Thread hasentopf
How about a special .htaccess file in this subdirectory, which bans cake out??? On 11 Feb., 05:29, yodi wrote: > Maybe you can use vendor. > > For example, like this > :http://www.exuber.net/2008/05/06/cakephp-captcha-and-user-registration/ > > On Tue, 2009-02-10 at 05:07 -0800, hasentopf wrot

Re: How can I perform "normal" PHP code within the cake directory ?

2009-02-10 Thread yodi
Maybe you can use vendor. For example, like this : http://www.exuber.net/2008/05/06/cakephp-captcha-and-user-registration/ On Tue, 2009-02-10 at 05:07 -0800, hasentopf wrote: > Dear cake-users. > > I found no answer so far for my question, maybe you know a solution: > > I converted a web proj

How can I perform "normal" PHP code within the cake directory ?

2009-02-10 Thread hasentopf
Dear cake-users. I found no answer so far for my question, maybe you know a solution: I converted a web project completely to CakePHP. I would like to leave only one module (a calendar for a apartment rental) in the old state, because the transformation to Cake would be too expensive. My quest

Re: nice new API layout

2009-02-10 Thread Marcelo Andrade
On Tue, Feb 10, 2009 at 8:09 AM, AD7six wrote: > > On Feb 9, 6:36 pm, Marcelo Andrade wrote: >> On Tue, Jan 27, 2009 at 6:02 PM, brian wrote: >> > (..) >> >> Just announcing: I created a small API search plugin for Firefox 3. >> Maybe it could be usefull for someone... :-P >> >> http://bin.cake

Re: Firefox Search Engine Plug-In

2009-02-10 Thread Marcelo Andrade
On Tue, Feb 10, 2009 at 6:46 AM, WebbedIT wrote: > > How did he expect Hernan to search for it and find it if not added to > Mozilla Plugins site and not pasted to the bin, not that it would seem > logical to search the bin for such a thing?!? On Tue, Feb 10, 2009 at 6:38 AM, AD7six wrote: > >

logout not authorized to access

2009-02-10 Thread yisn
I followed the "Simple Acl controlled Application" in the Cookbook of CakePHP, and got the message "You are not authorized to access that location" when try to logout. I logged in as a user who is not allowed to access the UsersController actions. Do i need to grant the access to "logout" functio

Re: ClassRegistry::init vs loadModel

2009-02-10 Thread gmwebs
Gwoo, I apologise if I have missed any posts on this in the past, but... I thought that loadModel() was deprecated? I remember going through all my code and changing it to App::import based on the warning message "loadModel is deprecated see App::import ('Model', 'ModelName');"? Has this (or the

Re: nice new API layout

2009-02-10 Thread AD7six
On Feb 9, 6:36 pm, Marcelo Andrade wrote: > On Tue, Jan 27, 2009 at 6:02 PM, brian wrote: > > (..) > > Just announcing: I created a small API search plugin for Firefox 3. > Maybe it could be usefull for someone... :-P > > http://bin.cakephp.org/saved/42469 > > Best regards. Is this what promp

Re: nice new API layout

2009-02-10 Thread yodi
Nice dude!!! Thanks, it's help me On Mon, 2009-02-09 at 14:36 -0300, Marcelo Andrade wrote: > On Tue, Jan 27, 2009 at 6:02 PM, brian wrote: > > (..) > > Just announcing: I created a small API search plugin for Firefox 3. > Maybe it could be usefull for someone... :-P > > http://bin.cakephp.o

[ask] Auth error when integrate with ACL in CakePHP 1.2.1.8004

2009-02-10 Thread yodi
Hello everybody, for a weeks, i struggle learning about ACL. Then, i have something weird in my app. I'm using $this->Auth->authorize = 'crud'; in my app_controller.php. Every i'm trying to logout, this is happend : Auth::startup() - Attempted access of un-mapped action "logout" in controller "

Re: Firefox Search Engine Plug-In

2009-02-10 Thread WebbedIT
# Copyright (c) 2009 Marcelo de Freitas Andrade Copyright info suggest he's only just created it/added his license info. How did he expect Hernan to search for it and find it if not added to Mozilla Plugins site and not pasted to the bin, not that it would seem logical to search the bin for suc

Re: Firefox Search Engine Plug-In

2009-02-10 Thread AD7six
On Feb 9, 11:12 pm, Marcelo Andrade wrote: > On Mon, Feb 9, 2009 at 12:04 PM, Hernan wrote: > > > Hi there, > > This is my first CakePHP post by the way. I'm kind of new to CakePHP > > but I already love it. > > > I've created a search engine plug-in to search the 1.2 docs. > > You can downloa

Re: Validation rule with or

2009-02-10 Thread WebbedIT
I do not believe there are any built-in validation rules to do this so you need to specify your own custom validation method such as: function __validateFieldDependancy($data, $field1, $field2) { // return false if ThisModelName.field1 and ThisModelName.field2 are empty return empty($this->da

Re: Firefox Search Engine Plug-In

2009-02-10 Thread BeroFX
Ooops, sorry, thought you were talking about me :-) My 5 star rating is still up :-) On Feb 10, 10:25 am, BeroFX wrote: > @Herman: > > Man, I'm really sorry. I'm the guy that rated you, but I chose 5 > stars, not 1 (!?!?). > I have no idea why Mozilla entered it as one :-( --~--~-~--~---

CAKEPHP variable in querystring

2009-02-10 Thread cyk0tik
Hi, Cake seems to be adding on an encrypted string to all my links in my app.. eg. instead of http://www.website.com/index.php, I get http://www.website.com/index.php?CAKEPHP=446fd3WEgh543fnz Can anyone tell me why it's doing this? Thanks --~--~-~--~~~---~--~~

Re: Firefox Search Engine Plug-In

2009-02-10 Thread BeroFX
@Herman: Man, I'm really sorry. I'm the guy that rated you, but I chose 5 stars, not 1 (!?!?). I have no idea why Mozilla entered it as one :-( --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post

Re: How to do Data Sanitization in CakePHP 1.2.9?

2009-02-10 Thread Miles J
The model automatically sanitizes data when inserting and selecting queries. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscri

Re: Firefox Search Engine Plug-In

2009-02-10 Thread WebbedIT
Have to agree with Hernan on this one ... you could have given the guy the benefit of the doubt before jumping to the conclusion that he was passing your work off as his. All it would have took was for you to expand on your "Credits?" post and make the guy aware you had previously created a simil

How to do Data Sanitization in CakePHP 1.2.9?

2009-02-10 Thread Yogesh
Hi All Can any one please tell how I can do the data sanitization for the users submitted data? and which is better place to write it, is it in Controller or in Model? I don't know anything about reagarding data sanitization. I need it from start to end means which helper or libraries i need to

unable to handle MIME type: text/html ; fpdf

2009-02-10 Thread mbaste2
we get message : unable to handle MIME type: text/html when we view the saved pdf document. we use fpdf, cakePHP, MySQL to output table to a pdf report. cakePHP seems to insist on that mime type instead of application/pdf? we don't understand what is causing this? also, we think because our c

Re: Problems with combining COUNT(*) and GROUP BY

2009-02-10 Thread mscdex
seedifferently wrote: > How can I get the $array[0][count] up there in the $array[QuestionsTag] > ['count'] where it belongs? Why is it out there by itself under an > index of 0? The results of any DB function in your fields array will be placed into a zero index because CakePHP has no way of kno

Re: Problems with combining COUNT(*) and GROUP BY

2009-02-10 Thread Miles J
What kalt said wont work, here you go. http://groups.google.com/group/cake-php/browse_thread/thread/f823cc7f168cd619/cb71fbc24f187e78?lnk=gst&q=select+within+a+query#cb71fbc24f187e78 --~--~-~--~~~---~--~~ You received this message because you are subscribed to the

Re: Problems with combining COUNT(*) and GROUP BY

2009-02-10 Thread Kalt
You can try that : array('fields'=>array('*', '(COUNT (*)) AS QuestionsTag.count') On 10 fév, 08:41, seedifferently wrote: > Dear group, > > I've got a questions_tags table that has a column for the tag_id and > question_id. I want to do a proper CakePHP model find('all') query to > pull the ta