Re: Estrutura de diretórios

2007-12-12 Thread Augusto Ferreira
Talvez isso possa lhe ajudar: http://www.tuliofaria.net/dica-compartilhando-models-controllers-e-views-entre-aplicacoes-no-cakephp/ Em 12/12/07, Dérico Filho [EMAIL PROTECTED] escreveu: No que se refere aos models, views e controller (e devidos agregados) vc pode posicionar todos eles dentro

Re: saveField

2007-12-12 Thread Bill
Tive este problema quando tentava atualizar algum registro em meu cadastro. Resolvi colocando um campo hidden com o id do registro, e deu certo. Estou tentando atualizar o campo hits de pagina qdo esta é visualizada, o problema é que está incluindo alguns registros quando faço o saveField,

Re: saveField

2007-12-12 Thread Lucas Ferreira
tenta por um create() antes... //Atualiza o número de visualizações da páginas $this-Pagina-create(); $this-Pagina-id = $id; $hits = intval($pagina['Pagina']['hits']) + 1; echo 'Atualizar hits para: ' . $hits; $this-Pagina-saveField('hits',

Re: Help please for ultra-beginner

2007-12-12 Thread Sanfly
No good im afraid, same error, except ugroup_id is now ugroupid Notice: Undefined property: UsersController::$Ugroup in C:\server\www \cake\basic_site\plugins\users\controllers\users_controller.php on line 34 Fatal error: Call

Re: Multiple N to Distinct N Model

2007-12-12 Thread sum1kul
Santa, I have tested the option 2 and it works as expected. - The structure of tables and $belongsTo variable that you proposed were kept unchanged. - Small modification: under score is used for the foreign keys (e.g. opening_id). I reviewed the cake core and found out that generatList() detects

Only able to view home page

2007-12-12 Thread Unite
www.adslgamer.co.za if you go here you will see the page loads perfectly. If you try click on one of the menu links the corresponding page does not show but I get this error. The requested URL /pages/about was not found on this server. Additionally, a 404 Not Found error was encountered while

Re: Multiple N to Distinct N Model

2007-12-12 Thread zonium
Santa, I have tested the option 2 and it works as expected. - The structure of tables and $belongsTo variable that you proposed were kept unchanged. - Small modification: under score is used for the foreign keys (e.g. opening_id). I reviewed the cake core and found out that generatList() detects

Re: Help please for ultra-beginner

2007-12-12 Thread MrTufty
The error message you're getting tells you what the problem is... on line 34, you're referring to $this-Ugroup-findByUgroupid(). This would be fine, except that you haven't told cake to give you access to Ugroup in this way. I'm assuming you have a model for Ugroup, and that it's associated with

Re: Help please for ultra-beginner

2007-12-12 Thread avairet
Hello, My cake knowledge is limited too (2 months), but I think you must specify your 2 models in your controller. Something like that in PHP5 context: ? class UsersController extends AppController { public $uses = array('User','Ugroup'); } ? And maybe you should specify the association in

Re: Only able to view home page

2007-12-12 Thread MrTufty
This is almost certainly a .htaccess issue. I suspect by default either mod_rewrite is not turned on, or the rule for it is AllowOverride None. In the first instance, turn mod_rewrite on (ask your host for information on how to do that, as it will vary). In the second instance, change

Re: Only able to view home page

2007-12-12 Thread Unite
Also noticed cake adds ?CAKEPHP=6b06903f63183a73272e85a4393902b6 to my menu options aswell... any ideas? On Dec 12, 10:40 am, Unite [EMAIL PROTECTED] wrote: www.adslgamer.co.zaif you go here you will see the page loads perfectly. If you try click on one of the menu links the corresponding

go cake!

2007-12-12 Thread majna
Google trends Ruby vs Cake: http://www.google.com/trends?q=CakePHP%2C+ruby+on+railsctab=0geo=alldate=allsort=0 Zend vs Cake: http://www.google.com/trends?q=CakePHP%2C+Zend+Framework Nice. --~--~-~--~~~---~--~~ You received this message because you are subscribed

Re: How do I retrieve this model's alias?

2007-12-12 Thread grigri
You should upgrade more often :) This was sorted in revision 5904 : https://trac.cakephp.org/changeset/5904#file13 From then onwards, Model::alias is a string which contains its alias (surprise!) On Dec 11, 12:15 pm, [rob desbois] [EMAIL PROTECTED] wrote: Hi, I have some code looking

Re: Another Associacion Problem hasOne = belongsTo

2007-12-12 Thread Zwift
Funny, things are changing depending on order of elements in $uses using var $uses = array('LocalAccount','LocalNumber'); - gives me same problem as at the beginning - first queries number of records in LocalAccounts, then just calls describe LocalNumbers, and no selects var $uses =

Re: Another Associacion Problem hasOne = belongsTo

2007-12-12 Thread Zwift
Thanks. After more investigation I found out that bake didn't add uses LocalNumber to LocalAccounts Controller However after I added this It displays LocalAccounts for each existing LocalNumber... Example I have LocalNumbers 10001, 10002, 10003, 10004 and only one LocalAccount with assigned

Re: Another Associacion Problem hasOne = belongsTo

2007-12-12 Thread grigri
Sounds like a version issue to me, I remember a while ago queries were merged to use IN(...) rather than multiple separate ones. I'm using the bleeding edge, I'm not sure what revision my playground was when I ran the tests (updated it this morning) but it was definitely after the pre-beta

the user must not access the pages

2007-12-12 Thread chowdary
hi, when the user clicks the logout.php the session variables are destroying. my doubt is when the user clicking back, again they are entering into the pages. how to check whether session variables exist or not. if the sessions variables are not exist i use header to go login.html page. if yes

Re: Another Associacion Problem hasOne = belongsTo

2007-12-12 Thread Zwift
Your example used only hasOne associacion, but I want to have also back associacion belongsTo I just noticed that in bakers - brands example brands were not grabbed in index() controller method, and thats because lack of belongsTo i guess. hasOne (which prints out associaced brand when I view

Re: Another Associacion Problem hasOne = belongsTo

2007-12-12 Thread Zwift
And the problem with many selects occured probably because I've added those uses I guess I should not On 12 Gru, 12:16, Zwift [EMAIL PROTECTED] wrote: Your example used only hasOne associacion, but I want to have also back associacion belongsTo I just noticed that in bakers - brands example

Translate months name in $form-dateTime select

2007-12-12 Thread avairet
Hi everybody, I'm trying to translate the months names in the dateTime select, which is generated by $form-input; I know that using setlocale PHP function is a good solution, but where can I set this locale to avoid to modify the core Form helper itself? How can I pass the list of months with

Setting path to cake core windows xp

2007-12-12 Thread Comida411
w\What exactly do i code to set a path to .my cake core in windows xp in a lamp environment...? i always here bakers say set the path to your xxx.. but i don't know how to write the correct syntax for setting a path... Here is the I structure of a windows path statement for example my app

Acl behaviour problem

2007-12-12 Thread mmalca
In recent nightly releases there is a problem with acl behavior. When having $actsAs='Acl'; without additional parameters I get several warnings. Traced down a problem to a setup() function of acl.php behavior which gets null as second parameter - $config. When i change line 55 (rev 6128) from

Re: cleanUpFields, $form-input, type date and nightly SVN version 1.2

2007-12-12 Thread AJS
It was a bug - see https://trac.cakephp.org/ticket/3724 - and was fixed last night after I raised a ticket. The date info is now contained within data['Post']['date']['month'] etc, but these get automatically concatenated into single 'date' property just before saving (by a method in the Model

loadModel function

2007-12-12 Thread lordG
Hi guys, First off, I've been working with cake for the past couple of months, and what an awesome framework. 1.2 is also now a dream! Well done to the cake boys! Then, with the 1.2 branch release, does anyone know why in the loadmodel function, they use require and not require_once? I've hit a

Re: Another Associacion Problem hasOne = belongsTo

2007-12-12 Thread Zwift
I've noticed another thing I set my models property to recursive = 2 but when I echo $model-recursive inside dbo_source read method its equal 0 and later on in this method it checks for $model-recursive and continues only when its more then 0 (and then it loads associated data) so question one

Re: Another Associacion Problem hasOne = belongsTo

2007-12-12 Thread Zwift
No sorry again, my mistake damn... I don't know what to do On 12 Gru, 13:05, Zwift [EMAIL PROTECTED] wrote: I've noticed another thing I set my models property to recursive = 2 but when I echo $model-recursive inside dbo_source read method its equal 0 and later on in this method it checks

Re: Setting path to cake core windows xp

2007-12-12 Thread AD7six
On Dec 12, 1:20 pm, Comida411 [EMAIL PROTECTED] wrote: w\What exactly do i code to set a path to .my cake core in windows xp in a lamp environment...? i always here bakers say set the path to your xxx.. but i don't know how to write the correct syntax for setting a path... Here is the I

Re: loadModel function

2007-12-12 Thread Dr. Tarique Sani
On 12/12/07, lordG [EMAIL PROTECTED] wrote: Then, with the 1.2 branch release, does anyone know why in the loadmodel function, they use require and not require_once? I've hit a snack with this one, and change the require to require_once int he code manually. Well, ideally require_once should

Need Suggestion on Accented Character

2007-12-12 Thread bingo
hi, I never before built a website to handle accented characters. Currently this is becoming a big headache for me. if someone enters Sánchez (notice a is accented character) in my web form, only nchez is stored in the database. Can some tell me how to handle these accented characters in

Re: Design in cakephp

2007-12-12 Thread bingo
one solution might be to create multiple layouts and in your controller set the layout. So in your lunacom controller function use $this-layout = whatever_layout_you_need; I hope this helps bingo On Dec 12, 7:12 am, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Well i have a problem. I am new

Re: Only able to view home page

2007-12-12 Thread Куринный Александр
On Wednesday 12 December 2007 11:40:08 Unite wrote: www.adslgamer.co.za if you go here you will see the page loads perfectly. If you try click on one of the menu links the corresponding page does not show but I get this error. The requested URL /pages/about was not found on this server.

Re: Only able to view home page

2007-12-12 Thread Dragos Chiriac
1. be sure to move the .htaccess as well. (on windows machines files that start with . are not very friendly to work with) 2. be sure you have a. apache, b.mod_rewrite, c. rights to access modrewrite. If is iis then you'll need ISAPI rewrite, and the rules in the ini file will differ slightly

Re: Need Suggestion on Accented Character

2007-12-12 Thread AD7six
On Dec 12, 2:00 pm, bingo [EMAIL PROTECTED] wrote: hi, I never before built a website to handle accented characters. Currently this is becoming a big headache for me. if someone enters Sánchez (notice a is accented character) in my web form, only nchez is stored in the database. Can some

Re: cleanUpFields, $form-input, type date and nightly SVN version 1.2

2007-12-12 Thread Baz
Yeah, it ALMOST works now. See: https://trac.cakephp.org/ticket/3726 Still some minor issues. On Dec 12, 2007 4:35 AM, AJS [EMAIL PROTECTED] wrote: It was a bug - see https://trac.cakephp.org/ticket/3724 - and was fixed last night after I raised a ticket. The date info is now contained

Re: Help please for ultra-beginner

2007-12-12 Thread avairet
Ok, that works! Very nice! But in this case, some of my find() or save() calls become more complex: $this-Model1-Model2-Model3-save(); And the resultsets of my find are now in the DESC order... Avairet On 12 déc, 15:54, avairet [EMAIL PROTECTED] wrote: Hi Mr Tufty, I didn't know that...

Re: Help please for ultra-beginner

2007-12-12 Thread avairet
I add another comment: if you are using Eclipse and PDT Eclipse, the autocompletion for model's methods in controller doesn't work again. On 12 déc, 16:07, avairet [EMAIL PROTECTED] wrote: Ok, that works! Very nice! But in this case, some of my find() or save() calls become more complex:

Re: Design in cakephp

2007-12-12 Thread [EMAIL PROTECTED]
Thnx :) 'll try And i think that is solution ;) On Dec 12, 2:02 pm, bingo [EMAIL PROTECTED] wrote: one solution might be to create multiple layouts and in your controller set the layout. So in your lunacom controller function use $this-layout = whatever_layout_you_need; I hope this helps

Re: Passing controller variables to beforeRender

2007-12-12 Thread dr. Hannibal Lecter
Hi, you could just use a variable inside your controller? Set it inside your action as $this-cn_id = $your_id and change your code to: function beforeRender() { if($this-cn_id){ $current_cn = $this-Account-Note-read(null, $this-cn_id);

Re: go cake!

2007-12-12 Thread dr. Hannibal Lecter
Nice. Let's hope this trend will continue. --~--~-~--~~~---~--~~ 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

Undefined index after database changes

2007-12-12 Thread Brian
I added a column to my database and now I can't access the data. I get Undefined index error message when trying to access it. Brian --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP group. To post to this

Re: Need Suggestion on Accented Character

2007-12-12 Thread bingo
hi so you mean to say Database..but how do I convert everything in UTF-8 format..I mean when someone paste something in textarea of my webform, I will need to take that and convert into UTF-8 ...but how do I know in what format it is. Regards, bingo On Dec 12, 8:04 am, AD7six [EMAIL PROTECTED]

Re: Undefined index after database changes

2007-12-12 Thread Samuel DeVore
did you clear tmp/caches/model ? On Dec 12, 2007 9:18 AM, Brian [EMAIL PROTECTED] wrote: I added a column to my database and now I can't access the data. I get Undefined index error message when trying to access it. Brian -- (the old fart) the advice is free, the lack of crankiness

Re: Need Suggestion on Accented Character

2007-12-12 Thread Christophe Cholot
Set your (x)HTML page charset to UTF8. Like AD7Six said, you should set everything to UTF8 On Dec 12, 5:23 pm, bingo [EMAIL PROTECTED] wrote: hi so you mean to say Database..but how do I convert everything in UTF-8 format..I mean when someone paste something in textarea of my webform, I

Re: saving multiple foreign keys in one field

2007-12-12 Thread dr. Hannibal Lecter
Hi, I'm just about to switch to 1.2 branch, so I'm not sure my reply is any good.. have you read these: http://groups.google.com/group/cake-php/browse_thread/thread/6c07e01d44f7e1c6/345187bc45683f72?lnk=gstq=multiple+select#345187bc45683f72

Re: Design in cakephp

2007-12-12 Thread Baz
May also want to look into elements. On Dec 12, 2007 8:48 AM, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Thnx :) 'll try And i think that is solution ;) On Dec 12, 2:02 pm, bingo [EMAIL PROTECTED] wrote: one solution might be to create multiple layouts and in your controller set the

Re: New Cake App In The Wild

2007-12-12 Thread Wayne Fay
Just so you know, the orange background does not line up properly for me with the text boxes. So its hard to actually see/type the code. I'm using IE6. ;-) Also, it might be nice to have a enter your pickup code thing somewhere that sends you to the proper http://.../{code} so you don't have to

Re: Undefined index after database changes

2007-12-12 Thread Brian
Thank for your pity. Sorry. I thought the question was clearly implied because I was receiving an error message. How do I eliminate the error message and access the data? I will try to be more direct and I will also spend more time searching the previously listed post. On Dec 12, 10:29 am,

Re: cake 1.18 - has it changed the behavior of Sessions?

2007-12-12 Thread simon
I've experienced the same bug, and changing from high to medium security seems to have solved it. I'm doing a lot of AJAX stuff in the background, is that what is causing it? Or this a general bug with security set to high? Simon On Nov 21, 2:29 pm, keymaster [EMAIL PROTECTED] wrote: I have an

CakePHP 1.2. pre-beta with CakeAMFPHP

2007-12-12 Thread mastorna
Before I launch headlong into a Cake\Flash project, I was wondering if CakePHP 1.2. pre-beta is compatible with CakeAMFPHP.0.6.0, which is the latest version that the team has produced. If anyone has used these two packages together and can say that they're both largely compatible still or

Re: Site remake with big plans - Suggestions?

2007-12-12 Thread 703designs
One specific question I have: If I go forward with Cake, should I use the stable 1.18, or go with the PreBeta? On Dec 12, 2:14 pm, 703designs [EMAIL PROTECTED] wrote: Right now, I'm sitting on a gold mine athttp://www.cssforums.org/ I feel that this site can seriously take off with a little

Re: Multiple N to Distinct N Model

2007-12-12 Thread abba bryant
To correct myself.. I would create a model - ie LetterPart In the Letter relationships set ( for hasMany - your needs might be different but the keys are the same ) var $hasMany = array( 'TopSection' = array( 'className' = 'LetterPart', 'conditions' = 'TopSection.section_type = top''' ... ),

Re: Site remake with big plans - Suggestions?

2007-12-12 Thread Samuel DeVore
On Dec 12, 2007 1:15 PM, Chris Hartjes [EMAIL PROTECTED] wrote: On Dec 12, 2007 2:21 PM, 703designs [EMAIL PROTECTED] wrote: One specific question I have: If I go forward with Cake, should I use the stable 1.18, or go with the PreBeta? PreBeta for sure. Ignore the chicken littles

Re: findAllThreaded Returning Empty

2007-12-12 Thread AJ
Trying to bump this a bit. Either nobody saw it, or maybe a solution isn't all that obvious? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP group. To post to this group, send email to

Re: Site remake with big plans - Suggestions?

2007-12-12 Thread Chris Hartjes
On Dec 12, 2007 2:21 PM, 703designs [EMAIL PROTECTED] wrote: One specific question I have: If I go forward with Cake, should I use the stable 1.18, or go with the PreBeta? PreBeta for sure. Ignore the chicken littles talking about broken functionality. -- Chris Hartjes My motto for 2007:

Re: findAllThreaded Returning Empty

2007-12-12 Thread Chris Hartjes
On Dec 11, 2007 9:08 PM, AJ [EMAIL PROTECTED] wrote: But the array keeps coming back empty. However, if I copy the SQL query that Cake builds and run it, it returns exactly the records it should. Are you by chance developing with debug in config/core.php set to 0? Try setting it to at least

Re: findAllThreaded Returning Empty

2007-12-12 Thread AJ
Chris, Thanks for the response. Actually that made a lot of sense. Unfortunately I was already in debug mode 2. I tried setting it to every other value and even deleted the cache file. Same result. And again, I checked the SQL output and it runs fine by itself. Open to other ideas :) AJ

Re: findAllThreaded Returning Empty

2007-12-12 Thread Chris Hartjes
On Dec 12, 2007 4:12 PM, AJ [EMAIL PROTECTED] wrote: Chris, Thanks for the response. Actually that made a lot of sense. Unfortunately I was already in debug mode 2. I tried setting it to every other value and even deleted the cache file. Same result. And again, I checked the SQL output

Re: Using Ajax in an Ajax rendered View

2007-12-12 Thread Nina
I'd like to bump this problem, because I have exactly the same issue. I have attempted to use javascript instead of using the helper, but somehow the renderer strips the javascript away. I don't know if this is a feature of some sort, but if it is, I'd like to know how to disable it. Sincerely

Re: Using Ajax in an Ajax rendered View

2007-12-12 Thread Chris Hartjes
On Dec 12, 2007 4:32 PM, Nina [EMAIL PROTECTED] wrote: I'd like to bump this problem, because I have exactly the same issue. I have attempted to use javascript instead of using the helper, but somehow the renderer strips the javascript away. I don't know if this is a feature of some sort,

Re: Using Ajax in an Ajax rendered View

2007-12-12 Thread Nina
This is the experiment I tried: the following code is a part of a view element that is rendered with and without the ajax layout: ?php echo $ajax-autoComplete('Tag/tag', '/tags/ autoComplete',Array('value' = $tag_value));? First rendereing of the element with the default layout gives this

Re: Using Ajax in an Ajax rendered View

2007-12-12 Thread Nina
By the way, I am using the pre-beta release. Also, the problem is alluded to in the closing of this ticket: https://trac.cakephp.org/ticket/2690 . The ticket is closed by the statement: ... The correct layout is used for bare or ajax routes, but you cannot execute javascript from an ajax layout

Re: Site remake with big plans - Suggestions?

2007-12-12 Thread 703designs
Actually, I've found a very nice list of resources here: http://hades.phparch.com/ceres/public/article/index.php/art::cakephp::overview/2 I'm just a bit of a dummy when it comes to these things, and I prefer a book to talk to me. Luckily, it seems that Masters will be releasing a book for people

Re: CakePHP 1.2. pre-beta with CakeAMFPHP

2007-12-12 Thread Grant Cox
Yes, we use CakeAMFPHP with the 1.2.x svn branch. We have made some modifications to CakeAMFPHP though - making it use the cake dispatcher rather than executing the controller actions directly. These modifications were not necessary to get it working though, just to fit in with the rest of our

Re: Using Ajax in an Ajax rendered View

2007-12-12 Thread Nina
I suspect that the afterRender function in cake/libs/view/helpers/ ajax.php is the culprit, but I don't understand what it actually does, so I can't see how to change it. Can anyone shed some light on this matter? Sincerely Nina Jansen On Dec 12, 11:25 pm, Nina [EMAIL PROTECTED] wrote: By the

Re: findAllThreaded Returning Empty

2007-12-12 Thread AJ
I will say this: if CakePHP is generating the proper queries then perhaps you are looking at the wrong array? Try pasting the code in question over athttp://bin.cakephp.organd posting the link here. It might be something really silly. I'm totally willing to believe that's the case, but

Re: Multiple OR Likes

2007-12-12 Thread Mr-Yellow
That's the funny thing, half the examples out there are people telling you to assign the same key with different values, which of course doesn't work. What about multiple OR with ANDs inside? Nested arrays? As for who I've been talking to, there are so many threads on this stuff that it's

Re: Has and belongs to many, with extra columns

2007-12-12 Thread Mr-Yellow
Went looking for the code I had sorted for this but can't find it right now. Cake 1.2 + the with model attribute. Involves creating a model for the join and telling it's children which table to use for the join. One problem is Cake doesn't allow you to use the combined FKs as PK. So you need an

Re: Site remake with big plans - Suggestions?

2007-12-12 Thread 703designs
Where can I go for 1.2 tutorials and documentation? Not to be a whiner, but 1.18's seems sparse enough to me. On Dec 12, 3:22 pm, Samuel DeVore [EMAIL PROTECTED] wrote: On Dec 12, 2007 1:15 PM, Chris Hartjes [EMAIL PROTECTED] wrote: On Dec 12, 2007 2:21 PM, 703designs [EMAIL PROTECTED]

Re: Multiple OR Likes

2007-12-12 Thread Mr-Yellow
Was this typed right? array( 'Foo.Cat' = 'LIKE a%', array( 'Foo.Cat' = 'LIKE b%' ), array( 'Foo.Cat' = 'LIKE c%' ) ); They have to be nested like that or did you mean. array( array( 'Foo.Cat' =

Re: Setting path to cake core windows xp

2007-12-12 Thread Comida411
AD thank you for your response but I would ask that you not respond to my post any longer... your answers have not been helpful only strange.. like ask your real question... you have made other remarks in previous posts that were also weird that had nothing to do with the question being asked

Re: Help please for ultra-beginner

2007-12-12 Thread Sanfly
Hi I had tried something similar to this before, using hasOne (ugroup) in the users model, and belongsTo (users) in the ugroup model. The code I had tried, and the one you suggested, both came up with a SQL error. Ive ended up solving this using Tuftys code, with the addition of this from

Limited number of Conditions??

2007-12-12 Thread Mr-Yellow
$arrWhere = array(); $arrWhere['DATE(Pack.PackDate)'] = '= -!CURDATE()'; $arrWhere['Pack.Flag_Pub'] = 1; $arrWhere['Pack.Flag_HasFLV'] = 1; $arrWhere['Flag_SMailOut'] = 1; $arrWhere['Flag_SMailRec'] = 1; //$arrWhere['Flag_Clipped'] = 1; //$arrWhere['Flag_Creative'] = 1;

Re: Limited number of Conditions??

2007-12-12 Thread Mr-Yellow
Just tried putting them inside an 'AND' and no go -Ben On Dec 13, 12:12 pm, Mr-Yellow [EMAIL PROTECTED] wrote: $arrWhere = array(); $arrWhere['DATE(Pack.PackDate)'] = '= -!CURDATE()'; $arrWhere['Pack.Flag_Pub'] = 1; $arrWhere['Pack.Flag_HasFLV'] = 1; $arrWhere['Flag_SMailOut'] = 1;

Re: Limited number of Conditions??

2007-12-12 Thread Chris Hartjes
On Dec 12, 2007 8:17 PM, Mr-Yellow [EMAIL PROTECTED] wrote: Just tried putting them inside an 'AND' and no go -Ben What's the actual error message that's being generated? A blank page happens when you have PHP configured to not show any errors to the user, but errors should be

Re: Session Sudden Expire during Ajax call

2007-12-12 Thread ProFire
Ok! Maybe I should rephrase my questions. What are the causes for an Expired session? I know the standard ones are the Time Limit and the code (session_destroy()). Are there any other causes for it? Is there a code in CakePHP that causes session to expire?

Re: Session Sudden Expire during Ajax call

2007-12-12 Thread ProFire
Ok! Maybe I should rephrase my questions. What are the causes for an Expired session? I know the standard ones are the Time Limit and the code (session_destroy()). Are there any other causes for it? Is there a code in CakePHP that causes session to expire?

Re: Limited number of Conditions??

2007-12-12 Thread Jon Bennett
$arrWhere = array(); $arrWhere['DATE(Pack.PackDate)'] = '= -!CURDATE()'; $arrWhere['Pack.Flag_Pub'] = 1; $arrWhere['Pack.Flag_HasFLV'] = 1; $arrWhere['Flag_SMailOut'] = 1; $arrWhere['Flag_SMailRec'] = 1; //$arrWhere['Flag_Clipped'] = 1; //$arrWhere['Flag_Creative'] = 1;

Re: Limited number of Conditions??

2007-12-12 Thread Mr-Yellow
Tried error_reporting with no results. Found it tho, lil odd. if (!isset($this-params['url']['hasflv'])) { $this-params['url']['hasflv'] = 0; } else if ($this-params['url']['hasflv']=='1') { $this-params['url']['hasflv'] = 1; } Later I had if

CakePHP and VBulletin

2007-12-12 Thread Lakshmi S
Hi All, We are trying to integrate vBulletin with a CakePHP application. The requirement is that when a user clicks the 'Forum' link within the Cake app, he should be redirected to the vBulletin index page and be automatically logged in. At the point of click, we will have the user's vBulletin

Re: CakePHP and VBulletin

2007-12-12 Thread Wayne Fay
I would expect that there is a way to auto-login a user from a URL by encrypting their username and password and passing them into a vBulletin log user in url/webpage. This is how I would do it, but I don't know vBulletin well enough to tell you specifics. And if such a page does not exist in

Re: CakePHP 1.2. pre-beta with CakeAMFPHP

2007-12-12 Thread R. Rajesh Jeba Anbiah
On Dec 13, 12:47 am, mastorna [EMAIL PROTECTED] wrote: Before I launch headlong into a Cake\Flash project, I was wondering if CakePHP 1.2. pre-beta is compatible with CakeAMFPHP.0.6.0, which is the latest version that the team has produced. If anyone has used these two packages together and

Re: Multiple N to Distinct N Model

2007-12-12 Thread Santa
I really appreciate all of the feedback. I must admit, there are advantages and disadvantages to both methods. I want to keep it positive so I won't discuss the disadvantages from my perspective, but the things I look for. Zonium, thanks for the information on the foreign key caveat... _id...

Selection jump function / menu

2007-12-12 Thread rocky
Hey, I'm trying to use cakePHP to do a client's sign up form. I want to know how did our clients find us so we have a selection box for them to choose. Well, there's an option called other, When they select Other as option I want the web page throws an text field for them to fill out. If any of

Re: Multiple N to Distinct N Model

2007-12-12 Thread Santa
AD7six said: OR consider scaffolding what it is (a development tool), bake/write some code and add the conditions to the generateList call as you would need to do for any polymorphic model definition. if you use 3 models opperating on the same table, just edit the model's beforeFind to add a

cake 1.2.x.x console problems

2007-12-12 Thread Adam D.
I can't run the bake command, or any of the commands from the console. I viewed the screencasts, but still, no luck. If I execute /usr/bin/php cake/console/libs/bake.php ...and I get the output from the console, with paths, etc. -- I essentially just want to run the good ol' bake script

Re: Session Sudden Expire during Ajax call

2007-12-12 Thread zonium
I am guessing there might be some other causes: - The user agent changed between calls (less likely in your case, though) - When first ajax call came, cake regenerated session_id (if security level set to high) The second ajax request might have taken place when session info had been moved to a