|Revisted| Validation of a related Model

2007-11-06 Thread R. Rajesh Jeba Anbiah
Previous discussions: 1. http://groups.google.com/group/cake-php/browse_thread/thread/856cda8e27da925f 2. https://trac.cakephp.org/ticket/2473 Summary: I still don't get it working. Case: 1. add.ctp $form->create('model1') ... $form->input('a'); $form->input('b'); $form->input('model2.x'); 2.

Re: How to get value from method post (calendar)

2007-11-06 Thread Grant Cox
Should be in $this->params['form']['t0'] --~--~-~--~~~---~--~~ 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

Re: I want gData

2007-11-06 Thread keymaster
Not sure how much mileage you're going to get out of a blunt "I want". --~--~-~--~~~---~--~~ 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

Re: I want gData

2007-11-06 Thread Gaurav Sharma
I second that. I think having wrappers for gData API will help spread cake as well. On Nov 6, 2007 7:11 PM, Mr-Yellow <[EMAIL PROTECTED]> wrote: > > https://trac.cakephp.org/ticket/723 > > I don't think it matters that gData is proprietry as it is now > becoming a foundation for more open standar

Re: banging my head for last two days to find the blank line in RSS output

2007-11-06 Thread seacloud9
Ritesh, thanks for the recipe it will help out my bakery. Thanks:) On Nov 6, 9:53 pm, "Samuel DeVore" <[EMAIL PROTECTED]> wrote: > On 11/6/07, bingo <[EMAIL PROTECTED]> wrote: > > > > > or you can ready my blog :) > >http://ragrawal.wordpress.com/2007/11/07/script-for-removing-blank-sp... > > So

Re: banging my head for last two days to find the blank line in RSS output

2007-11-06 Thread seacloud9
Ritesh, thanks for the script it will help out my bakery. Thanks:) On Nov 6, 9:53 pm, "Samuel DeVore" <[EMAIL PROTECTED]> wrote: > On 11/6/07, bingo <[EMAIL PROTECTED]> wrote: > > > > > or you can ready my blog :) > >http://ragrawal.wordpress.com/2007/11/07/script-for-removing-blank-sp... > > So

Re: banging my head for last two days to find the blank line in RSS output

2007-11-06 Thread Samuel DeVore
On 11/6/07, bingo <[EMAIL PROTECTED]> wrote: > > or you can ready my blog :) > http://ragrawal.wordpress.com/2007/11/07/script-for-removing-blank-spaces-before-and-after-php-tags/ > So as a side note this would also be useful for all the people that have problems with jpGraph, imagemagik, using g

I want gData

2007-11-06 Thread Mr-Yellow
https://trac.cakephp.org/ticket/723 I don't think it matters that gData is proprietry as it is now becoming a foundation for more open standards For example OpenSocial. For a CakePHP developer to create an AtomPub backend for OpenSocial they will likely need a gData generator/wrapper. -Ben

How to get value from method post (calendar)

2007-11-06 Thread birumerah
Dear all, i'm using jscalendar for my cake apps, but found some problem to get value from view like this: Dari tanggal image('cal.gif', array('id' => 'cal1')); ?>

Re: banging my head for last two days to find the blank line in RSS output

2007-11-06 Thread bingo
or you can ready my blog :) http://ragrawal.wordpress.com/2007/11/07/script-for-removing-blank-spaces-before-and-after-php-tags/ On Nov 6, 10:09 pm, bingo <[EMAIL PROTECTED]> wrote: > hi AD7six, seacloud9, Jon, Mike, francky, > > Thanks to all. Finally I was able to get rid of all my spaces. As m

Re: banging my head for last two days to find the blank line in RSS output

2007-11-06 Thread bingo
hi AD7six, seacloud9, Jon, Mike, francky, Thanks to all. Finally I was able to get rid of all my spaces. As many of you expected, there were many leading and trailing spaces in my code and once I removed all of them, everything worked like a charm. The good news for other is that I wrote a small

Re: Multiple validation on a single field - CakePHP 1.1.17

2007-11-06 Thread Rajesh
Right now this is what i have in the model, var $validate = array( 'uemail' => VALID_EMAIL); and this is what i have in the view $html->tagErrorMsg('User/uemail', 'Email not valid.') ?> The above works fine. Now, how do i include the rule VALID_NOT_EMPTY along with VALID_EMAIL and display an e

Re: Multiple validation on a single field - CakePHP 1.1.17

2007-11-06 Thread Sergei
Set it too VALID_EMAIL As for other cases, you have to do custom multiple validations in your controller. On 7 нояб, 09:22, Rajesh <[EMAIL PROTECTED]> wrote: > I am using CakePHP 1.1.17 and how do i perform multiple validation on > a single field. For example, an email field should not be empt

Multiple validation on a single field - CakePHP 1.1.17

2007-11-06 Thread Rajesh
I am using CakePHP 1.1.17 and how do i perform multiple validation on a single field. For example, an email field should not be empty and should be a vaild email format. How do i set the rule in model and how do i display the error on the html page. Thanks. Rajesh --~--~-~--~~--

Re: Help me with paginate, please ; )

2007-11-06 Thread Mikee Freedom
Hey puatki, First thing I ever do when trying out the new functions is have a look at the core code. The paginate function doesn't accept the same arguments as the findAll. There is no way to define fields directly in that function. What you have to do instead is use the `paginate` attribute of

Re: Help me with paginate, please ; )

2007-11-06 Thread puatki
Thanks for answer ;) I have cake 1.2. I know how to paginate something "simple". Here I have some count() and sum() fields, group by etc and I do not know how to do this with paginate. $this->paginate( $conditions ) did not work for me. --~--~-~--~~~---~--~~ You

Re: banging my head for last two days to find the blank line in RSS output

2007-11-06 Thread francky06l
BOMS, mean UTF-8 without BOM (byte order marker), this used under windows to mark UTF-8 files (also UCS-2 etc...). Use an hexadecimal editor and you will notice the 3 bytes marking the UTF-8 at the beginning .. Do not know if it's your problem, but quite classical under windows. You can editor suc

Re: usedbconfig doesn't work

2007-11-06 Thread francky06l
Strange problem. I think that you NEED to have a 'default' config in the database.php, even if you use you $mydb. Maybe you "removed" the default ? On Nov 6, 11:29 pm, Grant Cox <[EMAIL PROTECTED]> wrote: > You must have some configuration / setup problem. As a sanity check, > just rename the wh

Re: banging my head for last two days to find the blank line in RSS output

2007-11-06 Thread seacloud9
I don't know in eclipse my guess is it would be associated with your overall preferences listed under encoding (google that) but you most likely have space before and after your "" but do check your model view controllers all of them. It is a drag and it did take me several days to do this mysel

Re: General site sturcture

2007-11-06 Thread francky06l
You can use an Element for your side column. If you use the method of Scheneimi, you can set the value in beforeRender from app_controller. On Nov 6, 7:23 pm, schneimi <[EMAIL PROTECTED]> wrote: > Hi, > > I think you have to create the two columns in the view that builds the > $content_for_layout

Re: Help me with paginate, please ; )

2007-11-06 Thread Grant Cox
In Cake 1.2, instead of using $this->User->findAll( $conditions ); you can just use $this->paginate( $conditions ); Bake a sample app to see how the default setup works - it uses the paginator helper in the views for the links etc. If you are using Cake 1.1, then you just need to manage the $pag

Re: usedbconfig doesn't work

2007-11-06 Thread Grant Cox
You must have some configuration / setup problem. As a sanity check, just rename the whole /app/config/database.php file, and check that Cake does throw errors about not being able to connect - otherwise perhaps you are editing the wrong file altogether. Then try setting your new connection prop

Re: block save?

2007-11-06 Thread Grant Cox
Just return false from the beforeSave. On Nov 7, 5:22 am, Cristian Vrabie <[EMAIL PROTECTED]> wrote: > hello everybody, > i wanted to extend the beforeSave() function of a behavior in order to > do some checks. in a certain sittuation, i would like to block the > following save from executing. ca

usedbconfig doesn't work

2007-11-06 Thread alessio
Hi All, I have write a file database.php in my apllication folder"/cake/myapp/ config" var $mydb = array( 'driver' => 'mysql', 'persistent' => false, 'host' => 'localhost', 'port' => '', 'login' => 'root', 'password' => '', 'database' =

Re: YAMMY!: feed your migrations faster

2007-11-06 Thread cakeFreak
Well... YAMMY does not sort out the problem you mentioned yet. But the functionality you are looking for can be implemented in next versions ;o) YAMMY! adds a touch of "speed" and usability to the excellent shell written by joel Moss. Dan On 6 Nov, 22:17, "Sonic Baker" <[EMAIL PROTECTED]> wro

Re: banging my head for last two days to find the blank line in RSS output

2007-11-06 Thread bingo
hi Seacloud9 I am not sure if I understand what do you mean by UTF-8 "BOMS". How can verify that. I am using eclipse as my PHP Editor. Regards, Ritesh On Nov 6, 4:00 pm, seacloud9 <[EMAIL PROTECTED]> wrote: > I have had this exact same problem it can hold you up for days.. > > Make sure you are

Re: ACL Aro multiple parents Cake 1.2

2007-11-06 Thread BravoFoxtrot
I'm just taking a stab in the dark here but is the following possible? Hopefully someone can help me out.. Create three tables: create table users( id, firstname, lastname, username, email ); create table groups( id, name, description, parent_id); create table groups_users( id, users_id, grou

Re: Unknown internal server error

2007-11-06 Thread Andreas
Well the "Zend Optimizer" section is gone in the directory where i did the "trick" but I'm not sure if that's a 100% sign. Recieved another mail from the support and they're saying that this "trick" doesn't work recursively (I've confirmed this by trying php info, the Zend Optimizer section is th

Re: YAMMY!: feed your migrations faster

2007-11-06 Thread Sonic Baker
Now things are really falling into place. I haven't used YAMMY yet but I can't wait. Been meaning to use migrations for a long time but have been put off by the fact that there isn't any way to actually migrate the data once a structural change is made. E.g. What if I decide I want to further notma

Re: Unknown internal server error

2007-11-06 Thread schneimi
I remember I had a similar problem on my webspace, mod_rewrite was working but somehow the .htaccess caused an error. So I searched for a solution on the web and somewhere found the following code to put in the first .htaccess file. It really worked, but I have no clue what it does. Maybe this hel

Re: banging my head for last two days to find the blank line in RSS output

2007-11-06 Thread seacloud9
I have had this exact same problem it can hold you up for days.. Make sure you are using UTF-8 "BOMS". Make sure tags in Model, Controller, and Views "" Have no spaces after or before them NONE. I found one in the cake folder in the app model. You have six spaces this is literally the cause of

Re: New to Cakephp: Design question

2007-11-06 Thread francky06l
I think, you should use Element within your layout to render the navigation according to user log or not. Alternatively you can use 2 different layouts On Nov 6, 8:20 pm, thathu <[EMAIL PROTECTED]> wrote: > Hello Cakephp developers > > I am trying to design a website for my friend using cakephp,

Re: Unknown internal server error

2007-11-06 Thread francky06l
Are you sure the zend is deactivated with the trick ? Do a phpinfo() on it ... I have tried version 3.3 but it's still buggy.. On Nov 6, 8:57 pm, Andreas <[EMAIL PROTECTED]> wrote: > I know mod_rewrite is working, I'm using it for another thing. > > Just left the mod_rewrite off on purpose until

Re: Unknown internal server error

2007-11-06 Thread Andreas
I know mod_rewrite is working, I'm using it for another thing. Just left the mod_rewrite off on purpose until I recieve any other tips :) On Nov 6, 6:16 pm, grigri <[EMAIL PROTECTED]> wrote: > If you can see the page, but not the css, then mod_rewrite isn't > working properly. > > If you've deac

Re: banging my head for last two days to find the blank line in RSS output

2007-11-06 Thread bingo
hi AD7six, I tried putting header in default layout for RSS, but didn't work. I didn't recieve that output buffer already started at XYZ. The only error that I am getting is "Invalid XML Declaration - Line: 1 Character: 6". I also tried putting header command in controller class, but that also d

Re: SimplePie View

2007-11-06 Thread Samuel DeVore
It is interesting to note that this is a common problem that people have with JPEG generation with things like imageMagic, jpGraph and other tool to generate non-html output. Sam D On 11/6/07, seacloud9 <[EMAIL PROTECTED]> wrote: > > Fixed:) Thanks to excellent advice from Siegfried Hirsch! > >

New to Cakephp: Design question

2007-11-06 Thread thathu
Hello Cakephp developers I am trying to design a website for my friend using cakephp, but I am not sure how to organize the webpages. Here is my design. User -> Generic page layout -> Generic navigation tabs ->click -> Each tab has Generic content for all users User - > login -> Generic Page lay

Help me with paginate, please ; )

2007-11-06 Thread puatki
Hello ( and sorry for my english ). I have working findAll rule : $this->User- >bindModel(array('hasOne'=>array('Dummy'=>array('className'=>'Stat','foreignKey'=>'user_id'))),false); $this->data = $this->User->findAll('Dummy.code = User.code AND Dummy.s = 1 GROUP BY User`.`id`',array('id','userna

Cakephp newbie design question

2007-11-06 Thread thathu
Hello Cakephp developers I am trying to design a website for my friend using cakephp, but I am not sure how to organize the webpages. Here is my design. User -> Generic page layout -> Generic navigation tabs ->click -> Each tab has Generic content for all users User - > login -> Generic Page la

block save?

2007-11-06 Thread Cristian Vrabie
hello everybody, i wanted to extend the beforeSave() function of a behavior in order to do some checks. in a certain sittuation, i would like to block the following save from executing. can i do that? thanks, cristian --~--~-~--~~~---~--~~ You received this messa

Re: Javascript Error

2007-11-06 Thread thathu
I temporarily solved it by adding var $helpers = array('Html','Form','Javascript'); to cake's appController.pho Rahul-26 wrote: > > > Javascript error.. > > I have included my js files that resides in webroot/js folder in the > default layout (default.thtml) as > > link('projrct.basic')

Re: General site sturcture

2007-11-06 Thread schneimi
Hi, I think you have to create the two columns in the view that builds the $content_for_layout and echo the $content_for_layout into the body. So you have to set the vars for the columns in the action of the view. Greets, Michael On 6 Nov., 17:45, jimmyxx <[EMAIL PROTECTED]> wrote: > Hey, > I'm

Re: layout control with default pages controller.

2007-11-06 Thread thathu
I am new to cake as well, but this is what I did to create a new layout called profile. pageTitle = 'User Profile'; } } Now I put my page design in profile.thtml in the layout folder and just make a forward to to /profile/index. That just worked. jmw-2 wrote: > > > I have a ver

Re: CakePHP 1.2 and Oracle throwing errors

2007-11-06 Thread Chris Thompson
Found a ticket submitted here: http://groups.google.com/group/tickets-cakephp/msg/25b70f403ce47e23 This is for the reserved words table names. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To p

Re: SimplePie View

2007-11-06 Thread seacloud9
Fixed:) Thanks to excellent advice from Siegfried Hirsch! >Ok, good so far. I guess, your problem is, that the $feeddata, that >you get back from Simplepie is not a simple array, but there are >object in it. >Take a look at the output of debug($feeddata) and you will see, that >there are objects

Re: CakePHP 1.2 and Oracle throwing errors

2007-11-06 Thread Chris Thompson
I wanted to add something else to this. If you have a table Users and you try to select against it, CakePHP uses the table alias of User, however this is a reserved word in Oracle. Any ideas how to get around this? --~--~-~--~~~---~--~~ You received this message

Re: banging my head for last two days to find the blank line in RSS output

2007-11-06 Thread seacloud9
I have run into the same issue. It is a pain to fix but well worth the benefits! http://groups.google.com/group/cake-php/browse_thread/thread/20bc8af252f597bb/e3a9f444819ac344?lnk=gst&q=seacloud9#e3a9f444819ac344 my issue My fix: http://i-create.org/UTF-8+Madness Bake On! On Nov 6, 9:07 am, A

shopping cart

2007-11-06 Thread carSign
Has anyone been able to integrate a third party shopping cart into cake? --~--~-~--~~~---~--~~ 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 unsubscrib

Re: Unknown internal server error

2007-11-06 Thread grigri
If you can see the page, but not the css, then mod_rewrite isn't working properly. If you've deactivated the mod_rewrite stuff then there is a line you need to uncomment in app/config/core.php : /** * To configure CakePHP *not* to use mod_rewrite and to * use CakePHP pretty URLs, remove these

CakePHP 1.2 and Oracle throwing errors

2007-11-06 Thread Chris Thompson
I am working on getting CakePHP 1.2 to work nicely with our Oracle db. After getting it all configured, the index.php page was throwing: Undefined index: connect [CORE/cake/libs/model/datasources/dbo/ dbo_oracle.php, line 141] and Fatal error: Function name must be a string in /usr/ns-home/do

Re: Unknown internal server error

2007-11-06 Thread Andreas
I've been mailing back and forth with my host the entire day and they upgraded zend optimizer to 3.3 and also showed me a way to deactivate the zend stuff but that didn't make it work. The support guy told me that it looked like it was something with mod_rewrite which messed things up and therefo

Associations Problem

2007-11-06 Thread cronet
Hi, I have a tricky Associationsproblem: The Data is retrieved by an XML Request and Stored locally. For that i wrote a console shell script which works fine at this time. Following DB Structure: CREATE TABLE `hotel_types` ( `id` int(11) NOT NULL auto_increment, `hoteltype_id` int(255) NOT

Re: Add Syntax Coloring to .thtml files with JEdit?

2007-11-06 Thread Wayne Fay
You may need to add/install the PHPParser plugin, if you don't already have it. Or upgrade to the latest (dev) version of jEdit. Wayne On 11/6/07, Robert Sosinski <[EMAIL PROTECTED]> wrote: > > Hello, > > I am starting to use JEdit with CakePHP, however .thtml files do not > show any syntax colo

General site sturcture

2007-11-06 Thread jimmyxx
Hey, I'm new to cakephp and need some advise on how to structure my application. I have a two column layout, in the main column i echo $content_for_layout. This all works fine but now I want to start working on the other column which i'll use for a menu, a skyscraper banner, and little modules l

Add Syntax Coloring to .thtml files with JEdit?

2007-11-06 Thread Robert Sosinski
Hello, I am starting to use JEdit with CakePHP, however .thtml files do not show any syntax coloring. Is there some way I can change this? Thanks. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group.

Re: banging my head for last two days to find the blank line in RSS output

2007-11-06 Thread AD7six
On Nov 6, 2:01 pm, bingo <[EMAIL PROTECTED]> wrote: > hi all, > > I tried what Jon suggested. But still getting space before my xml > declaration :-( ...this is killing me...isn't there a good way to > debug this problem. Searching on the forum, I have realized that many > people struggle with t

Re: findall on 3 models chained with belongsto

2007-11-06 Thread AD7six
On Nov 6, 4:01 pm, Claudia <[EMAIL PROTECTED]> wrote: > Hi there > > Thanks for your answers. > > I am not that worried about the number of queries although the 20 was > just an example. > Although on the index page of my website I would have around 200 extra > queries which (during testing) > s

Re: findall on 3 models chained with belongsto

2007-11-06 Thread Claudia
Hi there Thanks for your answers. I am not that worried about the number of queries although the 20 was just an example. Although on the index page of my website I would have around 200 extra queries which (during testing) sometimes causes a page delay of about half a second - not a huge problem

Re: ACL Aro multiple parents Cake 1.2

2007-11-06 Thread AD7six
On Nov 6, 2:34 pm, Pravalitera <[EMAIL PROTECTED]> wrote: > This is for 1.1. The ACL Component from cake 1.2 does not seem to > handle multi-group users. Maybe dauth is easyly convertible to 1.2... Maybe, but as dauth is not related to acl (its an authentication not authorization solution), ifs

Re: Clean Cake 1.1 sigfaults apache2

2007-11-06 Thread AD7six
On Nov 6, 3:31 pm, MaxDao <[EMAIL PROTECTED]> wrote: > AD, this example (test class) that IS the code is I'm debuggind, where > can it be more deep? The line of code you have stopped on is a call to a method. go into it. hth, AD --~--~-~--~~~---~--~~ You rece

Re: ACL Aro multiple parents Cake 1.2

2007-11-06 Thread Pravalitera
This is for 1.1. The ACL Component from cake 1.2 does not seem to handle multi-group users. Maybe dauth is easyly convertible to 1.2... On 5 nov, 20:53, seacloud9 <[EMAIL PROTECTED]> wrote: > Check out dauth but you will want to view the cached google infomation > first the page was > moved..ht

Re: Clean Cake 1.1 sigfaults apache2

2007-11-06 Thread MaxDao
AD, this example (test class) that IS the code is I'm debuggind, where can it be more deep? On Nov 6, 2:44 pm, AD7six <[EMAIL PROTECTED]> wrote: > On Nov 6, 12:55 pm, MaxDao <[EMAIL PROTECTED]> wrote: > > > I came with die(__LINE__ . '-' . __FILE__); thru dispatcher code, and > > found place wher

Re: Bakery Died?

2007-11-06 Thread Mike Green
Looks like the database is hosed.. On Nov 6, 12:50 pm, Baz <[EMAIL PROTECTED]> wrote: > Now sure who to alert, but I'm sure the right person will see it here. > > I think the Bakery died. Can't access any articles. > -- > Baz L > Web Development 2.0: Web Design, CakePHP, > Javascripthttp://www

Re: banging my head for last two days to find the blank line in RSS output

2007-11-06 Thread bingo
hi all, I tried what Jon suggested. But still getting space before my xml declaration :-( ...this is killing me...isn't there a good way to debug this problem. Searching on the forum, I have realized that many people struggle with this. Regards, Ritesh On Nov 6, 7:48 am, AD7six <[EMAIL PROTECTE

Bakery Died?

2007-11-06 Thread Baz
Now sure who to alert, but I'm sure the right person will see it here. I think the Bakery died. Can't access any articles. -- Baz L Web Development 2.0: Web Design, CakePHP, Javascript http://www.WebDevelopment2.com/ --~--~-~--~~~---~--~~ You received this message

Re: banging my head for last two days to find the blank line in RSS output

2007-11-06 Thread AD7six
On Nov 6, 1:13 pm, Mike Green <[EMAIL PROTECTED]> wrote: > £50 says you have short_open_tags enabled in your php.ini If I were a betting man... I wouldn't have taken that bet on :D --~--~-~--~~~---~--~~ You received this message because you are subscribed to th

Re: banging my head for last two days to find the blank line in RSS output

2007-11-06 Thread AD7six
On Nov 6, 1:37 pm, bingo <[EMAIL PROTECTED]> wrote: > hi Mike, > > you are right..I have short_open_tags on. But how does it matter? because if you get a parse error, php will stop at that point issue an error message and dump the buffer it has in memory. have you got as output a full view with

Re: banging my head for last two days to find the blank line in RSS output

2007-11-06 Thread Jon Bennett
hi, change: to: '; ?> hth jon On 06/11/2007, bingo <[EMAIL PROTECTED]> wrote: > > hi Mike, > > you are right..I have short_open_tags on. But how does it matter? > > Also I tried to switch it off but the above error still persist. > > Regards, > Ritesh > > > On Nov 6, 7:13 am, Mike Green <[E

Re: Clean Cake 1.1 sigfaults apache2

2007-11-06 Thread AD7six
On Nov 6, 12:55 pm, MaxDao <[EMAIL PROTECTED]> wrote: > I came with die(__LINE__ . '-' . __FILE__); thru dispatcher code, and > found place where apache segfauls: > > https://trac.cakephp.org/browser/trunk/cake/1.1.x.x/cake/libs/control... > > Very strange.. I have many OPP code and it works jus

Re: banging my head for last two days to find the blank line in RSS output

2007-11-06 Thread bingo
hi Mike, you are right..I have short_open_tags on. But how does it matter? Also I tried to switch it off but the above error still persist. Regards, Ritesh On Nov 6, 7:13 am, Mike Green <[EMAIL PROTECTED]> wrote: > £50 says you have short_open_tags enabled in your php.ini > > php thinks > >

Re: select box validation in CakaPHP 1.2

2007-11-06 Thread senser
Even "manual" invalidation doesn't help: $this->ModelName->invalidate('field_name', 'error_message'); doesn't display error_message in layout :-/ On Nov 1, 9:30 am, senser <[EMAIL PROTECTED]> wrote: > Doesn't anybody validate select_boxes? > How do you render error_messages? > > On Oct 22, 8:10

Re: banging my head for last two days to find the blank line in RSS output

2007-11-06 Thread Mike Green
£50 says you have short_open_tags enabled in your php.ini php thinks wrote: > hi AD7six, > > I used Chris Lamp's magic command (see below) to get rid of all new > trailing blank lines > > $ find -name "*.php" | xargs sed -i -e :a -e '/^\n*$/{$d;N;ba' -e '}' > > The above command did help as now

Re: banging my head for last two days to find the blank line in RSS output

2007-11-06 Thread bingo
hi AD7six, I used Chris Lamp's magic command (see below) to get rid of all new trailing blank lines $ find -name "*.php" | xargs sed -i -e :a -e '/^\n*$/{$d;N;ba' -e '}' The above command did help as now I am not getting any blank line before my xml declaration. But I am still getting some blan

Re: Clean Cake 1.1 sigfaults apache2

2007-11-06 Thread MaxDao
I came with die(__LINE__ . '-' . __FILE__); thru dispatcher code, and found place where apache segfauls: https://trac.cakephp.org/browser/trunk/cake/1.1.x.x/cake/libs/controller/controller.php#L308 Very strange.. I have many OPP code and it works just great. Here is code of my test model: An

Re: Beginner: Why is $_SESSION empty when I access it from a non cakephp php file?

2007-11-06 Thread AD7six
On Nov 5, 8:35 pm, BobDev <[EMAIL PROTECTED]> wrote: > I have my cakePHP application running it can access the database and > everything. > > I want a simple non-table based login. So I have a simple non-cake > form to accept a username/password. After I check the u/p for > validity, I want to a

Re: CRM o CMS in CakePHP

2007-11-06 Thread Thrilller
pagebakery the CMS i think but i m also looking for a CRM app in CAKEPHP let me know if you got any thanks On Nov 5, 3:21 pm, "Pisinho" <[EMAIL PROTECTED]> wrote: > Hi, > > recently i find a CRM o CMS make with cakephp, is not 'new Drupal' , but i > don't save a link. > > Can I help me ? Do you

Re: banging my head for last two days to find the blank line in RSS output

2007-11-06 Thread AD7six
On Nov 6, 10:15 am, bingo <[EMAIL PROTECTED]> wrote: > hi, > > I am using cakePHP 1.2 and having trouble getting RSS working. My RSS > output contains one blank line before the start of the first tag, > breaking my RSS. I have checked all my modules, controllers, views, > components, and helper

Re: Clean Cake 1.1 sigfaults apache2

2007-11-06 Thread AD7six
On Nov 6, 10:49 am, MaxDao <[EMAIL PROTECTED]> wrote: > AD, this happens even in empty controller with just empty index() > method inside it. > Where should I try to put log code? How about on any line of code that is executed. Hint: stuff in the cake folder (would you believe it!) gets execute

Re: Clean Cake 1.1 sigfaults apache2

2007-11-06 Thread MaxDao
AD, this happens even in empty controller with just empty index() method inside it. Where should I try to put log code? Also this is not always happens but its very often. (80% cases) On Nov 6, 11:18 am, AD7six <[EMAIL PROTECTED]> wrote: > On Nov 6, 9:55 am, MaxDao <[EMAIL PROTECTED]> wrote: >

Re: Clean Cake 1.1 sigfaults apache2

2007-11-06 Thread AD7six
On Nov 6, 9:55 am, MaxDao <[EMAIL PROTECTED]> wrote: > I'v tried it on php 4.4.7 (Gentoo) and 4.4.8_pre (Updated from > portage) - same thing. > Mysql is 5.0.44 (same thing was on 4.1.x mysql branch) > > This code works well on my windows PC with php5, but I badly need it > to run on my server.

banging my head for last two days to find the blank line in RSS output

2007-11-06 Thread bingo
hi, I am using cakePHP 1.2 and having trouble getting RSS working. My RSS output contains one blank line before the start of the first tag, breaking my RSS. I have checked all my modules, controllers, views, components, and helpers for blank space but didn't find anywhere. Did anyone experienced

Re: Clean Cake 1.1 sigfaults apache2

2007-11-06 Thread MaxDao
I'v tried it on php 4.4.7 (Gentoo) and 4.4.8_pre (Updated from portage) - same thing. Mysql is 5.0.44 (same thing was on 4.1.x mysql branch) This code works well on my windows PC with php5, but I badly need it to run on my server. I will appreciate any help. On Nov 5, 2:59 pm, Felix Geisendörfe

Re: findall on 3 models chained with belongsto

2007-11-06 Thread AD7six
On Nov 5, 4:33 pm, Claudia <[EMAIL PROTECTED]> wrote: > Hi there > > I have three models that are chained with belongsTo in one direction > and hasMany in the other direction: > Model1 belongsTo Model2 belongsTo Model3 > and > Model3 hasMany Model2 hasMany Model1 > > Now I need to query model1 a