Re: CakePHP 2.5 random hanging

2014-10-30 Thread scs
Plus the login time was just going to the login page not submitting any login details. On Thursday, October 30, 2014 1:24:16 PM UTC-4, scs wrote: > > I have an application running on cakePHP 2.5 in two different servers both > server from what I see are setup the same. > > On t

Re: CakePHP 2.5 random hanging

2014-10-30 Thread scs
Nope recurse -1 also never happens same for a single user everytime. On Thursday, October 30, 2014 1:24:16 PM UTC-4, scs wrote: > > I have an application running on cakePHP 2.5 in two different servers both > server from what I see are setup the same. > > On the first server we

CakePHP 2.5 random hanging

2014-10-30 Thread scs
I have an application running on cakePHP 2.5 in two different servers both server from what I see are setup the same. On the first server we are not having issues but on the second server a user would be using the application and a page would freeze. Other users can use the application with out

Re: Select Option

2014-09-04 Thread scs
You need to either create plural version of docenten in your $this->set or in your view in the use echo $this->Form->select('docenten', array( 'options'=>$docenten)); -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- You received this

Re: Using JQuery UI Datepicker for formatted date fields (dd/mm/yy)

2014-05-12 Thread scs
You can also do a afterfind to convert the date to your format and then a beforesave to convert the date back to mysql format. -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- You received this message because you are subscribed to the G

Re: Error: The requested address was not found on this server.

2012-08-14 Thread scs
Ok After re reading the top it sound like you said you copy only the View/User folder to the legacy and that is giving you problems. If this is the case, you need to also move the Controller and Model files for users to the legacy app. If both of these files are already there show us what you h

Re: Stupid question

2012-08-13 Thread scs
Your redirect is happening even if you are logged int. try this adjustment: public function login() { if($this->request->is('post')) { if($this->Auth->login()) { //User is authorized so see if they have an owner //record

Re: find with complex conditions ("AND" and "OR")

2012-08-02 Thread scs
array('Equipment.location_**id' > => -1 ), > ** array('Equipment.location_**id' > => -2) > ** ) > ) > )); > > According to an exa

Re: find with complex conditions ("AND" and "OR")

2012-08-01 Thread scs
'OR' => array( > 'Equipment.location_id' => null, > 'Equipment.location_id' => -1, > 'Equipment.location_id' => -2 > ) > ) >

find with complex conditions ("AND" and "OR")

2012-07-31 Thread scs
I'm trying to perform what has been called a complex condition in some of the documentation I have found. I want to use "AND" and "OR" in the conditions portion of my query via find('all', $params). I haven't been able to find anything that seems to match my issue (although I'm sure it's out th

Re: How do I / Do I use parameters to limit the number of returned records?

2012-07-27 Thread scs
to use conditions in paginate use something like this: public function index() { $this->Topic->recursive = 0; $conditions = array('type' => $this->request->data['Topic']['type']); $this->paginate(' Topic ', array($conditions)); } $this->request->data['Topic']['type'] is data c

Re: Archive old data from model's table

2012-07-26 Thread scs
Any reason not just use 2 models one for each? Than in your controller you can reuse the functions and just tell it which model you want use on the fly. function index($modelName) { $reports = $this->$modelName->find('all'); $this->set('report', $reports); } On Wednesday, July 25, 2012 1:04:32

Re: Error: The requested address was not found on this server.

2012-07-26 Thread scs
Ok I'm not sure what the difference in the links you posted are as both look like the same address. As for the " Error: UsersController could not be found. " this error is correct if you don't have the UsersController.php with an add function. Make sure you have the controller created. Exam

Re: Error: The requested address was not found on this server.

2012-07-25 Thread scs
Try a link like http://localhost/myApp/users/ The url should be pointint the controller version of the name (lower case and pearl) so if you want to go to your add function in your UsersController it would be http://localhost/myApp/users/add On Wednesday, July 25, 2012 9:46:26 AM UTC-4, Luís

Re: change default tags

2012-06-04 Thread scs
Thanks Stork. I'm not how I missed that but that is what I was looking for. On Jun 1, 6:04 pm, stork wrote: > In controller: > > public $helpers = array( >     'Html' => array('configFile' => 'tags') > ); > > Constructor of HtmlHelper will call > $this->loadConfig('tags'):http://book.cakephp.org

change default tags

2012-06-01 Thread scs
I'm in the process of update a few cake applications and have come to a problem I have not been able to fix. In the older version of cakePHP we have been able to change the default tags of links by adding 'link' => '%s' to a file in the config folder called tags.php. This is no longer working and I

Re: cakephp Paginator->sort()

2011-09-01 Thread scs
Change: Paginator->sort('country_id', 'Country.name');?> To: Paginator->sort('Country', 'Country.name');? > http://book.cakephp.org/view/1233/Pagination-in-Views On Sep 1, 5:06 am, mthabisi mlunjwa wrote: > In my view I have the following: > > Paginator->sort('country_id', 'Country.na

Re: Problem installing CAKE

2011-08-18 Thread scs
Looks like you have a model call Cake and it is looking for a table in your database called "cakes" all lower case. If you did not mean to have a database for this model in the app/ models/cake.php ad the following line: var $useTable = null; This tells the model it has no table to interact with.

Re: Best way to disable a specific validation rule

2011-06-30 Thread scs
I'm pretty sure that's how it is described in the cake cookbook to do it. On Jun 30, 9:56 am, chris wrote: > I have a certain validation rule that I don't want to apply in one > particular cirumstance. > The rule is based on allowing a user to create something, if they are > the 'owner' of an

Re: using sql LIKE in find()

2011-06-17 Thread scs
sorry forgot to add the vars $conditions = 'Practitioner.name LIKE "%'.$name.'%"'; $conditions .= ' OR Practitioner.surname LIKE "%'.$surname.'%"'; $record = $this->Practitioner->find('all', array('conditions

Re: using sql LIKE in find()

2011-06-17 Thread scs
Try this $conditions = 'Practitioner.name LIKE "%'..'%"'; $conditions .= ' OR Practitioner.surname LIKE "%'..'%"'; $record = $this->Practitioner->find('all', array('conditions'=> $conditions )); On Jun 17, 10:35 am, mthabisi mlunjwa wrote: > I'm not sure if I'm missing something here. I'm tryin

Re: image layout cant be seen after installation

2011-03-10 Thread scs
I would suggest to look and make sure your .htaccess files are copied over. If you have your server setup to not allow .htaccess files go in the core.php file and make the adjustment for that. On Mar 10, 8:24 am, rethab wrote: > Does look like mod_rewrite was not activated. Did you check the > a

Re: syntax error, unexpected T_VARIABLE, expecting T_FUNCTION

2010-09-16 Thread scs
Try this for your model array('rule' => 'notEmpty'), 'age' => array('rule' => 'notEmpty'), 'class_id' => array('rule' => 'notEmpty') ); } ?> On Sep 16, 11:01 am, "Mike Karthauser" wrote: > On Thu, September 16, 2010 7:43 am, Anoop Sankar wrote: > > I am n

Re: Get table missing error yet table exists - after porting from dev to production

2010-03-03 Thread scs
pts > > I've looked it up and apparently its to do with whitespace but this > doesnt happen on my local dev environment... could anyone explain what > this may mean and how I'm meant to get rid of it? > > ...and i thought i was doing so well with cake :P > > Kind

Re: Get table missing error yet table exists - after porting from dev to production

2010-03-03 Thread scs
I would check the following issue: Is the host setting correct in the database.php file for the new server? Is the login/password setting correct in the database.php file for the new server? If you are using a share cake core is the version same as dev server? Is tmp folder writable? Clear out all

Re: Help with foreach

2010-02-08 Thread scs
>From what I can see it not closing because your last one is not calling the second close div and close field set. To help make it flexible after the the foreach loop I would do a check on the value of $rowcount and if it is either a 1 or a 2 add a closing and a closing On Feb 8, 4:41 am, mike

Re: Can not connect Cake to a Mssql db

2010-02-08 Thread scs
just a few things i can think of that you need to watch for that might cause the issue but are over looked easily. 1) is the host address correctif on same machine do you have it as LOCALHOST 2) does the user "test" have permission set up in you database to access the database "mb_bd" 3) does t

Re: saveAll() producing Fatal Error

2010-01-15 Thread scs
Maybe I'm missing something but if you are using a model called "Datum" for a table in your database called "data"are you adding the line var $useTable = 'data'; in your model for it is looking at that table? On Jan 15, 9:30 am, MrDevin wrote: > You understand correctly. > > WOW! thanks for putt

Re: ACL Question

2010-01-15 Thread scs
Make sure you do not have var $components = array('Acl'); in you app_controller or any other controllers On Jan 14, 8:48 pm, "Dave" wrote: > I get this error as soon as i login > > Could not find AclComponent. Please include Acl in Controller::$components. > [CORE/cake/libs/controller/components/

Re: saveAll() producing Fatal Error

2010-01-14 Thread scs
ing my > controller in the morning. (posting from Germany) > But I think that this has more to do with the Model which is called > Datum but at this poin I am willing to try anything so i will give it > a shot. > > On Jan 14, 6:43 pm, scs wrote: > > > could calling your contro

Re: saveAll() producing Fatal Error

2010-01-14 Thread scs
could calling your control data be a conflict with cakephp? On Jan 14, 11:37 am, MrDevin wrote: > First of all thanks for your insight and taking the time to help. :D > > if $this->data['Datum'] is as follows: > [code] > Array > ( >     [0] => Array >         ( >             [id] => 173 >        

Re: Get number of found records of previously performed find query

2010-01-12 Thread scs
you could just use the php array count : On Jan 12, 7:21 am, Deine Mutter wrote: > Hey, > > does Cake give me a way to find out the number of records retrieved by > a find("all", array("limit" => 10));? It's basically what > SQL_CALC_FOUND_ROWS in combination with SELECT FOUND_ROWS does. Of > co

Re: Howto get all "Posts" and its associated Ccategory tree

2010-01-11 Thread scs
Sorry I meant can you post your compete models On Jan 11, 1:57 pm, scs wrote: > Can you complete models for both Post and Category. This will help me > and anyone else looking at this trhead understand the issue a little > more. I'm just starting to get use to help solve pr

Re: Howto get all "Posts" and its associated Ccategory tree

2010-01-11 Thread scs
Can you complete models for both Post and Category. This will help me and anyone else looking at this trhead understand the issue a little more. I'm just starting to get use to help solve problems in chat groups. On Jan 11, 1:52 pm, Deine Mutter wrote: > Addition: > And besides the internal categ

Re: Howto get all "Posts" and its associated Ccategory tree

2010-01-11 Thread scs
ssuming, without being 100% sure that this should be the appropriate > model configuration, i'm still clueless about the way the query should > have to look. In the cited article there is some nonstandard cakephp > stuff used, which makes me wonder if i should further follow its

Re: How do I target a specific Controller from the AppController?

2010-01-11 Thread scs
I think your looking for the controller name if so $this->params ['controller'] will get it for you. On Jan 10, 4:36 pm, andrewperk wrote: > Is there a way to target a specific controller from within the > AppController? > > For instance inside of controllers I can do this: > > if ($this->action

Re: Howto get all "Posts" and its associated Ccategory tree

2010-01-11 Thread scs
do you have a $hasMany in you Category model that shows the connection from it to Post? On Jan 11, 8:57 am, Deine Mutter wrote: > Hey folks, > > I'm desperately trying to get a hang of how to establish the > following: > 1) Let's assume I have the following models: Post, User, Category > 2) My ca

Re: Add Fields

2010-01-06 Thread scs
The way I would handle this is to add a new table (1->Many) this way you can allow the user to enter as many fields they want. example: CREATE TABLE profile_addons ( id int(10) unsigned NOT NULL auto_increment, profile_id int(11) unsigned NOT NULL, name varchar(75) default NULL, PRIMARY KEY

Re: Getting : Undefined index: error - Newbie Please help

2009-03-20 Thread scs
In your view try this: The reason this is happen is because your pulling data from your user table but only calling for one user and looking for multi projects for that user. If you want just the projects name and info and not all the other information do a se

Re: Submit several forms with a button

2009-02-26 Thread scs
I s there any reason you need this a seprate forms and not just use one form? On Feb 26, 1:35 pm, brian wrote: > You need to add a javascript onclick handler for the button that would > then submit each form asynchronously. There are a number of ways to do > this, including serialising the data

Re: Is there a way to not repeat two "findAll and models" in my site, instead put in just one file?

2009-02-25 Thread scs
There might be a better way to handle this, but the way I do this is put: var $uses = array('Linha','Grupo'); at the top of the app_controller, ex: wrote: > How can I put it in the app_controller? > > What code I have to use? > > On Feb 25, 9:06 am, Aivaras wrote: > > > Hello, > > > sure thing y

Re: Where is Cakephp 1.1.x API Documentation?

2009-02-24 Thread scs
Thanks this will help us a lot. On Feb 23, 5:11 pm, Gwoo wrote: > http://api.cakephp.org/1.1/ > (make sure you use a trailing slash) > > The 1.1 is back for the time being. It is still using the old doxygen > generated html, so it may not work perfectly, but hopefully your old > bookmarks will b

Re: Where is Cakephp 1.1.x API Documentation?

2009-02-23 Thread scs
Gwoo, Thanks just like keogh we have about 20 different projects that we can not change over to 1.2 and this news is a welcome sight to see that cakephp is not leaving its old version high and dry. On Feb 23, 3:42 pm, Gwoo wrote: > The API is generated from the source code. So, you have all of

autocomplete multiple rows

2008-11-25 Thread scs
Is there anyway to have autocomplete work with multiple rows in the same view. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubsc

Re: where is my main page??

2008-10-22 Thread scs
I would suggest going through the Blog Tutorial On Oct 22, 4:22 pm, teknoid <[EMAIL PROTECTED]> wrote: > Create the file... > > Also read up on Auth in the manual. > > On Oct 22, 4:13 pm, "soldier.coder" <[EMAIL PROTECTED]> > wrote: > > > when I browse to the root of my app, I get the out of the

Re: Effect.Fade and Effect.Appear

2008-10-17 Thread scs
Could you use a setTimeout() to get what you want? On Oct 17, 12:17 pm, "Arak Tai'Roth" <[EMAIL PROTECTED]> wrote: > Okay, so I've been going back and forth now for awhile. The guys in > the scriptaculous group are able to help but not in a fashion that is > overly helpful using CakePHP. So I'm

Re: Table Rename Join Error

2008-10-17 Thread scs
Cake handles the join table naming convention based off the tables used, rename your join table to customers_scheduler_services On Oct 17, 8:22 am, MDB <[EMAIL PROTECTED]> wrote: > Being new to cake (became the owner of 2 cakephp applications), I dont > think I am getting something simple.  First

Re: Object not found! error...

2008-10-16 Thread scs
if your using cake 1.1 like you said above than your view has the wrong extension. C:\xampp\htdocs\cake\app\views\users\register.ctp should be C:\xampp\htdocs\cake\app\views\users\register.thtml On Oct 16, 7:55 am, "Liebermann, Anja Carolin" <[EMAIL PROTECTED]> wrote: > It tells your model in whi

Re: Still working on CAKE install uner xampp

2008-09-10 Thread scs
When any site tells you to go to www.example.com www.example.net www.example.org or example.com and so on they are telling to go to what ever your domain is if the server is live on the net your to what ever your IP address is for the server if on a network or Localhost if its on the computer you

Re: Missing Database Table

2008-09-10 Thread scs
In the app/config/core.php do you have the debug set to 0 or 1 if it is set to zero set it to 1,2, or 3 as this will keep refreshing your cache. >From what I have learned in the short time I been learning Cake the cache doesn't refresh as much will in production mode (debug set to 0) to help speed

Re: Need help on Install

2008-09-09 Thread scs
First off read this: http://en.wikipedia.org/wiki/Example.com After that make sure you have your copy of cake in your www folder. Than (if the server is on your machine your working from) try looking at http://localhost/ On Sep 9, 1:23 pm, "Jerry Ross" <[EMAIL PROTECTED]> wrote: > Thanks...insta

Re: Edit forms in Internet Explorer

2008-09-09 Thread scs
I suggest posting the view and controller. The first thing I would look at is there any JavaScript that IE is having issue with. On Sep 9, 10:46 am, chicklin <[EMAIL PROTECTED]> wrote: > Hello, using cake_1.2.0.7296-rc2 under Apache/PHP5/Windows > > I'm having a problem where when I submit a form

Re: problem with Starting CAKE

2008-08-29 Thread scs
change the "www.example.com" with the ip of the server that you creating this cake progrm on On Aug 29, 3:58 pm, "Sabrina Akter" <[EMAIL PROTECTED]> wrote: > i was just reading the manual's for creating blog. > >    - "http://book.cakephp.org/view/308/installing-cakephp"; in this section's >    a

Re: blog list

2008-06-10 Thread scs
php/web/cakephp-official-resourceshttp://groups.google.com/group/cake-php/web/cakephp-unofficial-resourceshttp://groups.google.com/group/cake-php/web/cakephp-in-the-wild#blogs > > Regards, > - Dardo Sordi. > > On Mon, Jun 9, 2008 at 4:59 PM, scs <[EMAIL PROTECTED]> wrote: > > >

blog list

2008-06-09 Thread scs
I been looking all over the cakephp site since it first came up and searched Google for it but I have never found the "office blog list". I'm interested in seeing if there are other blogs (besides the few I found in my daily search for cake information) that I can use to look for the answers to my

Re: Calendar

2008-05-28 Thread scs
useing YUI I found a nice little pop that fills the field you add it to. i adjust the coding alittle bit so that the years is also changable: in the view i have: link('calendar'); ?> css('calendar'); ?> on the form input use: 'class' => 'calendarSelectDate' right below the tag add: and add a

Re: organizing controlleres into subdirectories

2008-04-09 Thread scs
> You no longer have to set the paths to models and controllers which > are in subfolders of app/models resp. app/controllers, cake > automatically finds them. Daniel, I was wondering if this is just a cakephp 1.2 only feature? --~--~-~--~~~---~--~~ You rece