Re: hosting problem

2010-07-17 Thread fadhli -
" f you don't want or can't get mod_rewrite (or some other compatible module) up and running on your server, you'll need to use Cake's built in pretty URLs. In /app/config/core.php, uncomment the line that looks like: Plain Text View 1.

Re: cake 1.3.2 wants to be too smart

2010-07-17 Thread djogo
Cricket, that was what you meant? http://teknoid.wordpress.com/2009/03/11/blacklist-your-model-fields-for-save/ If so, yeah, that would do it, with just a tweak on beforeSave. Good call. AD7six, I solved my problem by, alas, giving it up and writing everything on beforeSave. I'll check if it has

Re: cake_1.2.3.8166+ Query: execute

2010-07-17 Thread simon...@terra.com.br
That's the full error code I had: I did find that in the APP\app_model.php, line 15 there was "execute" so I just changed it to query and it was fixed. Thanks Dr.Loboto Warning (512): SQL Error: 1064: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server

Re: cake_1.2.3.8166+ Query: execute

2010-07-17 Thread simon...@terra.com.br
That's the full error code I had: I did find that in the APP\app_model.php, line 15 there was "execute" so I just changed it to query and it was fixed. Thanks Dr.Loboto Warning (512): SQL Error: 1064: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server

Re: cake_1.2.3.8166+ Query: execute

2010-07-17 Thread simon...@terra.com.br
That's the full error code I had: I did find that in the APP\app_model.php, line 15 there was "execute" so I just changed it to query and it was fixed. Thanks Dr.Loboto Warning (512): SQL Error: 1064: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server

Re: tinyint(1) versus boolean.

2010-07-17 Thread euromark
yep tinyint(1) => 0 and 1 (boolean) - nothing else! tinyint(2) => for other values (0..255 or -128...128) no fix needed On 17 Jul., 17:35, AD7six wrote: > On Jul 16, 6:19 pm, Dérico Filho wrote: > > > Hi > > > Some of you might feel bugged when trying to access an TINYINT(1) > > field in mysql

Re: hosting problem

2010-07-17 Thread euromark
yeah yahoo is like the worst webhosting ever!!! On 17 Jul., 17:34, cricket wrote: > On Sat, Jul 17, 2010 at 4:47 AM, fadhli - wrote: > > Hi! > > Yahoo web hosting doesn't support .HTACCESS file .gitignore. What is the > > solution for it on yahoo web hosting? > > Change hosts. Or see this > pa

Re: Started developing a survey plugin

2010-07-17 Thread Zaky Katalan-Ezra
Why not contributing to http://www.limesurvey.org/ version 2 implemented with cakephp? 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 p

Re: Custom helpers not loaded

2010-07-17 Thread cricket
On Sat, Jul 17, 2010 at 1:59 PM, Ragnis wrote: > $this->Access->setCurrentUserData($_currentUser); try $access->setCurrentUserData($_currentUser); Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. You received this message because

Re: Custom helpers not loaded

2010-07-17 Thread Ragnis
$this->Access->setCurrentUserData($_currentUser); On Jul 17, 6:00 pm, cricket wrote: > On Fri, Jul 16, 2010 at 11:34 AM, Ragnis wrote: > > It is inside AccessHelper. > > AccessHelper:http://gist.github.com/478497 > > repeating: How is it being called? Check out the new CakePHP Questions site ht

Re: Re-writing all admin_add actions to admin_edit in 1.3

2010-07-17 Thread Jamie
The best thing to do is to get rid of your admin_add functions and just use admin_edit for everything. Making a route to direct 'add' to 'edit' is just lazy. ;) On Jul 16, 7:40 am, Dunhamzzz wrote: > Hi > > In order to not have to duplicate my add and edit forms I have > attempted to route all t

Re: Re-writing all admin_add actions to admin_edit in 1.3

2010-07-17 Thread cricket
On Fri, Jul 16, 2010 at 10:40 AM, Dunhamzzz wrote: > Hi > > In order to not have to duplicate my add and edit forms I have > attempted to route all the admin_add actions to admin_edit, my > admin_edit method is define to just load a blank form if no ID is > supplied in the URL and this worked fine

Re: Assign Profile When User Registers

2010-07-17 Thread cricket
On Sat, Jul 17, 2010 at 7:06 AM, Daniel M.K. wrote: > Each user that register will have a premade profile inserted into de > DB already. At the moment i have the hasOne relationship, when user > registers it creates a profile, and it assigns a user ID to that > profile, the script i use now is: >

Re: tinyint(1) versus boolean.

2010-07-17 Thread AD7six
On Jul 16, 6:19 pm, Dérico Filho wrote: > Hi > > Some of you might feel bugged when trying to access an TINYINT(1) > field in mysql with values different from 0 or 1. > > It happens that CakePHP thinks TINYINT(1) is BOOLEAN. Look at the definition of what a BOOLEAN is: http://dev.mysql.com/doc/

Re: hosting problem

2010-07-17 Thread cricket
On Sat, Jul 17, 2010 at 4:47 AM, fadhli - wrote: > Hi! > Yahoo web hosting doesn't support .HTACCESS file .gitignore. What is the > solution for it on yahoo web hosting? Change hosts. Or see this page: http://book.cakephp.org/view/333/A-Note-on-mod_rewrite Check out the new CakePHP Questions sit

Re: cake 1.3.2 wants to be too smart

2010-07-17 Thread AD7six
On Jul 16, 6:08 pm, djogo wrote: > yeah, it's so stupidly easy to do it in MySQL, it's a shame that I > have to write any code at all in beforeSave() to accomplish the same > thing. > > RAPID DEVELOPMENT, they say. > > Maybe the model could have a "no-mess-field-list", or fields that will > be l

Re: Auth config problem

2010-07-17 Thread cricket
On Sat, Jul 17, 2010 at 10:31 AM, Felix wrote: > Hi, > > I'm trying to add the Auth component to my app, > > I'm using a custom database/model called accounts (database/table: > accounts, model: Account). > > The database uses the fields; > > = e-mail (acts as username) > = password > = ( ... othe

Re: debugging database sessions in cake 1.3.1

2010-07-17 Thread phpdeve
Hi, I have even strange issue with session database. I have exactly same configuration as mentioned here. My issue is that the sessions are stored on both /tmp and the database cake_sessions table. Any idea how to prevent storing session data in tmp folder? On Jun 22, 1:38 pm, dtemes wrote: > bu

Re: save() omitted

2010-07-17 Thread Marcelo F Andrade
On Thu, Jul 1, 2010 at 1:57 PM, Andrei Mita wrote: > I am unbelievably stupid some times. I have lost two days trying to figure > this one out and it never crossed my mind to check the validation rules in > the model. And everything was right there in the manual: "If for some reason > your data is

Re: cake 1.3.2 wants to be too smart

2010-07-17 Thread cricket
On Fri, Jul 16, 2010 at 12:08 PM, djogo wrote: > yeah, it's so stupidly easy to do it in MySQL, it's a shame that I > have to write any code at all in beforeSave() to accomplish the same > thing. > > RAPID DEVELOPMENT, they say. Sure. But it may take some time to learn. You didn't expect that? >

Re: Custom helpers not loaded

2010-07-17 Thread cricket
On Fri, Jul 16, 2010 at 11:34 AM, Ragnis wrote: > It is inside AccessHelper. > AccessHelper: http://gist.github.com/478497 repeating: How is it being called? Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. You received this messa

Re: exif_imagetype

2010-07-17 Thread cricket
On Sat, Jul 17, 2010 at 10:15 AM, ytbryan wrote: > Hi all, > > is there a workaround to get exif_imagetype working? > > I am getting these error: > > exif_imagetype() [function.exif-imagetype]: Filename cannot be empty > [APP/controllers/blogs_controller.php, line 78] The "workaround" is to give

Re: Auth config problem

2010-07-17 Thread Felix
Sorry just noticed a mistake, the database field for e-mail is named "email" NOT "e-mail" as originally posted. On Jul 17, 3:31 pm, Felix wrote: > Hi, > > I'm trying to add the Auth component to my app, > > I'm using a custom database/model called accounts (database/table: > accounts, model: Acco

Auth config problem

2010-07-17 Thread Felix
Hi, I'm trying to add the Auth component to my app, I'm using a custom database/model called accounts (database/table: accounts, model: Account). The database uses the fields; = e-mail (acts as username) = password = ( ... other non-important fields) I've configured the app controller as such;

exif_imagetype

2010-07-17 Thread ytbryan
Hi all, is there a workaround to get exif_imagetype working? I am getting these error: exif_imagetype() [function.exif-imagetype]: Filename cannot be empty [APP/controllers/blogs_controller.php, line 78] or a method in cakephp to determine size of image? Thanks! Bryan Check out the new CakePH

Re: mssql utf-8 to ucs-2 conversion

2010-07-17 Thread kjc
I found out following workaround. I declared save() and read() methods in model class like this (probably i need find(), query(), etc, too): function save($data){ foreach($data as $n => $v){ foreach($v as $x => $y){ if(is_string($y)) $data[$n][$x] = iconv("U

Re: CakePHP 1.3 Form Helper creating drop down and not input field

2010-07-17 Thread spheroid
The "'type' => 'text'" worked, thanks Jeremy! I wanted all to be inputs. Perfect. On Jul 16, 2:29 pm, Miles J wrote: > Exactly what Jeremy said. I actually ran into this problem yesterday, > I resolved it by just putting "type" => "text". > > Sometimes I love Cakes automagic-ness, sometimes it ca

Re: Show validation message when validation fail

2010-07-17 Thread Mariano C.
Sorry, I was using: echo $form->text('fdb_genre'); instead of: echo $form->input('fdb_genre'); Now work perfectly! On 17 Lug, 13:06, euromark wrote: > thats automatically done by cake > @seehttp://book.cakephp.org/view/125/Data-Validation > > On 17 Jul., 09:11, "Mariano C." wrote: > > > > > O

Re: Re-writing all admin_add actions to admin_edit in 1.3

2010-07-17 Thread euromark
i dont see the purpose of this if you really want to use edit for both why not just using one action? i propose: link your add actions in your html views to "edit" right away On 16 Jul., 16:40, Dunhamzzz wrote: > Hi > > In order to not have to duplicate my add and edit forms I have > attempted

Re: Assign Profile When User Registers

2010-07-17 Thread Daniel M.K.
Each user that register will have a premade profile inserted into de DB already. At the moment i have the hasOne relationship, when user registers it creates a profile, and it assigns a user ID to that profile, the script i use now is: function register() { if(!empty($this->data)) {

Re: Show validation message when validation fail

2010-07-17 Thread euromark
thats automatically done by cake @see http://book.cakephp.org/view/125/Data-Validation On 17 Jul., 09:11, "Mariano C." wrote: > Ok, so what can I do to show that message near non-valid field? > There is a guide/tutorial about that? > > On 17 Lug, 08:28, "Dr. Loboto" wrote: > > > > > Validations

hosting problem

2010-07-17 Thread fadhli -
Hi! Yahoo web hosting doesn't support .HTACCESS file .gitignore. What is the solution for it on yahoo web hosting? Thanks in advance 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 subscri

Re: Show validation message when validation fail

2010-07-17 Thread Mariano C.
Ok, so what can I do to show that message near non-valid field? There is a guide/tutorial about that? On 17 Lug, 08:28, "Dr. Loboto" wrote: > Validations rules are for fields in form, not save() method itself. > All fields listed there are validated and for each failed one error > message is gene