Re: HABTM not saving multi-select

2007-03-20 Thread stevenoone
I just noticed I don't have foreign keys set up on my computers_serials table - is this required for cakePHP to understand HABTM relationships? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To po

linux command in php

2007-03-20 Thread kenny
1st Hello to everybody ,I am new to this group .I have just join it today . It's really nice coming here to see other people's design related valuable discussions and sharing mine with others. I've learned alot for sure...Here is my we site looks : http://www.gznetwork.net/main I also took t

HABTM not saving multi-select

2007-03-20 Thread stevenoone
I'm trying to set up a relationship where a serial number can be used on multiple computers and computers can have multiple serial numbers. I have a computers_serials table with computer_id and serial_id columns. In my Computers model I have "var $hasAndBelongsToMany = 'Serial'; " and in my Serial

Re: how to edit the ajax helper

2007-03-20 Thread [EMAIL PROTECTED]
Forgot to mention, added the same to line 93 var $editorOptions = array('okText','onComplete',... --~--~-~--~~~---~--~~ 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@go

how to edit the ajax helper

2007-03-20 Thread [EMAIL PROTECTED]
Im trying to use the 'onComplete' option on the ajax editor (http:// wiki.script.aculo.us/scriptaculous/show/Ajax.InPlaceEditor), but cake's ajax helper wont recognize the option. I added the onComplete to cake/libs/view/helpers/ajax.php around line 602 $options = $this->_optionsToString($options

Re: Domains with hosting available for project sposnorship

2007-03-20 Thread xbase
No not spam, genuine offer --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTEC

Re: (My)SQL functions in 1.2.0.4605alpha

2007-03-20 Thread Seb
Additionally, could any one else using the latest SVN try that out... to see if i'm just freaking out...?! Thx! On Mar 21, 2:58 pm, "Seb" <[EMAIL PROTECTED]> wrote: > I've been pulling my hair out for a few days trying to find out > whether I was doing something wrong... > > I have this 'records

Re: Bake error model_php4.php on line 445

2007-03-20 Thread Jon M.
The nighty build of 1.2.x and even 1.1.3.x have some real major problems when it comes to bake.php I can' build a controller because it is giving me a Cannot instantiate non-existent class error now. On Mar 14, 3:34 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > I've been having this error

(My)SQL functions in 1.2.0.4605alpha

2007-03-20 Thread Seb
I've been pulling my hair out for a few days trying to find out whether I was doing something wrong... I have this 'records filtering' in place: [code] $filter = "LOWER(Article.title) LIKE 'a%'"; // ... more stuff... then I do a... $this->Article->findAll($filter); [/code] Now in version 1.2.0

Re: Adding "action" buttons

2007-03-20 Thread wralph
Check your css file for the 'actions' style, theres probably something thats stopping it from displaying. Try removing the div around the two buttons, if both display, then its the style sheet. Winston --~--~-~--~~~---~--~~ You received this message because you

Re: model::query different output with different version of php - a bug or?

2007-03-20 Thread wralph
I always make it a habit of explicitly stating the alias in all my queries like so: SELECT `Chassis`.`a.equipment_id` FROM (select `Chassis`.`equipment_id` from chassis as `Chassis` group by `Chassis`.`equipment_id` LIMIT 3); Which should give you an array like no matter which mysql/PHP version

The order of AJAX updates can be controlled?

2007-03-20 Thread skyblueink
I'm updating the with id = indicator to show the progress of page loading whenever every content(that is, s with id = view0, view2, vie3,...,view9) is displayed. for ($i = 0; $i < 10; $i++){ $view = 'view' . $i; echo ""; $options = array( 'update' => "$view", 'url'

Re: Domains with hosting available for project sposnorship

2007-03-20 Thread BlenderStyle
Spam? theno0b.net is a pretty cool domain name, though. On Mar 20, 1:05 pm, "xbase" <[EMAIL PROTECTED]> wrote: > I have a ton of domains that I am offering to sponsor Cake projects > that the community is working on, i'll provide the hosting and such. > > cheersfoodandspirits.com, > divergingart

Re: model::query different output with different version of php - a bug or?

2007-03-20 Thread jonathan.snook
Yes, it's an unfortunate side effect of using custom queries, especially when joins or nested queries are involved. For a project, I modified the core to use "0" as the alias if the table name returned didn't match a list of model names. In the database.php file, I declared a list of all available

Adding "action" buttons

2007-03-20 Thread EricS
I have 2 database tables and I used cake.php to generate the model, views etc. It created the action buttons in the div called class="actions". I am trying to add new buttons so I copied the ones the script set up exactly and they don't show up next to the old ones. Here is an example:

Accessor like command in CakePHP

2007-03-20 Thread Justin Hernandez
How can I add variables to a model without having a corresponding field in the table? I'm looking for something like the attr_accessor in RoR. Thanks. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" grou

Re: Autocomplete on 1.1.13

2007-03-20 Thread Mike Griffin
I ended up using a regex to get the username and then queried the database for the username in the controller. From this I got the id. Probably not the best way, but it seemed like the easiest and the one that would work on the widest range of platforms. Mike. On 3/17/07, Jeremy Pointer <[EMAIL

Re: Group , Permission to edit table

2007-03-20 Thread cc96ai
Thanks pointing me to the direction, I read ACL , and I understand that ACL can control the action, but how about group can edit certain fields e.g. product table. id, Name, QTY, SalePrice -Admin Can edit all the fields above -Saleman, only can edit on "SalePrice" field ONLY it means, admin hav

Re: Pagination in Cake 1.2

2007-03-20 Thread Aaron Shafovaloff
Grant, thanks for the reply > Some documentation on the paginator is > athttp://blog.insertdesignhere.com/posts/view/16 This was my starting point for learning how to do this. I am essentially trying to implement the example in that blog post. > 1. Have you called $paginator->options() ? Yes

Re: Pagination in Cake 1.2

2007-03-20 Thread Grant Cox
Some documentation on the paginator is at http://blog.insertdesignhere.com/posts/view/16 1. Have you called $paginator->options() ? 2. Do you have the appropriate content div for the ajax call (which you are currently using) to update? --~--~-~--~~~---~--~~ Yo

Pagination in Cake 1.2

2007-03-20 Thread Aaron Shafovaloff
I'm trying to get pagination working in Cake 1.2. I have the very latest (using SVN checkout). This: next('Next >>', array('nextPage'=>2), null, array('class' => 'disabled')); ?> ... renders as: Next >>Event.observe('link7934', 'click', function(event){ new Ajax.Updater('content','/groups/', {

Re: Group , Permission to edit table

2007-03-20 Thread Langdon Stevenson
Hi cc96ai > I read ACL , and I understand that ACL can control the action, > but how about group can edit certain fields > e.g. > product table. > id, Name, QTY, SalePrice > > -Admin Can edit all the fields above > -Saleman, only can edit on "SalePrice" field ONLY > > it means, admin have FULL

Re: Newbie to Cake - IIS5 problem

2007-03-20 Thread david
Thanks barduck I'm impressed by the amount of help that available on this forum - it's good to see something so well supported Anyway, I've found my problem, and as we both suspected - nothing to do with cake, but IIS I neglected to uncheck the 'check that file exists' box in the application e

Re: How call database from Component?

2007-03-20 Thread ianh
There is a getModel function from Felix here http://www.thinkingphp.org/2007/01/22/how-to-properly-create-a-model-instance-manually/ Put that in a component called common and then at the top of the component you want to use set $components = array('common') to make the function available. Then

Re: cakePHP with Xoops???

2007-03-20 Thread Saganxis
On 20 Mar, 06:55, "SMD" <[EMAIL PROTECTED]> wrote: > Hi Saganxis, > > I've a plan to integrate Xoops into cakePHP. > > -SMD- OK, so would you like to share it with me??? I was looking for how Joomla and Drupal do that, but i still can't make Xoops and cake work together. I 'd like to partici

Domains with hosting available for project sposnorship

2007-03-20 Thread xbase
I have a ton of domains that I am offering to sponsor Cake projects that the community is working on, i'll provide the hosting and such. cheersfoodandspirits.com, divergingart.com fearlab.net justrequestit.com theno0b.net totaldecay.com xbasecore.net xbaseonline.net If you have a domain post it

Re: delete cascade / restrict

2007-03-20 Thread John David Anderson (_psychic_)
On Mar 20, 2007, at 1:51 PM, codingisfun wrote: > > thanks for your answer, in such a short time... > > But what if i want to prevent a delete (delete restrict, for example > when a Category cannot be deleted if it has associated messages)? I don't believe something like that exists in Cake nat

How call database from Component?

2007-03-20 Thread Aldo
Hello I'm trying to make a database call from a component, but independent from controller. Is there a way to set the table to use from the component? class CommonComponent extends Object { var $controller = true; function startup(&$controller) { // This

Re: delete cascade / restrict

2007-03-20 Thread John David Anderson (_psychic_)
On Mar 20, 2007, at 1:21 PM, codingisfun wrote: > > How do i code a 'delete cascade' and a 'delete restrict' in cakephp? > Do i have to use a inodb database and define the corresponding foreign > keys or do i have to set a property in de hasmany model? Some model associations have a "dependent"

delete cascade / restrict

2007-03-20 Thread codingisfun
How do i code a 'delete cascade' and a 'delete restrict' in cakephp? Do i have to use a inodb database and define the corresponding foreign keys or do i have to set a property in de hasmany model? --~--~-~--~~~---~--~~ You received this message because you are sub

Re: delete cascade / restrict

2007-03-20 Thread codingisfun
thanks for your answer, in such a short time... But what if i want to prevent a delete (delete restrict, for example when a Category cannot be deleted if it has associated messages)? On 20 mrt, 20:42, "John David Anderson (_psychic_)" <[EMAIL PROTECTED]> wrote: > On Mar 20, 2007, at 1:21 PM, cod

Re: HABTM search with condition on each table

2007-03-20 Thread Ryan K
Have you searched the group? I know AD7 has posted about this topic before. :) http://groups.google.com/group/cake-php/browse_thread/thread/f23b1825050ad543/014092749592de70?lnk=gst&q=habtm+search&rnum=3#014092749592de70 On Mar 20, 9:13 am, "Cake In The Face" <[EMAIL PROTECTED]> wrote: > Need

Re: SQL logic

2007-03-20 Thread miggs
Is there a way to do this from the stories_controller? (Maybe with bindModel?) I only need to limit to 3 for one query. On Mar 20, 11:28 am, Bernardo Vieira <[EMAIL PROTECTED]> wrote: > Have you tried: > > /app/models/category.php > > class Category extends AppModel > { > var $name = 'Catego

Re: HABTM search with condition on each table

2007-03-20 Thread Cake In The Face
Need a solution to this too. On Mar 7, 6:38 am, "FredsFriend" <[EMAIL PROTECTED]> wrote: > Hey > I've had a bit of a nosey around and can't seem to find the answer to > my problem. > I have two tables ( cars, products) and a join table ( cars_products) > all set up with a HABTM relationship using

Re: HABTM search with condition on each table

2007-03-20 Thread Noah
Same problem here. Any ideas? On Mar 7, 8:38 am, "FredsFriend" <[EMAIL PROTECTED]> wrote: > Hey > I've had a bit of a nosey around and can't seem to find the answer to > my problem. > I have two tables ( cars, products) and a join table ( cars_products) > all set up with a HABTM relationship usin

Re: Navigation element

2007-03-20 Thread Samuel DeVore
On 3/20/07, gwoo <[EMAIL PROTECTED]> wrote: > > @sunertl > you would do better to use cache function. Also, realize that a small > db query is not that painful. In any case, in 1.2 you can now cache an > element using the $this->element('whatever', array('cache'=>'+1 day')); > woo hoo gwoo -- (

Re: Validate a field against 2 rules in 1.2?

2007-03-20 Thread bingo
Hi Penfold, probably you can look at this bakery article http://bakery.cakephp.org/articles/view/55 it shows how you can have more than one rules for validation regards, bingo On Mar 19, 7:23 pm, "Penfold" <[EMAIL PROTECTED]> wrote: > Hi all, > > I have been trying to set several validation rul

Re: newbie question, populate drop down box from other parent table

2007-03-20 Thread sixlaneve
oh beauty! yes, it helped! tnx! On 20 Mar, 14:19, "hydra12" <[EMAIL PROTECTED]> wrote: > In your category model, put this: > var $displayField = 'name'; > > Name is the name of the db field you want to show instead of the id. > > Hope that helps! > hydra12 > > On Mar 19, 5:48 pm, "sixlaneve" <[

Re: Looking for real-world example apps

2007-03-20 Thread bingo
Hi stevenoone, I am working on an online bibliography manager. It is based on CakePHP and JQuery. CakePHP is a great way to get started on building your application. It takes care of low-level details and then you can focus on high level functions of your application. CakePHP and JQuery makes an

Re: Using Helpers in default layout

2007-03-20 Thread Bernardo Vieira
gwoo, sorry for hijacking the thread, won't happen again ;), and thanks for the info, I'll give it a try. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to cake-p

Looking for real-world example apps

2007-03-20 Thread stevenoone
Can anyone point me to a few complete, well-commented example applications on CakeForge? I'm basically looking for guidance & best practices when it comes to developing apps that go beyond the simple blog tutorial. Personally, I learn better from following real-world examples than from reading ref

Re: Navigation element

2007-03-20 Thread gwoo
@sunertl you would do better to use cache function. Also, realize that a small db query is not that painful. In any case, in 1.2 you can now cache an element using the $this->element('whatever', array('cache'=>'+1 day')); --~--~-~--~~~---~--~~ You received this me

Re: Using Helpers in default layout

2007-03-20 Thread gwoo
@Bernardo please create new threads. You seem to have hijacked this one. In any case, add Javascript to your helpers in /app/app_controller.php if you do not have this file you can copy the one fro the core and add the helpers array --~--~-~--~~~---~--~~ You recei

Re: $this->set with email component don't working with php4 (1.2)

2007-03-20 Thread Samuel DeVore
you can try $this->Email->Controller->set it worked for me Sam D On 3/20/07, Ámon Tamás <[EMAIL PROTECTED]> wrote: > > Hi how I see no $this->methods tahing effects in email element, but it > is only in php4. I must to use the $GLOBALS array for it, but it is very > ugly. > > Ámon Tamás írta: >

Re: CakePHP Session expiring problems...

2007-03-20 Thread Chris Hartjes
On 3/20/07, majna <[EMAIL PROTECTED]> wrote: > > or use autosave, with ajax, save as draft, like gmail do. > Now *that* is a good solution. Autosave will then update your session, causing it to not expire. Pretty slick. -- Chris Hartjes My motto for 2007: "Just build it, damnit!" rallyhat.

Re: Need some help with pagination in 1.2

2007-03-20 Thread barduck
No one? Nothing? Ok. Anyway, for lack of better advice I decided that I will just copy the paginate() method from the base Controller to my controller, remove the stuff I don't need and add my own logic in between to validate and replace the parameters. makes sense? On Mar 18, 12:44 pm, "ba

Re: CakePHP Session expiring problems...

2007-03-20 Thread bernardo
I think that what you want to achieve is clear. But I think you have to set the timeout to more than 20 minutes if you want someone to be able to send a post more than 20 minutes after loging in, just for trying set it to something really high, and also set the session.gc_maxlifetime. No matter ho

Re: SQL logic

2007-03-20 Thread Bernardo Vieira
Have you tried: /app/models/category.php array('className' => 'Story', 'limit' => '3') ); } ?> /app/models/story.php array('className' => 'Category'); } ?> You might want to add more logic to you join in the Ca

Re: CakePHP Session expiring problems...

2007-03-20 Thread majna
or use autosave, with ajax, save as draft, like gmail do. On Mar 20, 3:15 pm, "Andre" <[EMAIL PROTECTED]> wrote: > On 20 Mar, 14:34, "bernardo" <[EMAIL PROTECTED]> wrote: > > > Try using this: ini_set("session.gc_maxlifetime","14400"); > > and set CAKE_SESSION_SECURITY to high. > > That ini_set t

Using Helpers in default layout

2007-03-20 Thread Bernardo Vieira
Hi all! I've been trying to use helpers in the default layout, so I copied pages_controller.php to my app's controllers dir, added the javascript helper to the uses array, and added a call to the javascript helper in /app/views/layouts/default.thml : link('myjs');?> but I get 'Fatal error: Call

RE: overwriting loadInfo() in Model to get rid of unwanted columns

2007-03-20 Thread Mariano Iglesias
If you are using CakePHP 1.2 default values for fields will be auto populated before saving record. I see nothing wrong with overriding loadInfo(), that's why it's there for, but my question is what's the scenario that there are "lots" of fields that you will be never handling with Cake? Are you

Re: invalidate for certain actions within beforevalidate()

2007-03-20 Thread Toad
What if the user is editing his account and trying to change the username or the email to an already existing value? One way to resolve this is by checking the name in the session and if it is the same as the current submited name skip the findByUsername part, but this is not pretty good one, and

Re: Navigation element

2007-03-20 Thread digital spaghetti
Ok, well in my controller, before I pass anything I print_r my variable, and the output looks like this: Array ( [0] => Array ( [Section] => Array ( [id] => 1 [name] => topnav ) [Menu] => Array ( [0] => Array ( [id] => 1 [name] => Home [

Re: overwriting loadInfo() in Model to get rid of unwanted columns

2007-03-20 Thread RayChicago
> If you are using CakePHP 1.2 default values for fields will be auto > populated before saving record. I'd very much like to use version 1.2 (behaviours, ... mhm. yummy), although (no offense) I have had _really_ bad experiences with "bleeding edge" branches before, so I will wait until all of th

Re: Navigation element

2007-03-20 Thread f.
>foreach($menus['Section']['Menu'] as $menu) { Hi, it' hard to read code in the google layout... especially pr() output...;) looks like the array is numeric... try: foreach($menus as $menu) { echo $menu['Section']['id']; pr($menu['Menu']); ... } greets, f. Array ( [0

Re: Custom tags.php not working in 1.2

2007-03-20 Thread nateklaiber
Still curious about this - using custom tags in 1.2 - is it possible, and what format is it looking for? It looks like tags.php with a $tags array merging with the $tags in HTML helper. Is this correct? Does it load by default and check for custom tags? On Feb 22, 4:19 pm, "nateklaiber" <[EMAIL P

Re: Newbie to Cake - IIS5 problem

2007-03-20 Thread barduck
This is not Cake or PHP problem but how web servers generally work and serve URLs. When you request "http://localhost/cake/app/index.php?/posts/index";, the web server knows that you are looking for the document "index.php" under directory "/cake/app/" with the parameter "/posts/index". IIS know

Re: CakePHP Session expiring problems...

2007-03-20 Thread Andre
On 20 Mar, 14:34, "bernardo" <[EMAIL PROTECTED]> wrote: > Try using this: ini_set("session.gc_maxlifetime","14400"); > and set CAKE_SESSION_SECURITY to high. That ini_set thing should be placed in cake/libs/session.php, right? If it's so, I've done it, but the problem persists. Maybe I'm dumb an

Re: CakePHP Session expiring problems...

2007-03-20 Thread Chris Hartjes
On 3/20/07, majna <[EMAIL PROTECTED]> wrote: > > function __gc($expires) { > $db =& ConnectionManager::getDataSource('default'); > $table = $db->fullTableName(CAKE_SESSION_TABLE); > $db->execute("DELETE FROM " . $db->name($table) . " WHERE " . > $db

SQL logic

2007-03-20 Thread miggs
I was hoping someone here could give me a hand. This seems like it should be simple, and I'm just over complicating things. Basically, I've got 2 tables: stories and categories. I want to query 3 stories from each category. My structure is as follows: stories - id - category_id - story

Re: Navigation element

2007-03-20 Thread digital spaghetti
Following the same example, I've come up with something more dynamic - but unfortunatly I cannot seem to get it to work, can anyone help me? First of all, I call the element: renderElement('topmenu'); ? Then in the element, I call my menu section manager and request all menu's (through a hABTM

Re: Are Cakephp queries being cached that interfere with my batch import function?

2007-03-20 Thread RLR
I found the answer myself... I disabled caching in the model by setting $this->Person->cacheQueries = false; now the app behaves as expected... Have a nive day! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cak

overwriting loadInfo() in Model to get rid of unwanted columns

2007-03-20 Thread RayChicago
Hi all ! I have a table from which I only need a subset of its actual columns. I overwrote loadInfo() in my Model, so that it only returns the needed subset. (I basically return a fixed array for the time being) this works as expected in scaffolding, and it works just because none of the fields I

Re: CakePHP Session expiring problems...

2007-03-20 Thread bernardo
Then note what Grant Cox said. What you want is the server side session to last for a long period, then it would seem that session lasts until the browser is closed, but that is just because the browser forgets the cookie. Try using this: ini_set("session.gc_maxlifetime","14400"); and set CAKE_SE

Re: newbie question, populate drop down box from other parent table

2007-03-20 Thread hydra12
In your category model, put this: var $displayField = 'name'; Name is the name of the db field you want to show instead of the id. Hope that helps! hydra12 On Mar 19, 5:48 pm, "sixlaneve" <[EMAIL PROTECTED]> wrote: > Hi... sorry... I am a bit thick and I have a problem with this > dropdown. > >

Re: adressing css-files (for yui) outside the css folder

2007-03-20 Thread dfgonzalez
BTW: I've just found this, may be it owrks for you :-) http://cakeforge.org/projects/yahoouihelper/ On Mar 18, 8:44 am, "symfony" <[EMAIL PROTECTED]> wrote: > Hey, > is it possible (with url-rewrite) to adress css-files outside the css- > folder in webroot? I want to use yui and save it in /vend

Re: adressing css-files (for yui) outside the css folder

2007-03-20 Thread dfgonzalez
I don't understand your line neither, anyway, /vendors isn't visible from the web browser, I think you must put it inside /app/webroot. On Mar 18, 8:44 am, "symfony" <[EMAIL PROTECTED]> wrote: > Hey, > is it possible (with url-rewrite) to adress css-files outside the css- > folder in webroot? I w

Re: adressing css-files (for yui) outside the css folder

2007-03-20 Thread Cheeze
> $this->controler->webroot.$this->yui_folder . DS . $file . DS . > $file . ".css"; I don't understand what you are trying to achieve with this line. What kind of result do you expect to get from this line? --~--~-~--~~~---~--~~ You received this message because

Re: CakePHP Session expiring problems...

2007-03-20 Thread majna
Back to cake db sessions: (1.1.13.4450 ) cake/ libs/session: session_set_save_handler(array('CakeSession','__open'), array('CakeSession', '__close'),

RE: Are Cakephp queries being cached that interfere with my batch import function?

2007-03-20 Thread Mariano Iglesias
When you are creating multiple records in sequence, always call Model::create() befote Model::save(): $this->Person->create(); $this->Person->save($data); -MI --- Remember, smart coders answer ten questions for every quest

Re: CakePHP Session expiring problems...

2007-03-20 Thread Andre
That's right. By the way, the other framework I'm using is Code Igniter, and the custom PHP session library is this one: http://www.codeigniter.com/wiki/PHPSession/. The way I see it, it would be great to be able to port a Class like that in CakePHP. For some reasons, I don't like my session to

Are Cakephp queries being cached that interfere with my batch import function?

2007-03-20 Thread RLR
Im trying to import online registrations into my cakephp application. The registration data is stored in a db table. Currently my application queries the pending registration data and loops through the result set. Splits the data into relevant pieces that are inserted into cakephp db tables via mo

Re: model::query different output with different version of php - a bug or?

2007-03-20 Thread sawa
Yes, probably different php-mysql library or something similar..but it's really annoying --~--~-~--~~~---~--~~ 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.c

Re: model::query different output with different version of php - a bug or?

2007-03-20 Thread Ámon Tamás
Hello, I think this is the different mysql version problem. sawa írta: > Hi, > I have 2 installations of cakePHP on 2 servers. > Both cakePHP versions are 1.1.13.4450 > Both PHP were Version 5.2.0. > Then one is updated to PHP Version 5.2.0-8+etch1. > After the update, custom queries which have

Re: model::query different output with different version of php - a bug or?

2007-03-20 Thread sawa
Oh, one more clarification: The query above is just illustration of what happens. The real query I use is more complicated (more subqueries included) --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group.

model::query different output with different version of php - a bug or?

2007-03-20 Thread sawa
Hi, I have 2 installations of cakePHP on 2 servers. Both cakePHP versions are 1.1.13.4450 Both PHP were Version 5.2.0. Then one is updated to PHP Version 5.2.0-8+etch1. After the update, custom queries which have subqueries started giving different output. Here is the example: PHP Version 5.2.0

Re: $this->set with email component don't working with php4 (1.2)

2007-03-20 Thread Ámon Tamás
Hi how I see no $this->methods tahing effects in email element, but it is only in php4. I must to use the $GLOBALS array for it, but it is very ugly. Ámon Tamás írta: > Hello, > > $this->set not working with email component in php 4. The same code is > working in php 5. > > If I use > > $th

Re: cakePHP with Xoops???

2007-03-20 Thread SMD
Hi Saganxis, I've a plan to integrate Xoops into cakePHP. -SMD- On Mar 20, 11:09 am, "Saganxis" <[EMAIL PROTECTED]> wrote: > Has anybody tried to integrate cakePHP with Xoops? > If not, can anybody help me or give a suggestion to integrate these > two systems?? > > Thanks > > Saganxis

Re: CakePHP 1.2 validation - userDefined function

2007-03-20 Thread biesbjerg
Okay, looks like userDefined isn't implemented yet. So I tried my luck with beforeValidate() callback, and got it to work - sort of. function beforeValidate() { $data = $this->data; if(!empty($this->id)) { $

Re: Navigation element

2007-03-20 Thread sunertl
I would recommend another way. gwoo's solution means a request to the db every time(!) the navigation is shown. IMHO too much db-action. I would create a function in the controls controller like function updateNavigation() { $entries = $this->Control->findAll(); $string = '';