Re: how to save debug message into logs/debug.log

2007-04-11 Thread AD7six
On 10 abr, 17:16, "KyleKai" <[EMAIL PROTECTED]> wrote: > I edit core.php , DEBUG into 3 . > > but all debug message is output in my view ... > > I want save all Debug message into my logs , like logs/debug.log . > > how can i do ? Why would you want to do that exactly, debug of 3 is ALOT of inf

Cake 1.2 - Data Validation - Multiple rules per field [hack/solution]

2007-04-11 Thread Dr. Tarique Sani
I needed it now!!! http://cheesecake-photoblog.org/doku.php?id=multiple_validations_per_field_in_cakephp_1.2 Not as elegant as I would want it but for now it works. Hope that helps someone Cheers Tarique -- = PHP for E-Biz: http://s

Re: Storing settings / Persistent data

2007-04-11 Thread AD7six
On 10 abr, 15:48, "cherrio" <[EMAIL PROTECTED]> wrote: > Hey All, > > a question about persistent data. I was using a Config method that I > got from the old Wiki, but when I upgraded to 1.1.14.4797 this broke. > So I checked the Bakery again and found > thishttp://bakery.cakephp.org/articles/v

Re: Possible to put components and elements in plugin?

2007-04-11 Thread AD7six
On 10 abr, 15:38, "gerbenzomp" <[EMAIL PROTECTED]> wrote: > I heavily use AD7six's mini-controllers approach > (http://www.noswad.me.uk/MiBlog/MiniControllers) and because I combine this > approach with the normal approach of having a model, controller, view, > it would really be nice if I coul

Re: How to reset a form when using an AJAX helper?

2007-04-11 Thread Seb
After a brief discussion on IRC, the answer to that was to use the 'complete' attribute like this; $ajax->submit('Add', array("condition"=>"checkLogin()", "class"=>"button","url"=>"/projects/$urlname/$pid/comment", "update"=>"project_comment_list", "complete"=>"// clear your text box content here

Re: What is the best source for CakePHP v1.2 documentation?

2007-04-11 Thread Dr. Tarique Sani
On 4/12/07, Aaron Thies <[EMAIL PROTECTED]> wrote: > What is the best place to go for documentation on v1.2? Use the source Luke! T -- = PHP for E-Biz: http://sanisoft.com Cheesecake-Photoblog needs you!: http://cheesecake-photoblo

Re: Cake 1.2 - Data Validation - Multiple rules per field

2007-04-11 Thread Dr. Tarique Sani
On 4/12/07, bbuchs <[EMAIL PROTECTED]> wrote: > > What's with the attitude? It's not helping anyone, and it's really > turning me off. > Dude! don't you know that April is every open source community's "feed the troll" month? Nate is just doing his part Come May and all such insistent mails of

Re: Search function for application

2007-04-11 Thread [EMAIL PROTECTED]
I personally use a 3rd party script as a vendor for doing my searching. I think the vendor feature is very much overlooked. Combining the power of some simple yet powerful little scripts out there with CakePHP really allows for rapid development of robust applications. Anyway, check out my resear

Re: Data cleanup in Model

2007-04-11 Thread [EMAIL PROTECTED]
I just realized this is not working properly in PHP4, must have something to do with passing the array by reference... the method worked fine on my laptop, where I have php5.2.1 installed, then I moved things to my desktop, the validation stopped working, and i went a little insane - I just upgrad

Re: select with foreign key

2007-04-11 Thread eKiTeL
OK now I see there is a function called selectTag, and a google search of the web turned up the Cake API reference, I suppose I need to use this more than the manual. Seems like there's tons of information available for Cake but the way it's all organized isn't that intuitive. On Apr 11, 9:05

select with foreign key

2007-04-11 Thread eKiTeL
Hi I'm very new to Cake, I can't figure out how to do something very simple and it's driving me nuts I have 2 tables linked with a foreign key, I setup the associations as per the manul (belongsTo and hasMany) so how do I get pull down / select field to be able to select the foreign key, and disp

Re: Problem with save.

2007-04-11 Thread nate
Are you violating any constraints in your table? Try pasting a schema dump. Also, try this after saving: $db =& ConnectionManager::getDataSource("default"); pr($db->lastError()); On Apr 11, 8:09 pm, Danielle Tilley <[EMAIL PROTECTED]> wrote: > Sorry forgot to tell you my environment > > I am us

Re: What is the best source for CakePHP v1.2 documentation?

2007-04-11 Thread nate
Uh, not sure where you got that idea, but $content_for_layout is still pretty valid. Right now, there isn't a whole lot of documentation on 1.2, since it's still mostly a moving target. Once the API is stable, you'll see a lot more information out on it. On Apr 11, 7:44 pm, "Aaron Thies" <[EMAI

Re: Problem with save.

2007-04-11 Thread Danielle Tilley
Sorry forgot to tell you my environment I am using CAKE 1.2.0.4798 MySQL 4.1.19 php 4.3.1 Danielle Tilley wrote: > I have an edit form which has the following controller code. The save > always fails but when I check the validationErrors it is an empty > array. Where else can I look to fig

Problem with save.

2007-04-11 Thread Danielle Tilley
I have an edit form which has the following controller code. The save always fails but when I check the validationErrors it is an empty array. Where else can I look to figure out what is going wrong? Thanks Danielle ===cruises_controller.php data)) { $this->cleanUpFields();

RE: Cake 1.2 - Data Validation - Multiple rules per field

2007-04-11 Thread Mariano Iglesias
Definitely your ideas, Chris. Am I sarcastic today or what? -MI --- Remember, smart coders answer ten questions for every question they ask. So be smart, be cool, and share your knowledge. BAKE ON! blog: http://www.Mar

What is the best source for CakePHP v1.2 documentation?

2007-04-11 Thread Aaron Thies
I recently started playing with CakePHP v1.1 but then decided to start using v1.2 for the internationalization. Quickly I see there are several changes. Like $content_for_layout is now no longer valid. How do I do this in v1.2? What is the best place to go for documentation on v1.2? -- Aaron

Re: Cake 1.2 - Data Validation - Multiple rules per field

2007-04-11 Thread Chris Hartjes
Nate is just grumpy lately, but I do echo some of what he said. The core group (I am on the outside of that because I have commit access to do my console stuff) has every right to ignore requests from people if they don't feel it will add anything. Now, this is not because an idea has no merit.

Re: Cake 1.2 - Data Validation - Multiple rules per field

2007-04-11 Thread buzznut
I would love to chat more with someone about the structure and needs of the group to see if my company would be willing to sponsor you further. Who is the best one to contact? Thanks, On Apr 11, 4:22 pm, "John David Anderson (_psychic_)" <[EMAIL PROTECTED]> wrote: > On Apr 11, 2007, at 4:09 PM,

Re: Cake 1.2 - Data Validation - Multiple rules per field

2007-04-11 Thread bbuchs
OK, OK... Thank you for taking the time to explain - seriously. I didn't mean to hijack the thread, so I suppose this should have been an independent discussion. I appreciate the fact that there's a lot of work being done by a relatively small amount of people. In fact, I'm very appreciative of i

Re: Cake 1.2 - Data Validation - Multiple rules per field

2007-04-11 Thread buzznut
Completely agree with your comments. Just to make it clear, I am not the one concerned with the tone. bbuchs is the poster that was concerned with the sharpness of the response. I appreciate your efforts on the project and will continue to work to see where I can help and not be a distraction. Th

RE: Cake 1.2 - Data Validation - Multiple rules per field

2007-04-11 Thread Mariano Iglesias
Gwoo a good cop? Since when? ;) -MI --- Remember, smart coders answer ten questions for every question they ask. So be smart, be cool, and share your knowledge. BAKE ON! blog: http://www.MarianoIglesias.com.ar -Me

Re: Cake 1.2 - Data Validation - Multiple rules per field

2007-04-11 Thread nate
John's right, you're reading way into it. I mean, would you rather not be updated on the status of the feature? If it was a major priority, I would have given a definite time frame, but it's not, so I can't (not that it isn't an important feature). Besides, if I was trying to give you an attitu

RE: 1.2's pagination using custom querys... possible?

2007-04-11 Thread c0m
Good afternoon everyone! I've been looking online to see some examples of how to use pagination with 1.2, in addition to viewing the API. I haven't found all that much and have arrived at a dead end. Two questions that I have are: 1 - Anyone have any good reference links to show how to use pag

Re: Cake 1.2 - Data Validation - Multiple rules per field

2007-04-11 Thread John David Anderson (_psychic_)
On Apr 11, 2007, at 4:09 PM, buzznut wrote: > I certainly did not take the response in a bad way. I apologize if I > end up asking too many questions, but I am trying to do my best to > educate myself on the 1.2 release and see if I can't help test, write > docs or do whatever is needed to move

Re: acl.php initdb doesn't work in 1.1.14.4797

2007-04-11 Thread Damien
Looks like this is https://trac.cakephp.org/ticket/2370 I made the edit described there and now it seems to work ok. I'd still appreciate any comments about how I could get hold of an older version (if I find it's needed) as working with such a recent release for this particular work makes me ve

Re: acl.php initdb doesn't work in 1.1.14.4797

2007-04-11 Thread Damien
Looks like this is https://trac.cakephp.org/ticket/2370 I made the edit described there and now it seems to work ok. I'd still appreciate any comments about how I could get hold of an older version (if I find it's needed) as working with such a recent release for this particular work makes me ve

Re: Cake 1.2 - Data Validation - Multiple rules per field

2007-04-11 Thread buzznut
I certainly did not take the response in a bad way. I apologize if I end up asking too many questions, but I am trying to do my best to educate myself on the 1.2 release and see if I can't help test, write docs or do whatever is needed to move it forward. I am even interested in donating to the ca

Re: ACL broken for any one else in 1.1.14.4797?

2007-04-11 Thread Damien
> gwoo has updated the branch. > :) Forgive my "noobness", but would I get hold of the updated branch? --~--~-~--~~~---~--~~ 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

acl.php initdb doesn't work in 1.1.14.4797

2007-04-11 Thread Damien
Hi, I'm just getting to grips with CakePHP but definitely like what I see. I'm currently following the IBM tutorial series here - http://www-128.ibm.com/developerworks/edu/os-dw-os-php-cake1.html I'm trying to use the >php acl.php initdb command to create the ACL tables in my database, but when

Re: associationForeignKey not working --trying self join

2007-04-11 Thread bingo
hi still not able to solve the problem..can someone help Regards, bingo On Apr 7, 2:13 pm, "bingo" <[EMAIL PROTECTED]> wrote: > hi, > > I have a table with following structure > > posts_keywords: >post_id >keyword_id >created > > I am trying to find coocurring keywords f

Re: Lumad CMS / (Cupcake)

2007-04-11 Thread Olivier Percebois-Garve
last time I saw Ocean showing up was for 9 month or so. Ocean CMS is a neat piece of software, but it is finished at 90%... I think it was compatible to cake until rc4 that all... keymaster wrote: > No, Olivier, I didn't notice it. Thanks for pointing it out, though. > > What most appealed to m

RE: Cake 1.2 - Data Validation - Multiple rules per field

2007-04-11 Thread Mariano Iglesias
And also, didn't know it was nate's job to turn him on ;) -MI --- Remember, smart coders answer ten questions for every question they ask. So be smart, be cool, and share your knowledge. BAKE ON! blog: http://www.Marian

RE: CakePHP community. Thank you!

2007-04-11 Thread Mariano Iglesias
This is definitely something you don't see every day :) Thanks mmahgoub! -MI --- Remember, smart coders answer ten questions for every question they ask. So be smart, be cool, and share your knowledge. BAKE ON! blog: h

CakePHP community. Thank you!

2007-04-11 Thread mmahgoub
hi i am a fresh cake just entered your bakery, and i just want to thank the community for being gentle and kind to newbies like me. i have a lot of questions and i found no trouble to find answers without even asking or post new topic and i saw a handful of good people who offering their help and

Re: newbie question about multiple databases

2007-04-11 Thread Sergei Gerasenko
Well, it turns out that it's a bug that first appeared in 1.1.14. It seems that it was first reported on the 8th. The ticket number is 2370. On Wed, Apr 11, 2007 at 09:25:39AM -0400, Sergei Gerasenko wrote: > > I had an email hiccup yesterday, so I'm not sure if you got my last > message. Just i

Re: Cake 1.2 - Data Validation - Multiple rules per field

2007-04-11 Thread John David Anderson (_psychic_)
On Apr 11, 2007, at 2:21 PM, bbuchs wrote: > > On Apr 11, 2:11 pm, "nate" <[EMAIL PROTECTED]> wrote: >> That functionality is still in progress. It'll be done when it's >> done. > === > > OK, this is off-topic, but the tone of Nate's response has become all > to

Re: Cake 1.2 - Data Validation - Multiple rules per field

2007-04-11 Thread bbuchs
On Apr 11, 2:11 pm, "nate" <[EMAIL PROTECTED]> wrote: > That functionality is still in progress. It'll be done when it's done. === OK, this is off-topic, but the tone of Nate's response has become all too common. I'm not saying it's one person or another, but I hav

Re: Behavior of JavascriptHelper::object

2007-04-11 Thread digital spaghetti
And thanks for bringing this up. I've asked a couple of times in IRC if anyone was using JSON in cake as I want to use YUI-EXT but never got an answer. Now I know its there, it should speed up development :) Tane On 4/11/07, nate <[EMAIL PROTECTED]> wrote: > > Great, thanks Joshua. It's fine

Re: Cake 1.2 - Data Validation - Multiple rules per field

2007-04-11 Thread nate
That functionality is still in progress. It'll be done when it's done. On Apr 11, 3:06 pm, "buzznut" <[EMAIL PROTECTED]> wrote: > Is it intended to be a part of cake 1.2 when it is finished? I believe > that this should be part of the core cake functionality. > > On Apr 11, 6:00 am, "Dr. Tarique

Re: Behavior of JavascriptHelper::object

2007-04-11 Thread nate
Great, thanks Joshua. It's fine if you're asking if something *is* a bug, but once you find out it is, it's always good to follow it up with a ticket to make sure it gets fixes. Thanks again. On Apr 11, 2:38 pm, "Joshua Benner" <[EMAIL PROTECTED]> wrote: > I've applied nate's fix with success.

Re: Cake 1.2 - Data Validation - Multiple rules per field

2007-04-11 Thread buzznut
Is it intended to be a part of cake 1.2 when it is finished? I believe that this should be part of the core cake functionality. On Apr 11, 6:00 am, "Dr. Tarique Sani" <[EMAIL PROTECTED]> wrote: > On 4/11/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > > 1. Multiple rules per field. I have be

Re: ACL broken for any one else in 1.1.14.4797?

2007-04-11 Thread cherrio
After talking with gwoo on Irc he has suggested a fix, on ACLnode.php line 113, change the line, $idList = DataSource::getFieldValue(... to $idList = Set::extract(... gwoo has updated the branch. :) On Apr 11, 11:13 am, "cherrio" <[EMAIL PROTECTED]> wrote: > Hey guys, > > had a few minor prob

HdCalendar calendar->Events() - Does anyone know how to use this?

2007-04-11 Thread donuts
Hello Fellow bakers, I am trying to combine the Timesheet app from cakeforge with the hdCalendar plugin. More specifically, i am trying to pass an array of Tasks to the Events function of the calendar helper, so that I can see the tasks is in a weekly view. Has anyone been able to get this functi

Re: can a whole view be loaded inside a hidden out of the screen..

2007-04-11 Thread rstuker
thanks a lot Gerben, really did help!!. --~--~-~--~~~---~--~~ 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: Passing data between models

2007-04-11 Thread [EMAIL PROTECTED]
In PHP5 you can serialize() and unserialize() any type-set except references. In this case I would assume a string. By serializing the string and assigning it to the session array, you can easily pass the protected string value from controller to controller. In step 5, retrieving the serialized se

Re: mapping parameters passed in url

2007-04-11 Thread bato
thanks a lot for reply jcsiegrist, On 11 Apr, 19:20, "jcsiegrist" <[EMAIL PROTECTED]> wrote: > try extract($this->passedArgs). This gets all keys as variables into > the local namespace (see php manual). But beware that this can be very > insecure with untrusted data. > I thinked to extract too

Re: Passing data between models

2007-04-11 Thread uolax
I think I've answered my own question: By setting up the relations in the models, you can access and write to the other tables. If there is no relation (For instance my temp and perm tables above), then $uses is the best bet. Am I correct here? Thanks, Jason On Apr 11, 10:13 am, "uolax" <[EMAI

Re: Behavior of JavascriptHelper::object

2007-04-11 Thread Joshua Benner
I've applied nate's fix with success. Sorry for the reporting -- I'll report bugs more politely in the future. :) On Apr 11, 2:12 pm, "nate" <[EMAIL PROTECTED]> wrote: > He firespade, > > I actually came up with another method that is more efficient, as it > does not require a loop to check for

Re: Lumad CMS / (Cupcake)

2007-04-11 Thread keymaster
No, Olivier, I didn't notice it. Thanks for pointing it out, though. What most appealed to me about CupCake / Lumad CMS, was not so much that it was a CMS. There are many of those around, and I don't expect anything will approach the functionality of some of the major CMS's already in the opensou

Re: Behavior of JavascriptHelper::object

2007-04-11 Thread nate
He firespade, I actually came up with another method that is more efficient, as it does not require a loop to check for numeric keys. You can see the change here, as well as the test case that proves it: https://trac.cakephp.org/changeset/4838 Also, in the future, if you'd like to submit patche

Re: Pagination through requestAction

2007-04-11 Thread gwoo
what revision are you using? --~--~-~--~~~---~--~~ 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 PROT

Re: Lumad CMS / (Cupcake)

2007-04-11 Thread Olivier Percebois-Garve
did you also notice http://sourceforge.net/projects/igocms/ svn shows recent activity and good code... keymaster wrote: > Came across the Cupcake CMS built on cakePHP. > > I read somewhere that it is conceptually based off Radiant CMS, which > in turn is built off Ruby on Rails, so would be a n

Re: mapping parameters passed in url

2007-04-11 Thread gwoo
Actually, you are a little off. namedArgs are passed as name:value and return an associative array passedArgs have always been a numerical array and arguments here are some examples: url: /controller/action/name/other function ($name, $other) { pr($this->passedArgs); } you can also access $name

Re: Behavior of JavascriptHelper::object

2007-04-11 Thread [EMAIL PROTECTED]
Considering I don't know this portion of the framework, its difficult to know where your association check begins and ends. I found a simple method that takes care of the association check and the data type checks. Just tying in the params and its almost completed. On Apr 11, 12:47 pm, "nate" <[E

Passing data between models

2007-04-11 Thread uolax
Hello, Please forgive me if this is a newbie question. I have a temporary table and a permanant table.each with their respective models. I have 2 users: userNormal and userAdmin. 1. A form posts data to the temporary table from userNormal. 2. A notice/email/flag is sent to userAdmin. 3. use

Re: Behavior of JavascriptHelper::object

2007-04-11 Thread [EMAIL PROTECTED]
Place this over the original Object method in the javascript.php located in "\cake\libs\view\helpers\". Enjoy. function object($data, $block = false, $prefix = '', $postfix = '', $stringKeys = array(), $quoteKeys = true, $q = "\"") { $parts = array(); $is_list = fa

Re: mapping parameters passed in url

2007-04-11 Thread jcsiegrist
try extract($this->passedArgs). This gets all keys as variables into the local namespace (see php manual). But beware that this can be very insecure with untrusted data. :jc On 11 Apr., 18:27, "bato" <[EMAIL PROTECTED]> wrote: > Hi all, > > I have seen in cake 1.2 that $this->passedArgs return a

Re: Behavior of JavascriptHelper::object

2007-04-11 Thread Joshua Benner
It preloads a list of contracted employees per year/term for population into a select box upon selecting a year and term. As has been noted by others, it is missing the array keys and simply generating an array instead of a JSON associative array at the top level. At this point, I'm using custom

Re: Behavior of JavascriptHelper::object

2007-04-11 Thread nate
Heh, well the fix is actually pretty simple, and it doesn't require anywhere near a full rewrite, but sure, thanks. Patches are always welcome. On Apr 11, 12:28 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > Yes I do actually. After reviewing the array, my co-worker and I > noticed the mis

mapping parameters passed in url

2007-04-11 Thread bato
Hi all, I have seen in cake 1.2 that $this->passedArgs return an array of parameters passed in GET in the follow way /app/controller/action/name1:var1/name2:var2 the passedArgs array will be array ( name1 => var1 name2 => var2 ) the action of my controller is action(name1=null, n

Re: Behavior of JavascriptHelper::object

2007-04-11 Thread [EMAIL PROTECTED]
Yes I do actually. After reviewing the array, my co-worker and I noticed the missing Key values from the JSON representation. I've begun rewriting your prior Object method. It's parsing correctly now however I haven't begun to include the other parameters aside from the Data param. Give me 15-30 m

Re: Behavior of JavascriptHelper::object

2007-04-11 Thread nate
@firespade: look at the structure. Notice anything missing? On Apr 11, 11:18 am, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > Yes thats a JSON representation of a multidimensional array (wrapped > in braces and blocks). > What were you planning on using this for? > > On Apr 11, 10:07 am, "Jo

Re: can a whole view be loaded inside a hidden out of the screen..

2007-04-11 Thread gerbenzomp
So you've been able to load the add view into the div already? Then you just need to change a few things in the add form: // start the form // normal form fields input('MyModel/title', array('size' => '35'))?> // etc // ajax submit button ''url_for_submit', 'update'=>

Pagination through requestAction

2007-04-11 Thread sickrandir
Hi, I'm successfully using pagination with cake 1.2 . Now for the home page of the site I need to paginate content from two different models. I have two controllers and the home page is a view for an action of one of them. The other one is queryed using the requestAction function. The problem is

Re: Behavior of JavascriptHelper::object

2007-04-11 Thread [EMAIL PROTECTED]
Yes thats a JSON representation of a multidimensional array (wrapped in braces and blocks). What were you planning on using this for? On Apr 11, 10:07 am, "Joshua Benner" <[EMAIL PROTECTED]> wrote: > I'm trying to pass PHP data to Javascript (pre-loading data). > > It's my understanding that Java

Re: associations in page model: (namespace) conflicts?

2007-04-11 Thread gerbenzomp
The reason I transformed the "pages" architecture from static to dynamic is that I wanted to use the name "pages" in my url, instead of something like "sections" or "articles". And the pages model is going to be the most important part of my app, so I wanted to give it a clear name. I'm not going

Re: can a whole view be loaded inside a hidden out of the screen..

2007-04-11 Thread rstuker
got the aim, but not the way, sorry. May you be so kind to show me a whole example? I've a form in a view (controllers/add) which contained value to be entered, using ---$html->input('Model/fielname')... -- $html- >submit("save"). I loaded this view inside the div hidden using the echo $ajax->li

Re: associations in page model: (namespace) conflicts?

2007-04-11 Thread [EMAIL PROTECTED]
I'd probably stick to using a basic controller to perform your logic. What was your reasoning for retrieving pages as dynamic instead of static? And if you removed your route for the pages controller, how are you performing the logic? On Apr 11, 10:22 am, "gerbenzomp" <[EMAIL PROTECTED]> wrote: >

Re: Behavior of JavascriptHelper::object

2007-04-11 Thread nate
This looks like it might be a bug. You can file a ticket at https://trac.cakephp.org/. Be sure to include the *exact* steps to reproduce. Thanks. On Apr 11, 10:07 am, "Joshua Benner" <[EMAIL PROTECTED]> wrote: > I'm trying to pass PHP data to Javascript (pre-loading data). > > It's my understa

Re: Ajax Sortable List Confusion

2007-04-11 Thread gerbenzomp
Nice job, I recently built something quite like this, only in my set- up the widgets themselves are in fact "mini-controllers" using a component and an element. On 11 apr, 16:15, "Dustin" <[EMAIL PROTECTED]> wrote: > Just an update to anyone looking for help with building a drag & drop > interfac

Re: associations in page model: (namespace) conflicts?

2007-04-11 Thread gerbenzomp
Sorry, forget this post. The problem was ambiguity in the "order by" clause. The only strange thing is that Cake didn't show an error to let me know which was the problem, while it does this for any other model... Could this (not showing errors) have something to do with the fact that I changed

associations in page model: (namespace) conflicts?

2007-04-11 Thread gerbenzomp
I've changed Cake's default static "pages" architecture to be dynamic, and also commented out the default route for this controller. All went fine, until I tried to get some associations up and running. I tried to link pages to sites, using belongsTo, but when I do a pr($data); in the view, nothi

Re: Ajax Sortable List Confusion

2007-04-11 Thread Dustin
Just an update to anyone looking for help with building a drag & drop interface in Cake. I wrote a brief tutorial on my blog that should help resolve most basic issues/confusion with this particular aspect of Cake. I tried to write it from the perspective of someone new to Cake and or with no pr

Behavior of JavascriptHelper::object

2007-04-11 Thread Joshua Benner
I'm trying to pass PHP data to Javascript (pre-loading data). It's my understanding that JavascriptHelper::object should generate JSON representation of the PHP data passed to it, but I'm misunderstanding how to apply the method. Below is the test I ran and the unexpected result I get. Is this pr

Session fatal error (database gc)

2007-04-11 Thread majna
There is an error when session is set to database : Is it bug? Can one confirm? cake_1.1.14.4797 Fatal error: Using $this when not in object context in C:\AppServ\www \cake\libs\session.php on line 365 To reproduce this error set $probability =1 in: /** * Method called on close of a database

Re: unserialize error

2007-04-11 Thread majna
gc works fine now, How to extract some value from $session['Mysession']['data'] like User.username ? I would like to find all logged users (by username). () without stuff like: $a = preg_split( "/(\w+)\|/", $row['data'], -1, PREG_SPLIT_NO_EMPTY | PREG_SPLIT_DELIM_CAPTURE ); Is there another way?

Re: newbie question about multiple databases

2007-04-11 Thread Sergei Gerasenko
I had an email hiccup yesterday, so I'm not sure if you got my last message. Just in case I'll update you on what I've found. The bottom line is that it works in 1.1.11.4064 and doesn't in 1.1.14.4797. I don't know if a bug was introduced in 1.1.14, but I guess it's possible. Is there a way to

Re: can a whole view be loaded inside a hidden out of the screen..

2007-04-11 Thread gerbenzomp
You can just do an ajax->submit ''url_for_submit', 'update'=> 'div_to_update', 'complete' => $complete."some effects here maybe...?"); echo $ajax->submit('Save', $options); ?> Then in your controller you could make sure the from you h

Re: Problem with the Bakery profile form

2007-04-11 Thread Daniel Hofstetter
Please open tickets on https://trac.cakephp.org so that those issues can get fixed. Thanks! -- Daniel Hofstetter http://cakebaker.42dh.com --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post

Problem with the Bakery profile form

2007-04-11 Thread Jiri Kupiainen
Hello, Sorry if this is the wrong place to mention this, but I couldn't find any direct contact information for someone who maintains the Bakery. I was adding a profile to the Bakery, when I noticed the following problems: * There is a notice about HtmlHelper:selectTag being deprecated before t

Re: can a whole view be loaded inside a hidden out of the screen..

2007-04-11 Thread rstuker
thanks gerbezomp!. I tried it and is ok. Is there a way to do the same when it comes about submitting the same form using $ajax->? i mean no reload,because when it happens( the user click the submit button) it gets out of my .Obviously, it is expected to do that, just i wanna commit new data & rem

Re: Cake 1.2 - Data Validation - Multiple rules per field

2007-04-11 Thread Dr. Tarique Sani
On 4/11/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > 1. Multiple rules per field. I have been trying it lots of ways, but > here is the latest. It doesn't work. Coincidentally - I just trolled the IRC for this and yes it is not possible at the moment in 1.2 The simplest way to achieve this

ACL broken for any one else in 1.1.14.4797?

2007-04-11 Thread cherrio
Hey guys, had a few minor problems upgrading (because I had customized Session component, my own fault :-D), but I think this one is not my fault. I get the following error when trying to delete an Aro entry, Fatal error: Call to undefined function: getfieldvalue() in D:\eclipseworkspaces\main_b

Lumad CMS / (Cupcake)

2007-04-11 Thread keymaster
Came across the Cupcake CMS built on cakePHP. I read somewhere that it is conceptually based off Radiant CMS, which in turn is built off Ruby on Rails, so would be a natural adoption to cake. Here is the Radiant CMS homepage for those interested: http://radiantcms.org/ Cupcake CMS is hosted at

RE: Search function for application

2007-04-11 Thread Mariano Iglesias
If you have a UsersController and a User model created, then there's no need to declare $uses. The CamelCase of the singular version of the controller name will be automatically linked as the main model of your controller when not declaring $uses. -MI

Re: Search function for application

2007-04-11 Thread digital spaghetti
In your controller If (isset($this->data['User']['username'])) { $user = $this->User->findByUsername($this->data['User']['username']); } If its a search controller, rather than in the users controller you need to make sure you delare $uses at the top of the contoller $uses = array('User');

Re: problems upgrading cakephp

2007-04-11 Thread cherrio
I had the same problem. It is caused by a change in the way messages are shown, there is a new Session Helper that now handles it. So to fix your problem, open up your "default.thtml" in your /app/ views/layouts/default.thtml and edit the flash section and change it to the new default, if ($sess

Re: LabelTag is not displayed (invisible text in browser)

2007-04-11 Thread szeta
Okay, this was solved with the CSS from Cake 1.2. thanks. On 4 Apr., 15:30, "szeta" <[EMAIL PROTECTED]> wrote: > I am using the default CSS coming with CAKE. > Am I the only one with this problem? > > On 4 Apr., 14:37, "djiize" <[EMAIL PROTECTED]> wrote: > > > I think it's a CSS cause... > > > On

Search function for application

2007-04-11 Thread szeta
Hello, I am using CakePHP in a project and would like to integrate a 'search' function. I'm not talking about a full index for the site (like htdig), but mainly a search function for specific fields. e.g. search for a person by name etc.. I'm not sure what's the best way to do this. 1. Create

Re: Making REST Requests to a web-server like yahoo

2007-04-11 Thread nate
On Apr 11, 2:41 am, "digital spaghetti" <[EMAIL PROTECTED]> wrote: > That's cool, but you do realise your breaking Yahoo's TOS (and > probably google's too) by saving the geocode data to the db? Heh, interesting, I didn't know that. Of course, it's sort of like how the FBI said I can't copy VHS