Re: Implement ajax with select box

2012-03-27 Thread romel javier gomez herrera
see this componet http://phpyalgomas.blogspot.com/2012/03/selects-dependientes-para-cakephp.html El 28 de marzo de 2012 00:08, Ryan Snowden escribió: > Try not think as Cake handling the AJAX... technically it is just > javascript... so in this regards, you are checking for a change event on >

Re: cakePHP Data into Google Charts

2012-03-27 Thread elogic
For example, the first column would use something as follows to get the names out: $staffmembers = $this->User->find('all', array( 'fields' => array('User.id', 'User.first_name', 'User.last_name'), 'conditions' => array('User.group_id' => 3),

cakePHP Data into Google Charts

2012-03-27 Thread elogic
I need to build some reports for a cakePHP system I have been building and google charts seems to be the easiest way to get some charts happening. How do I go about getting the cakePHP data into the chart records? I have only just started by using the sample code on google charts info pages. e.

Re: Implement ajax with select box

2012-03-27 Thread Ryan Snowden
Try not think as Cake handling the AJAX... technically it is just javascript... so in this regards, you are checking for a change event on the select list, and it's going to get the value and POST it to a function in a controller which is going to return a value, or render a view with the value in

Implement ajax with select box

2012-03-27 Thread alexkd
Although a lot of discussions can be found in this group . A beginner not able to understand how to implement ajax in project. And also cake php.org says Ajaxhelper is deprecated. I dont understand which is the new usage I am using 1.3 cakephp my problem is how to replace my calc div with calculat

Re: Problem with TinyMCE

2012-03-27 Thread pablo
Hello, I had the same problem as you. Edit the file .htaccess and add this: php_value short_open_tag 0 El domingo 15 de enero de 2012 06:38:24 UTC+1, ali786 escribió: > > hi > i have a problem with TinyMCE and its not working in my page > i see "Parse error" in firebug ( Parse error : synta

Re: multi-level Model associations behavior

2012-03-27 Thread Loren Cole
you could replace $test = $this->Test->read(null, $id); $test['Question'] = $this->Test->Question->find('all'); //I added this line... with $test = $this->Test->find('first', array( 'conditions'=>array('id'=>$id), 'recursive'=2 )); the conditions array indicates which test records to get

Re: Layout

2012-03-27 Thread Loren Cole
put the listview above your container in html and In your css: #LeftlistView { float: left; width: 15%; clear: both; } #container { width: 85%; float: right; margin: 0 auto; } On Tue, Mar 27, 2012 at 11:53 AM, alexkd wrote: > According to the above code > How can I s

Re: Error database conection baking a model

2012-03-27 Thread Daniel Perez
Please any solution, 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 related questions. To unsubscribe from this group, send email to cake-php+unsubsc

Re: Is it possible to implement a "no answer" null value on a boolean field?

2012-03-27 Thread Miles J
You shouldn't be using booleans as keys, just use strings. $options = array('1' => 'yes', '0' => 'no'); echo $this->Form->input('music', array('options' => $options, 'empty' => 'no answer')); On Tuesday, March 27, 2012 2:16:28 PM UTC-7, Daniel wrote: > > Is it possible to implement a "no answ

Is it possible to implement a "no answer" null value on a boolean field?

2012-03-27 Thread Daniel
Is it possible to implement a "no answer" null value on a boolean field? For example this is what I have in the view but it does not work: $options = array(true => 'yes', false => 'no', null => 'no answer'); echo $this->Form->input('music', array('options' => $options, 'empty' => null)); Answerin

multi-level Model associations behavior

2012-03-27 Thread Augey Mikus
I am building an eLearning site in CakePHP that has models: Course, Test, Question, Answer, and others. Here are my associations: Course hasMany Test Test belongsTo Course Question belongsTo Test Question hasMany Answer Answer belongsTo Question This model association works fine in most circums

Re: Database configuration problem

2012-03-27 Thread Dave D
Does this still error if you remove " wrote: > class DATABASE_CONFIG { > >         public $default = array( >     'datasource' => 'Database/Mysql', >     'persistent' => false, >     'host' => 'localhost', >     'port' => '', >     'login' => 'root', >     'password' => '', >     'database' => 'ca

Re: RssHelper in 2.1.1

2012-03-27 Thread 100rk
Write failing test case, please. Mr. Jenkins is not a liar. http://ci.cakephp.org/ -- 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 uns

Question about Model::updateAll

2012-03-27 Thread Salines
Hi friends, I have a question about Model :: updateAll Planning to make a photo gallery that will be created or edited in several steps. The user creates a photo album, giving the name and description. After saving, redirect the page for adding photos The second page uses the multiple upload s

Re: Layout

2012-03-27 Thread alexkd
According to the above code How can I show a patient list in left side? -- 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 fro

Re: regarding url rewriting

2012-03-27 Thread 100rk
s/heard/hear -- 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 cake-php+unsubscr...@googlegrou

Re: regarding url rewriting

2012-03-27 Thread 100rk
You wouldn't heard me. Instead, learn how to read http://book.cakephp.org/2.0/en/development/routing.html -- 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 rela

regarding url rewriting

2012-03-27 Thread vaibhav pathak
plz tell me how can i do url rewriting in cake php.. -- 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

Re: Would PHP 5.3 stop cake cron job working?

2012-03-27 Thread LunarDraco
Without a bit more detail, I would guess that the new PHP 5.3 does not have mail setup by default and from a hosting service this usually requires a request before they will enable it. You can check that if you have ssh access to the server console by inspecting the php.ini Look for the setting for

Re: Database configuration problem

2012-03-27 Thread AKinwunmi Damilare
class DATABASE_CONFIG { 'Database/Mysql', 'persistent' => false, 'host' => 'localhost', 'port' => '', 'login' => 'root', 'password' => '', 'database' => 'cake_db', 'schema' => '', 'prefix' => '', 'encoding' => '' ); Parse error: parse error, expectin

Re: Database configuration problem

2012-03-27 Thread Brian Bowler
That usually means that you didn't close out one of your brackets or something. Can you post the code (sensitive details omitted)? On Tue, Mar 27, 2012 at 9:27 AM, AKinwunmi Damilare wrote: > Yes it helped. Thanks. But its giving an error saying expecting > T_function in one of the lines. Pls, h

Re: Database configuration problem

2012-03-27 Thread Thomas
Hi, could you please be a bit more specific - such as posting the full error message!? Nobody can help you if you keep all the important details by yourself... Am Dienstag, 27. März 2012 15:27:48 UTC+2 schrieb AKinwunmi Damilare: > > Yes it helped. Thanks. But its giving an error saying expecti

Re: Database configuration problem

2012-03-27 Thread AKinwunmi Damilare
Yes it helped. Thanks. But its giving an error saying expecting T_function in one of the lines. Pls, help. Thanks On Mar 27, 12:57 pm, vaughany wrote: > This may be of some use: > > http://book.cakephp.org/2.0/en/tutorials-and-examples/blog/blog.html#... > > > > > > > > On Tuesday, 27 March 2012

Re: Database configuration problem

2012-03-27 Thread vaughany
This may be of some use: http://book.cakephp.org/2.0/en/tutorials-and-examples/blog/blog.html#cake-database-configuration On Tuesday, 27 March 2012 12:11:03 UTC+1, AKinwunmi Damilare wrote: > > Please, i need help in the cakephp database configuration. Thanks -- Our newest site for the communi

Re: Configuracion CakePhp

2012-03-27 Thread 100rk
Welcome! Please, don't ask questions, answered here http://book.cakephp.org/2.0/en/ -- 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 uns

Database configuration problem

2012-03-27 Thread AKinwunmi Damilare
Please, i need help in the cakephp database configuration. 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 related questions. To unsubscribe from this

Re: Problem with loading xml data

2012-03-27 Thread heohni
Can I push this up? I still need your help, guys! Am Montag, 26. März 2012 09:34:44 UTC+2 schrieb heohni: > > Hi, > > within a helper class I would like to call this xml > > App::uses('Xml', 'Utility'); > App::uses('AppHelper', 'View/Helper'); > > class SuggestHelper extends AppHelper { > > functi

Re: Undefined controller: Controller!

2012-03-27 Thread luca capra
Hi, the issue has been fixed! (thank you Mark Story) https://github.com/cakephp/cakephp/commit/fca8b1dd3054c2155e17ddc1f91a47d23bc881af Il 21/03/2012 13:45, Fabrizio Ruggeri ha scritto: I used the same workaround. I extended AuthComponent and in the overwrite of startup, if is ajax, I redirect

Cakephp 2.1 ACL Issue

2012-03-27 Thread sneha
Hi, I am using the ACL component of cakephp 2.1, I am facing issue with acl permissions check. I have integrated the ACL and created the groups / users. But the page level check is not working for the same. Please guide me on the same. -- Our newest site for the community: CakePHP Video Tutoria

nusoap: Couldn't open socket connection to server

2012-03-27 Thread Jorge Trujillo Valerio
Hi, I'm using NuSoap Library on my cakephp projects (v1.1.19 & v1.3.10) for implementing webservices. My server project, with Soap Server services, is implemented on a cakephp v1.3.10 My client project, with Soap Client services, is implemented on a cakephp v1.1.19 When consuming the services

Configuracion CakePhp

2012-03-27 Thread Alexia Ramirez
Hello, Im new in the php environment, and I want to start to use cakephp, somebody can help me to configure it please. 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

cache helper isnt aware of routes?

2012-03-27 Thread K3
I have implemented view caching on my app and it works fine it caches view method from posts controller (posts/view) However, after i added Router::connect('/', array('controller' => 'posts', 'action' => 'view',1)); it wont cache the main page. Seems it checks only url as a string and is

Re: Layout

2012-03-27 Thread alexkd
I hvae created default .ctp and one css. Its showing content and headermenu. What I want is a left side list view of patients.While the contents are changing with the selection of menu. This is my default.ctp docType('xhtml-trans'); ?> css('styles'); ?> Html->link(__('Visits', t

Re: Layout

2012-03-27 Thread Thomas
Hi Alex, the basic layout of the pages is defined in /app/view/layouts/default.ctp This is also where the "cakephp power" logo and other static parts of the applications pages are placed. regards Thomas Am Dienstag, 27. März 2012 08:22:06 UTC+2 schrieb alexkd: > > Hai, > I am beginner in cake

Re: Save should not be saving but...

2012-03-27 Thread AD7six
On Tuesday, 27 March 2012 03:35:58 UTC+2, rockbust wrote: > > > I still cant figure it out??? Your code has quite a few odd bits in it. 1) Why do $track_array = explode("/",$this->params['url']['url']) Instead of function open_track( $meaningful, $names) { Routes are there to be us

Re: 回复: Still struggling with login/logout in my test app

2012-03-27 Thread Thomas
Am Montag, 26. März 2012 10:18:58 UTC+2 schrieb LiJunLe: > > debug what's in $_SESSION array? Is $_SESSION['Auth'] still there? > The funny thing is - the debugger does not kick in - as if the whole page was served from the browser cache instead of being requested. I'm using Apache and currentl

Re: paginator with user defined page sizes...

2012-03-27 Thread Thomas
Am Montag, 26. März 2012 17:01:49 UTC+2 schrieb 100rk: > > Form using GET method, dropdown named 'limit' or 'show' with onchange = '* > this.form*.submit();' - see pagination settings 'paramType' and > 'maxLimit'. > > > http://book.cakephp.org/2.0/en/core-libraries/components/pagination.html#pag