Thanks 100rk, you pretty much answered all I needed to know.
Just realized that the Cookie overhead per request is just not
worth it. Best use Sessions and scale them across multiple servers
appropriately when the need arises.
Your suggested solutions to getting it to use Cookies instead of
hi,
When I giving bake command in ubuntu i am getting the following error
PHP Deprecated: Comments starting with '#' are deprecated in /etc/
php5/cli/conf.d/mcrypt.ini on line 1 in Unknown on line 0
Welcome to CakePHP v1.2.4.8284 Console
I'm trying to get a cakePHP site up and running in a new host
environment. Everything is working except I get this mysterious error
when entering the CMS portion of the site, it is also caused upon
using the search feature. I did a small hack I found on the web to
show more details on the error
I'm trying to read some of the variable I put in the configuration file
Core.php.
So I can have like class Variables that takes their values from the core
Variable.
EG
class QuestionsController extends AppController {
var $visite_status = Configure::read('visite_status');
}
But this
You cannot functions while declaring propertiesso create constructor
and there set value from method/function...
Dne sreda, 18. januar 2012 je pošiljatelj Abraham Boray
abrahambo...@gmail.com napisal:
I'm trying to read some of the variable I put in the configuration file
Core.php.
So I can
I'm trying to link a few models together, but I'm having difficulty in linking
the second level of model in.
For example, say I have a Band which has many Members, many Gigs and many
Records. This can be easily represented in the Band model as:
var $hasMany = array('Members', 'Gigs',
You set those associations up in their respective models. So, for example, in
your Record model, Record hasOne Image. You can then do a find from the Band
model that will bring in Records and Images. I'd recommend looking up the
Containable behaviour as that will make finds really easy.
Jeremy
Thanks Jeremy I'll look into that.
I wasn't sure if how the other models had relationships setup if they were
taken into consideration or if it was just the one you were using.
You set those associations up in their respective models. So, for example, in
your Record model, Record hasOne
Okay, Thank YOU :)..It's workin'!
--
Our newest site for the community: CakePHP Video Tutorials
http://tv.cakephp.org
Check out the new CakePHP Questions site http://ask.cakephp.org and help others
with their CakePHP related questions.
To unsubscribe from this group, send email to
On Jan 17, 7:54 pm, quentin quentin.bra...@gmail.com wrote:
Hi AD7six
Thanks for your answer.
Yes I've realized my mistake.
Off course it's a sql error and I was wrong when I though that this could
come from the treeBehavior because as you said : The tree behavior does
not mix max() with
Please any one can tell me how i can detect that java script of
browser is on or not in cake cake php?
Thanks
--
Our newest site for the community: CakePHP Video Tutorials
http://tv.cakephp.org
Check out the new CakePHP Questions site http://ask.cakephp.org and help others
with their CakePHP
I tried changing the variable name to $new as $news... I'll try your
method, but...
The error comes as Undefined index on $this-Paginate-numbers ... i
do get the data. Limit works, and ordering.
On Jan 17, 9:02 pm, Tilen Majerle tilen.maje...@gmail.com wrote:
check your view file
?php foreach
Hey guys,
i'm trying to workout in an app code here but i'm getting the message:
URL should be set in array format (i.e., array('controller' =
'controller', 'action' = 'action') for other than /. Fix your
helper usage.
Everything seems to be ok and I don't know what to do anymore. The URL
is
i want to know how to count when someone click to download some file..
important notice.. i don't store my files in database..i store it into
webroot/files
and i use meioupload to upload files
CREATE TABLE IF NOT EXISTS `downloads` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`filename`
I thought that shorttags could be ini_set.
Perhaps in bootstrap.php
- S
On 17 Jan 2012 11:45, LipeDjow liped...@gmail.com wrote:
Hi AD7six,
I have the same problem, using CakePHP and TinyMCE Plugin.
I saw here (
i want to know how to count when someone click to download some
file..please i need one example with answer ..cause i mam newbie
important notice
.. i don't store my files in database..i store it into webroot/files
and i use meioupload to upload files
i see this tut but i don't understand how to
You have a comment in the conf file mentioned, that uses # which is
depreciated.
You have an old version of cake installed, via apt get. You should remove
it and install either 1.3 or 2.0
- S
On 18 Jan 2012 09:06, adarsh snehajan adarshsneha...@gmail.com wrote:
hi,
When I giving bake command
a pretty similar question has just been asked a day before you posted
this on ask.cakephp.org @ stackoverflow:
http://stackoverflow.com/questions/8877842/how-to-count-the-number-of-user-downloads/
with probably the answer you are looking for
On 18 Jan., 15:37, ahmed fakher spcial...@gmail.com
https://www.google.com/search?q=javascript+version+check
On Wed, Jan 18, 2012 at 6:52 AM, vaibhav pathak
promatics.vaib...@gmail.com wrote:
Please any one can tell me how i can detect that java script of
browser is on or not in cake cake php?
Thanks
--
Our newest site for the community:
Just noticed how foolish Im, the problem is:
create( $model = NULL, $options = array ( ) )
first field should be model and i used create('Post') on Art model of
course it won't work !
I thought the first field is form method without consulting the API
page.
Thanks for your help and the DebugKit
Hi Thad
I will answer to your question without knowing the error you receive, so it
might not be the solution to your problem.
The link you provided in your mail, shows that you don't use the correct
name for your controller. You should name your controller with the plural
of the world you use.
You can't detect if JS is enabled via PHP.
On Jan 18, 7:28 am, bujanga buja...@gmail.com wrote:
https://www.google.com/search?q=javascript+version+check
On Wed, Jan 18, 2012 at 6:52 AM, vaibhav pathak
promatics.vaib...@gmail.com wrote:
Please any one can tell me how i can detect that
Check this out, this will solve your problem:
https://github.com/cakephp/CakeFest-2010-Workshop/blob/master/models/event.php#L88
--
Our newest site for the community: CakePHP Video Tutorials
http://tv.cakephp.org
Check out the new CakePHP Questions site http://ask.cakephp.org and help others
probably an extra line in your CSV file
--
Our newest site for the community: CakePHP Video Tutorials
http://tv.cakephp.org
Check out the new CakePHP Questions site http://ask.cakephp.org and help others
with their CakePHP related questions.
To unsubscribe from this group, send email to
2.0, no doubt!
--
Our newest site for the community: CakePHP Video Tutorials
http://tv.cakephp.org
Check out the new CakePHP Questions site http://ask.cakephp.org and help others
with their CakePHP related questions.
To unsubscribe from this group, send email to
Controller {
Action {
...
$this-response-header('Location', 'http://domain/custom.php?url='.
$url);
$this-response-send();
// Problem is response redirecting before run below codes. /
...
if ($this-Book-save($this-request-data)) {
$this-Session-setFlash(__('The book has
I am trying to sort my results by Result.racenum and Result.class
however I've been away from php for a while and I was never very good
to begin with.
I have a function:
function sundown($season,$race,$sex,$class,$team)
{
if ($season ==null){$conditions = array('Result.location' =
I resolved this myself:
function sundown($season,$race,$sex,$class,$team)
{
if ($season ==null){$conditions = array('Result.location' =
'Sundown');}
else if ($race ==null) {$conditions = array('Result.location' =
'Sundown','Result.season'=$season);}
else if ($sex ==null)
This is what I originally thought but I tested it with a csv file that
I first opened in notepad to make sure there wasn't the extra line in
there. It still generates the extra record.
Any ideas?
Thanks
On Jan 19, 12:35 pm, José Lorenzo jose@gmail.com wrote:
probably an extra line in your
Maybe don't send the response until you're ready... Check out the api
here: http://api20.cakephp.org/class/cake-response
Calling send() actually sends the header, whereas header() just keeps them
buffered until you're ready to send the response.
--
Our newest site for the community: CakePHP
30 matches
Mail list logo