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
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
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
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
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
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
--~--~-~--~~~---~--~~
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
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
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
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
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.
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
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 {
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
$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;
}
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
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
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
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'),
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
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
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.
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
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
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
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
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
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
?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
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)
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
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
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
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
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
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
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
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
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
@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
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
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
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
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?
--~--~-~--~~~---~--~~
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
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
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
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
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
49 matches
Mail list logo