Diwakar Upadhyay wants to chat

2011-11-16 Thread Diwakar Upadhyay
I've been using Google Talk and thought you might like to try it out. We can use it to call each other for free over the internet. Here's an invitation to download Google Talk. Give it a try! --- Diwakar Upadhyay wants to stay in

Re: cakephp: $this->redirect is not passing $student_info parameter from one controller to another controller action

2011-11-16 Thread Jeremy Burns | Class Outfit
I could be wrong, but I don't think you can pass an array through a redirect url like that; try serialising it first and then unserialise it at the other end, or write it in the session and read it back at the other end. Jeremy Burns Class Outfit http://www.classoutfit.com On 17 Nov 2011, at 0

cakephp: $this->redirect is not passing $student_info parameter from one controller to another controller action

2011-11-16 Thread varai
i'm getting the following errors: Notice 8: Undefined variable: student_info [APP\controllers \motor_developments_controller.php, line 7] i'm getting the same notice in \motor_developments\search.ctp as well. The student_info data in $this->redirect is not getting passed from merry_parents_contr

Re: HELP! model associations lost after import

2011-11-16 Thread Jeremy Burns | Class Outfit
Not sure what the issue is, but in general I'd recommend that you set recursive to -1 in your app_model and then use the Containable behaviour; it gives you total control and my well solve your issue (as well as bring other improvements). Jeremy Burns Class Outfit http://www.classoutfit.com O

Re: cakphp 2.0.3 - whats this for an error message?

2011-11-16 Thread Miles J
Cake 2.0 doesn't show error pages, if I remember correctly, it throws exceptions now. Someone correct me if I am wrong :P On Nov 16, 6:02 pm, Davor Ilic wrote: > thats wrong the debuger shows wrong message to me: > > *Fatal error*: Call to a member function flash() on a non-object in * > /srv/ww

Re: Troubleshooting the CakeDC TinyMCE helper plugin.

2011-11-16 Thread Ryan Snowden
To check: php short tags are off On 17 November 2011 10:18, Graham Weldon wrote: > Hi, > > Can you confirm the plugin directory name you have? It should be "TinyMCE" > in the "Plugin" directory. > > Cheers, > Graham Weldon > http://grahamweldon.com > e. gra...@grahamweldon.com > p. (+61) 0407 0

Re: Troubleshooting the CakeDC TinyMCE helper plugin.

2011-11-16 Thread Graham Weldon
Hi, Can you confirm the plugin directory name you have? It should be "TinyMCE" in the "Plugin" directory. Cheers, Graham Weldon http://grahamweldon.com e. gra...@grahamweldon.com p. (+61) 0407 017 293 Skype: grahamweldon On Thursday, 17 November 2011 at 1:16 AM, vaughany wrote: > Hi Graham,

cakphp 2.0.3 - whats this for an error message?

2011-11-16 Thread Davor Ilic
thats wrong the debuger shows wrong message to me: *Fatal error*: Call to a member function flash() on a non-object in * /srv/www/htdocs/web843/html/schaetzmal/lib/Cake/View/Layouts/default.ctp* on line *44* * * it should show me that i don´t have any controller or view but it shows me this one.

Re: Can´t call my js from webroot/js or my themed folder

2011-11-16 Thread Davor Ilic
sry my fail i didn´t see from customer the name right so bullshit this errors xD i´n happy now sry guys 2011/11/17 Davor Ilic > Have anybody the same problems > > in my themed folder /app/View/Themed/Elements i have this line: > > http://bin.cakephp.org/view/208230907 > -- Our newest site for

Can´t call my js from webroot/js or my themed folder

2011-11-16 Thread Davor Ilic
Have anybody the same problems in my themed folder /app/View/Themed/Elements i have this line: http://bin.cakephp.org/view/208230907 -- 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 oth

HELP! model associations lost after import

2011-11-16 Thread billy
Due to a client's desire to have URLs that defy Cake logic, i have decided to use the pages controller to organize my app. most the site's functionality occurs from one page through ajax so i thought i'd use pages as the home base and access other controllers and models. so i decided to import the

Re: Cake 2.0 Auth Component login method

2011-11-16 Thread huoxito
So it seems I got a stupid question. Sorry folks sometimes I just cant see the sutff Im looking for. Just read the new Auth doc carefully. I realized that theres authenticate and authorize configs but I did not realize why it is ok to authenticate when a user submitts a blank login form or what

CakePHP Developer at Pollenizer (Sydney, Australia)

2011-11-16 Thread Robert Love
Dear Bakers I'm the Head of Engineering at Pollenizer in Sydney, Australia and I'm looking for three people just like you. Check out the details for the role and apply online on the Pollenizer website here: http://www.pollenizer.com/about/jobs/php-developer/ Cheers, Robert -- Our newest site f

Re: Theming 2.0.3: $this->Html->css('style.css')

2011-11-16 Thread Davor Ilic
in 2.0 cakphp this changes are forgot to say that which version i use 2011/11/16 Davor Ilic > Ok i worked now some tests out because in ckaphp they had some changes in > "upper-case letters" and i have when you see it in my AppController.php > defined $this->theme ='sm' also my folder is named i

Re: Theming 2.0.3: $this->Html->css('style.css')

2011-11-16 Thread Davor Ilic
Ok i worked now some tests out because in ckaphp they had some changes in "upper-case letters" and i have when you see it in my AppController.php defined $this->theme ='sm' also my folder is named in "lower case" what cakephp don´t understand if i name it in upper-case letters it understand it: $t

Re: Theming 2.0.3: $this->Html->css('style.css')

2011-11-16 Thread Davor Ilic
ok but it won´t work for some reasons i do that like it is in the book but it´s not working. it´s also the same for cakephp 2.0 http://book.cakephp.org/2.0/en/views/themes.html don´t know what i do wrong i do not see my issue... 2011/11/16 Davor Ilic > sry i forgot i do that in my appcontrolle

Re: Theming 2.0.3: $this->Html->css('style.css')

2011-11-16 Thread Davor Ilic
sry i forgot i do that in my appcontroller like this http://bin.cakephp.org/view/1796659651 2011/11/16 Mike Karthauser > > On 16 Nov 2011, at 20:34, Davor Ilic wrote: > > i use $this->Html->css('style.css') in my Themed folder. The structure > look like this: > > app/View/Themed/sm >/Layouts

Re: Theming 2.0.3: $this->Html->css('style.css')

2011-11-16 Thread Mike Karthauser
On 16 Nov 2011, at 20:34, Davor Ilic wrote: > i use $this->Html->css('style.css') in my Themed folder. The structure look > like this: > > app/View/Themed/sm >/Layouts >/Elements >/webroot > > in elements i´ve split up into header.ctp, body.ctp,footer.ctp , etc. > > In the header.

Theming 2.0.3: $this->Html->css('style.css')

2011-11-16 Thread Davor Ilic
Hi , i use $this->Html->css('style.css') in my Themed folder. The structure look like this: app/View/Themed/sm /Layouts /Elements /webroot in elements i´ve split up into header.ctp, body.ctp,footer.ctp , etc. In the header.ctp i use the $this->Html->css('style.css') to call my styleshe

Joining tables after belongsTo Associations

2011-11-16 Thread gabrielr
Hi everybody. I have the next question: It is possible to create a join association table in theModel::find('all',$options ) and this Join perform after the belogsTo Assoc of the model. Actually if you do some like: $options['joins'] = array( array('table' => 'channels', 'alias' => 'Ch

Re: CakePHP 2.0.3 out of the oven

2011-11-16 Thread dype
I've found the solution, there is a missing dependancy : To solve the problem : sudo pear install --force phpunit/PHPUnit_MockObject On 14 nov, 20:56, dype wrote: > Many thanks for this new release ! > But I've still have the with screen with phpunit 3.6 (pear > installation). > It works fine wi

Re: IE hangs when loading a page

2011-11-16 Thread Yves S. Garret
Ok, I was doing some more debugging and this is what I've uncovered, the problem seems to be in the view. http://bin.cakephp.org/view/1582319117 < my code I commented out lines 14 to 22 and the page loads. I click on the links and the desired results are displayed. Wat? Is there a reason

Re: Naming Conventions - habtm multiple underscores join table

2011-11-16 Thread TonyCharlotteCakePHP
Yeah - I thought I remembered reading that somewhere but couldn't find the page again to confirm. Bookmarked. Thanks. On Nov 16, 12:27 pm, Will <000w.s.s@gmail.com> wrote: > I think Jeremy is incorrect.  If you're doing a HABTM, both table > names should be plural, so in your example it would

Re: Cake 2.0 Auth Component login method

2011-11-16 Thread AD7six
On Wednesday, 16 November 2011 19:29:54 UTC+1, huoxito wrote: > > Hi > > Thats why I asked the question. Because I read the warning on the doc. Did you, you know, read the rest of it? AD -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new C

Re: Cake 2.0 Auth Component login method

2011-11-16 Thread huoxito
Hi Thats why I asked the question. Because I read the warning on the doc. "Warning -> In 2.0 $this->Auth->login($this->request->data) will log the user in with whatever data is posted" -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakeP

Multiple Checkbox Bug in CakePHP 2.0.3?

2011-11-16 Thread Will
Hi all, I am using a form with multiple checkboxes to save a HABTM association between two models. Upon updating my core CakePHP code, the save stopped working properly. It appeared to wipe out the linking table when I saved. Is anyone else having this problem? -- Our newest site for the comm

Re: Naming Conventions - habtm multiple underscores join table

2011-11-16 Thread Jeremy Burns | Class Outfit
I stand corrected - you are right. Shamed face. Jeremy Burns Class Outfit http://www.classoutfit.com On 16 Nov 2011, at 17:27, Will wrote: > I think Jeremy is incorrect. If you're doing a HABTM, both table > names should be plural, so in your example it would be > s__s (see > http:

Re: Installation of CakeDC's Migrations plugin for CakePHP 2.0

2011-11-16 Thread Sam Sherlock
if you have it installed in Plugin/Migrations ./Console/cake Migrations.migration if a plugin migration is not showing check that the casing of the plugins directories is camelcased - S On 16 November 2011 15:16, elitalon wrote: > Hi, > > Can anybody provide some guidance through installa

Re: Naming Conventions - habtm multiple underscores join table

2011-11-16 Thread Will
I think Jeremy is incorrect. If you're doing a HABTM, both table names should be plural, so in your example it would be s__s (see http://book.cakephp.org/2.0/en/getting-started/cakephp-conventions.html?highlight=habtm#model-and-database-conventions) On Nov 16, 5:32 am, Jeremy Burns |

Installation of CakeDC's Migrations plugin for CakePHP 2.0

2011-11-16 Thread elitalon
Hi, Can anybody provide some guidance through installation of Migrations plugin in CakePHP 2.0? I have downloaded it in plugins directory following the instructions for 1.3 but no success at all. Thank you! -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Ch

Welcome page of a fresh CakePHP 2.0 installation shows FileEngine as cache engine despite APC is available

2011-11-16 Thread elitalon
Hi, I have configured and enabled APC in my computer, but the welcome page of a fresh CakePHP installation still shows this message: "The FileEngine is being used for caching. To change the config edit APP/Config/core.php" I have put a phpinfo() call inside core.php and it confirms that APC is a

Re: Model create and beforeSave (1.3)

2011-11-16 Thread Jeremy Burns | Class Outfit
I found the error. I am using the Media plugin. Commenting out this line in $actsAs: 'Media.Coupler' => array( 'baseDirectory' => MEDIA_TRANSFER ), ...restores full functionality. Can't explain why just now. Jeremy Burns Class Outfit http://www.classoutfit.com On 16 Nov 2011, at 12:4

Re: Order of method execution when deleting records

2011-11-16 Thread AD7six
On Wednesday, 16 November 2011 15:55:22 UTC+1, RhythmicDevil wrote: > > thanks for the tips man, I appreciate it. > > I will never have to do cascades or anything like that. I am simply > creating a JSON string to be sent to our API. I know - I mean pass the right arguments so you go directly

Re: Help! Validation does not work, strange thing!

2011-11-16 Thread Jeremy Burns | Class Outfit
I might be missing something, but what is the function _validationRules? Where is it being called from? A normal model set up uses var $validate = array(); and that just works. Are you sure your validation is triggering? Are you sure that your user is really passing validation rules or is just

Help! Validation does not work, strange thing!

2011-11-16 Thread heohni
Hi, I have a working contact form on my project and I am about just to use another form within another controller. So I copied all from my contact model into my newsletter model: validate = array( 'news_company' => array( 'rule' => 'notEmpty', 'message'

Re: Order of method execution when deleting records

2011-11-16 Thread RhythmicDevil
thanks for the tips man, I appreciate it. I will never have to do cascades or anything like that. I am simply creating a JSON string to be sent to our API. The API will take care all the Database stuff. In reality the model and datasource are pass throughs that do some formatting for the API. O

Re: Order of method execution when deleting records

2011-11-16 Thread AD7six
On Wednesday, 16 November 2011 15:24:14 UTC+1, RhythmicDevil wrote: > > I am writing a custom datasource. I was implementing the delete action > in the datasource and ran into a problem. I expected that when I call > Model::delete($id, false); it would execute the Datasource::delete() > method

Re: Order of method execution when deleting records

2011-11-16 Thread RhythmicDevil
I am using this doc as a reference: http://book.cakephp.org/2.0/en/models/datasources.html It says that I must do the following which I did so I am confused by the results. Methods that must be implemented describe($model) listSources() At least one of: create($model, $fields = array(), $va

Re: Order of method execution when deleting records

2011-11-16 Thread RhythmicDevil
For reference here is my Datasource file. Http = $Http; } public function describe($model) { return $this->description; } public function listSources() { } /** * * @param AppModel $model * @param array $queryData */ public functio

Order of method execution when deleting records

2011-11-16 Thread RhythmicDevil
I am writing a custom datasource. I was implementing the delete action in the datasource and ran into a problem. I expected that when I call Model::delete($id, false); it would execute the Datasource::delete() method. But that does not happen. First a method called calculate() is executed and then

Re: Troubleshooting the CakeDC TinyMCE helper plugin.

2011-11-16 Thread vaughany
Hi Graham, thanks for the reply. Glad the report was of some use, thought I was rambling slightly by the end! Am learning Cake at the moment, and coming across errors I am not sure if it's my programming (likely!) or a bug (possible, less likely). I've got a completely fresh setup again, same d

Re: cakephp 2.0 auth session problem

2011-11-16 Thread euromark
I also experienced quite an amount of unexpected logouts in 2.0 now. To make sure it is not the garbage collector of the file system I switched to "database". There no garbage collector should interfere as long as expires is not reached (which is several days). But the systems logs the user out aft

Model create and beforeSave (1.3)

2011-11-16 Thread Jeremy Burns
I'm experiencing something that is new to me and unexpected. I have a function (User->register) in my User model. I am calling it from a controller as $this->User->register($user). $user has a 'User' key in it, plus some others. When I call $this->create($user); and then inpect $this->data I see

Re: Naming Conventions - habtm multiple underscores join table

2011-11-16 Thread Jeremy Burns | Class Outfit
You don't need a model, so that's easy. The convention is table_a_table_bs (where table_a and table_b are used alphabetically and the last table is pluralised). So in your example it's be __s Jeremy Burns Class Outfit Tel: +44 (0) 208 123 3822 Mob: +44 (0) 7973 481949 Skype: jeremy_

cakephp 2.0 auth session problem

2011-11-16 Thread joh...@baldemia.com
I've recently migrated an application from 1.3 to 2.0, and i'm encountering a problem with user authentification. The app uses a basic auth + acl setup, that worked fine in 1.3. First problem i encountered when deploying the app on my production server (CentOS6, php 5.3.6. mysql 5.1.12) was that

Naming Conventions - habtm multiple underscores join table

2011-11-16 Thread TonyCharlotteCakePHP
I have a have two tables that need a join table but one of the tables that I'm trying to join has an underscore. What I'm wondering is what the models' file name, models' join database table name, and models' class name should be. For example: Table one = table two = _ join table = ?

Re: Troubleshooting the CakeDC TinyMCE helper plugin.

2011-11-16 Thread Graham Weldon
Wow, that was a most excellent bug report and description of the error. Good work dude! Thanks for pointing this out. The issue was with name convention mismatching in the plugin and documentation. I've fixed the problem, and you can now checkout the latest 2.0 branch from github. Please re-ch

Trying to use JavaScript and PHP with CakePHP

2011-11-16 Thread barricades
Hey there, I'm a beginner with only a little php and not much JS. I'm trying to use this image upload script (http://atwebresults.com/ php_ajax_image_upload/) in the context of a cakephp app and struggling (I believe) because I can't figure out how to call things properly. The script uses an onch

Re: paginated comments not showing up in view

2011-11-16 Thread phpMagpie
Glad you got it working ... whenever you're scratching your head over the format of data passed back from CakePHP simply echo debug($array); and have a look. Once you've learned the way Cake works you know exactly what it;s going to do every time and your development time speeds up drasticall