Re: Clearing Cookies

2006-08-25 Thread RosSoft
the cookie of a session always is deleted. you must set a cookie by hand with setcookie --~--~-~--~~~---~--~~ 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

Re: Clearing Cookies

2006-08-25 Thread Simplerules
I do, but it is always cleared. I set it to last for ten years, but when I revisit the site after a session has expired - the cookies are cleared, its not a browser problem or setting since it happens to Opera and IE. --~--~-~--~~~---~--~~ You received this

FW : NEW 52 JOBS POSTED THIS WEEK ARE AS FOLLOWS:

2006-08-25 Thread HOT.Jobs_HOT.Resumes
Hi Dear Members, FOLLOWING R THE NEW JOBSPOSTED THIS WEEK (WEEKLY NEWS LETTER): Job Title Job Posted By Java Developer GD Consulting Wireless Application Developer in .Net GD Consulting call centre agents pecon

Re: Clearing Cookies

2006-08-25 Thread RosSoft
try my cookie component in this file there's the component and the required class simple encryption http://www.ros-soft.net/otros/cakephp_blog/blog_tutorial.tgz --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake

Re: High Cohesion Cakes

2006-08-25 Thread MJ Ray
Sonic Baker [EMAIL PROTECTED] wrote: [...] When this Model is a mapping of a relational database we end up with a lot of ModelA-ModelB-ModelC etc... To me this suggests high coupling between objects and I can't seem to stop myself ending up with such a design. So my question is, what's the

Re: $this-flash() Problem

2006-08-25 Thread AD7six
Your code is not visible any more. Are you sure that line of code is being executed ;), try putting die before the flash statement, if you still get your view rendered, the bit of code with the flash in it isn´t being called. HTH, AD7six --~--~-~--~~~---~--~~

First Cakephp site: www.penistone-advertiser.co.uk

2006-08-25 Thread [EMAIL PROTECTED]
Hi, i have recently launced my first site using the Cakephp framework. The site, called Penistone Advertiser, is a local web classified servce for Penistone in Yorkshire (UK) listing items for sale. The site is at : www.penistone-advertiser.co.uk If you have time to have a quick glance, i

How to use ajax-editor

2006-08-25 Thread sumanpaul
I am not able to understand it properly. Could anybody plz help. Thanks in advance :) cheers suman --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP group. To post to this group, send email to

Re: Ajax calls just aren't working

2006-08-25 Thread AD7six
Have you got prototype.js loaded? If you use mozilla, the firebug extension is quite useful for debugging ajax problems, you can configure it to tell you (amongst other things) js errors, to show remote requests and their responses. Incidentally, does the results for getSchoolOrganizations

Re: High Cohesion Cakes

2006-08-25 Thread AD7six
Hi Sonic Baker, caveatI am assuming this is regarding inter-model links rather than controller-model links./caveat ModelA-ModelB-ModelC doesn´t imply coupling to me, as your are just using the relationships to navigate to the relavent objects. The objects themselves are free to change or be

thtml rationale

2006-08-25 Thread Mathieu Gagnon
Hello bakers, I was wondering what's the rationale behind the thtml extension for views? Is this just a mock of rails rhtml and eRuby? Because really, i see no advantage in doing this, beside having to fix our editors settings to treat them as php files.

Re: High Cohesion Cakes

2006-08-25 Thread Sonic Baker
Hi guys, Thank you for responding to my mail. First of all, yes, I'm talking about inter-model links rather than controller-model links. I suppose it's the idea of the relationships that has me confused. I'm trying to design in such a way that each object is as independent as possible. I've been

Re: How to use caching of views in multilinguaal sites?

2006-08-25 Thread AD7six
mouth, I had some inspiration, it requires a slight hack. In cake/config/paths there is: define('CACHE', TMP.'cache'.DS); If instead you changed it to be $Language = .. get from session, if default return NULL; if ($Langauge) { define('CACHE', TMP.'cache'.DS.$Language.DS); } else {

Problems with FILE field OR Hacking html herlper :)

2006-08-25 Thread mutabor
Hello, I have the following code in my view for each Room (these are only two fields for example, but I have more.): ?=$html-selectTag($i.'][Room/tv')? ?=$html-file($i.'][Room/image1')? ?=$html-file($i.'][Room/image2')? where $i - is simple counter I need such mess to have following

Re: save data from ONE form to TWO models

2006-08-25 Thread andru
$this-Answer-User-save($this-params['data']); $userID = $this-Answers-User-lastInsertId(); on the second line (line 29 in your script), you've called the model Answers, not answer. Try: if($this-Answer-User-save($this-params['data'])){ $userID = $this-Answer-User-id; }

Re: How to use caching of views in multilinguaal sites?

2006-08-25 Thread mouth
Hi AD7six, thank You for Your idea, but ;-) - I don't think You can access session variables in cake/config/paths.php (or: without some problems, or: without cake's session security checks) - class CakeSession is not declared in time this file is parsed - CACHE constant is used not for

Ajax in Cake

2006-08-25 Thread carlosrg
Hi Anybody knows how to use ajax in cake??? Yes I'm a newbie and i have no idea how to do it. Would you be so kind as explain me how i can do it? Or where can i find a good tutorial? Thanks a lot!!! --~--~-~--~~~---~--~~ You received this message because you

Show sql debug

2006-08-25 Thread chambas
Hi, a need some help with the debug sql. In early versions of cake the debug 2(core.php), show all the sql involve in the transaction but, now it doesn't. So how can i do the same now? Thanks --~--~-~--~~~---~--~~ You received this message because you are

Re: $this-flash() Problem

2006-08-25 Thread Jason Lee
On 8/25/06, AD7six [EMAIL PROTECTED] wrote: Are you sure that line of code is being executed ;), try putting die before the flash statement, if you still get your view rendered, the bit of code with the flash in it isn´t being called. The odd thing is that I put something like die('hello'),

Re: $this-flash() Problem

2006-08-25 Thread AD7six
Have you created your own views/layout/flash.thtml? If so, what´s in it ;) Cheers, AD7six --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP group. To post to this group, send email to

Re: How to use caching of views in multilinguaal sites?

2006-08-25 Thread mouth
Hi AD7six, Sure you can, it´ll be in the variable $_SESSION. ...in case php is configured for session autostart. It would introduce a couple of additional complexities - but the duplication of your sql query cache is likely to be less of a problem than rendering a file in the wrong language

Re: $this-flash() Problem

2006-08-25 Thread Jason Lee
On 8/25/06, AD7six [EMAIL PROTECTED] wrote: Have you created your own views/layout/flash.thtml? I did, but, just for testing, I've removed it with no effect. The file, though, was basically the same as default.thtml, but with the requisite php changes to display the flash message and the link.

Re: How to use caching of views in multilinguaal sites?

2006-08-25 Thread mouth
To be exact: - I don't need (but I can live with) language in URL for actions which are rendered in browser (I can store them in session/cookie) - I need language in URL for webservices or for devices with no session-id save mechanism (no cookies, no trans-sid) - in this time I'm just filtering

baking cake from command prompt -- problems

2006-08-25 Thread bingo
Hi, I am trying to bake cake from command prompt and facing several problems. I am using XAMPP to setup my apache, php, and mysql. Here are some of the problems I am facing 1. is there any webpage that list all the possible CAKE commands and from where they should be initialized 2. I setup

Re: A basic layout question

2006-08-25 Thread KN
Thanks AD. I have gone through RequestHandler and I changed the code according to that. And it is working fine.. And I removed my ajax.thtml , it is not at all required. AD7six wrote: add the RequestHandler component to your app controller and amongst other things it will ensure that you get

Re: Ajax in Cake

2006-08-25 Thread Samuel DeVore
http://grahambird.co.uk/cake/tutorials/ajax.php On 8/25/06, carlosrg [EMAIL PROTECTED] wrote: Hi Anybody knows how to use ajax in cake??? Yes I'm a newbie and i have no idea how to do it. Would you be so kind as explain me how i can do it? Or where can i find a good tutorial? Thanks a

language code in url

2006-08-25 Thread Ámon Tamás
Hello! http://example.com/en/controller/index or http://example.com/de/controller/index etc. I like every url like this. I like the firs param (en|de) get to a variables and only others put to the dispatcher. How can I make this? -- Ámon Tamás http://amon.hu

Problems with AJAX under IE

2006-08-25 Thread Chris Hartjes
Hey guys, I've been using the built-in AJAX helpers and I've run into a problem. When they use my code that populates a hidden DIV with the stats reporting stuff, it shows up in Firefox but not in Safari or IE. Is there something different I should be doing in order to make it work? I use an

Re: Trouble with AjaxHelper $options['loaded']

2006-08-25 Thread josh southern
?php echo $ajax-link('New Supplier', '/suppliers/add', array('update'= array('options', 'details'), 'loaded'='adjustLayout();')); ? This is supposed to call a script that re-sizes the layout based on the longest column. It runs, but too early: the new DIV lengths aren't in the browser yet. The

FindAll vs Query in Component

2006-08-25 Thread c_doug
Can anyone tell me why when using a query instead of FindAll in a component I get and Undefined Index error? Although I get this error it does output an array in the debug info. I can't find any good info or examples. I am not sure if it is due to needing a different output in the view (element)

Re: Error in the Cake Blog tutorial.

2006-08-25 Thread mrbog
That is not my problem. I'm not overwriting another cake install. I'm not using the non-release version. This is a clean install of the most recent cake release. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake

Re: Re: Error in the Cake Blog tutorial.

2006-08-25 Thread Samuel DeVore
Alright a couple of questions... Are you one php5 or 4? If 4 make sure that you have $name set in models and controllers like var $name = 'Post'; // in your model files var $name = 'Posts'; // in controller files Did you double check all of your pluralizations refer to

Re: baking cake from command prompt -- problems

2006-08-25 Thread gwoo
Its possible that the CLI is not available in XAMPP. Double check. php bake.php -help should give you the list of available commands --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP group. To post to this

Re: FindAll vs Query in Component

2006-08-25 Thread Pablo Viojo
Yes, I think it's that table relationships are not used when you use a query method. Try printing the return of the method ( print_r($result_object);)Regards, PabloOn 8/25/06, c_doug [EMAIL PROTECTED] wrote: Can anyone tell me why when using a query instead of FindAll in acomponent I get and

Re: FindAll vs Query in Component

2006-08-25 Thread Chris Hartjes
Pablo is right. I remember this biting me in the ass on a work project until someone showed me that I could pass the conditions I wanted into findAll after all. On 8/25/06, Pablo Viojo [EMAIL PROTECTED] wrote: Yes, I think it's that table relationships are not used when you use a query

Re: FindAll vs Query in Component

2006-08-25 Thread c_doug
I wonder what the solution to make up for the table reference is. I could try findAll again (although it doesn't seem to like my mySQL date function). It would be nice to learn how to make the output work with a query as well. Chris, do you think it is specific to use in a component or from

Re: baking cake from command prompt -- problems

2006-08-25 Thread bingo
Hi gwoo, I am not sure what is CLI. But on doing google search found that on windows php.exe is essentially the CLI. xampp does have php.exe. I also checked there forum and found a post related to php.ini that also talk about cli. http://www.apachefriends.org/en/faq-xampp-windows.html And

Re: Pop Up Window

2006-08-25 Thread Norberto
Than you. I'm solve the problem. ;-) --~--~-~--~~~---~--~~ 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: baking cake from command prompt -- problems

2006-08-25 Thread bingo
Okie, I found solution for all of my problems. For others, I am documenting the solutions below 1. is there any webpage that list all the possible CAKE commands and from where they should be initialized php bake.php -help will tell all the possible commands. Another place to look at is

Re: Show sql debug

2006-08-25 Thread ShepherdWeb
@chambas - It still works for me and I have the latest version. --~--~-~--~~~---~--~~ 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

Re: FindAll vs Query in Component

2006-08-25 Thread Chris Hartjes
As far as I can tell, if you use query() then you lose the ability to reference the actual relationships you've created, so you get indexes of [0] instead of ['Foo']. It just means you have to actually know the results array is going to look like, that's all. I think as a rule you should strive

Re: AJAX - Form Validation

2006-08-25 Thread Rafafa
try this: var $helpers = array('Ajax'); --~--~-~--~~~---~--~~ 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: FindAll vs Query in Component

2006-08-25 Thread nate
If you want to emulate the results of a findAll( ) call using query( ), set DEBUG to 2 in app/config/core.php, and use the SQL output as the basis for your custom query. Keep in mind, however, that there is next to nothing that findAll can't cover, so chances are, whatever query you're doing

Re: tagErrorMsg not working since upgrade

2006-08-25 Thread ShepherdWeb
Mikee and mrtufty - Thanks for your comments. tagErrorMsg is not have a deprecated indication in the API at the moment. Also, I'm not finding an errorTag in the htmlhelper API. Am I looking in the wrong place? Are you sure it exists? --~--~-~--~~~---~--~~

using functions in elements

2006-08-25 Thread cyberlogi
I have a recursive function that i'd like to use to optimize printing data from a multidimensional array. If i put the function in my view or element, then cake tells me that the function doesn't exist. Where should i put this function? --~--~-~--~~~---~--~~ You

Re: using functions in elements

2006-08-25 Thread Samuel DeVore
sounds like a job for a helper http://manual.cakephp.org/chapter/helpers (look at the bottom for info about creating your own) On 8/25/06, cyberlogi [EMAIL PROTECTED] wrote: I have a recursive function that i'd like to use to optimize printing data from a multidimensional array. If i put the

Re: FindAll vs Query in Component

2006-08-25 Thread c_doug
nate, do you know how to use a date function in the findAll parameters? 'DISTINCT `Post`.`created`', I am using mySQL and using all variations of month(`Post`.`created`). Maybe there is a built in function for use in Cake.?. --~--~-~--~~~---~--~~ You received

UML Design to Cake PHP

2006-08-25 Thread simonvlc
Hello, I´m new to this community, so hi all! I´m a third degree student and I´m familiar to the UML design model (Class diagrams, Use Cases, Activity Diagrams...). Now I want to test the Cake Php framework for a new project but I´m not sure how UML translate to Cake Php, probably because I´m

Install question, hosted domain Siteground, Ipowerweb

2006-08-25 Thread rairdonm
Hello, First, thank you for taking the time to look at this topic. I am brand new to cakePHP and just need somebody to check my work before I complete all the tutorials and then go production the wrong way. I have a siteground/ipowerweb domains www.domain.com. Customers are unwilling to get a