Re: Cakephp Sample application

2010-05-28 Thread Gopinath T.M
john please send your mailid for chat. so that i can explain my problem more closy.. On Sat, May 29, 2010 at 12:23 PM, Gopinath T.M wrote: > can anyone come with me on chat. > > > On Sat, May 29, 2010 at 12:08 PM, John Andersen > wrote: > >> Please clarify what your issue is! >>

Re: Cakephp Sample application

2010-05-28 Thread Gopinath T.M
can anyone come with me on chat. On Sat, May 29, 2010 at 12:08 PM, John Andersen wrote: > Please clarify what your issue is! > 1) Have you installed CakePHP? > 2) Is it in a working condition? > 3) Have you made the Blog sample application? > 4) What went wrong? > > We need to know what you h

Gopinath T.M has invited you to open a Google mail account

2010-05-28 Thread Gopinath T.M
I've been using Gmail and thought you might like to try it out. Here's an invitation to create an account. --- Gopinath T.M has invited you to open a free Gmail account. To accept this invitation and register for your account, v

Gopinath T.M wants to chat

2010-05-28 Thread Gopinath T.M
--- Gopinath T.M wants to stay in better touch using some of Google's coolest new products. If you already have Gmail or Google Talk, visit: http://mail.google.com/mail/b-2c472695a8-7e86e297fe-eY85zD22BKiEnxcI5LL3HMd2l-c You'll n

Re: Cakephp Sample application

2010-05-28 Thread John Andersen
Please clarify what your issue is! 1) Have you installed CakePHP? 2) Is it in a working condition? 3) Have you made the Blog sample application? 4) What went wrong? We need to know what you have done and what went wrong (errors, code snippets, other) in order to be able to help you :) Enjoy, Jo

Re: Cakephp Sample application

2010-05-28 Thread Gopinath T.M
Actually i gone through already.But, i couldn't able to create one sample application canyou please help in any other way. On Sat, May 29, 2010 at 1:06 AM, John Andersen wrote: > It all starts here: > http://book.cakephp.org/view/876/The-Manual > > Enjoy, >John > > On May 28, 3:08 pm, "Go

Re: HABTM Question.

2010-05-28 Thread Roland Pish
Thanks Jeremy! In the link you supplied, after reading the portion "...(group -> groups in this case, or ExtraFunkyModel -> extraFunkyModels).." now it all makes sense. Regards. On 28 mayo, 23:13, Jeremy Burns wrote: > It isn't just restricted to HABTM, it's a standard thing. But here's a page

Re: HABTM Question.

2010-05-28 Thread Jeremy Burns
It isn't just restricted to HABTM, it's a standard thing. But here's a page that refers specifically to HABTM: http://book.cakephp.org/view/1390/Automagic-Form-Elements Jeremy Burns jeremybu...@me.com On 29 May 2010, at 06:10, Roland Pish wrote: > It worked!! > Finally!! > > There was someth

Re: HABTM Question.

2010-05-28 Thread Roland Pish
It worked!! Finally!! There was something weird in the database. I submitted the form and magically the select was populated and funny tags were selected. I really appreciate your help Jeremy. One last question, where is in cake manual the convention you advised to fix this (the use of $funnyTag

Re: HABTM Question.

2010-05-28 Thread Roland Pish
Thanks, We are getting closer!! After using $funnyTags now the select is populated correctly but the funny tags aren't selected according to what is on the database. I tried this: echo $form->input('FunnyTag'); but the funny tags aren't still selected. On 28 mayo, 22:51, Jeremy Burns wrote: > A

Re: HABTM Question.

2010-05-28 Thread Jeremy Burns
Ah. Try this: $funnyTags = $this->Post->FunnyTag->find('list',array('fields'=>array('id','name'))); If that doesn't fix it, try this as well: echo $form->input('FunnyTag'); Jeremy Burns jeremybu...@me.com On 29 May 2010, at 05:46, Roland Pish wrote: > I think I'll post the code and informa

Re: HABTM Question.

2010-05-28 Thread Roland Pish
I think I'll post the code and information here. I still don't know what is happening. Any help is hugely appreciated. The tables: funny_tags: id,name funny_tags_posts: id,funny_tag_id,post_id posts: id,name,body The files: + Under models: post.php and funny_tag.php + Under controllers: posts_co

Re: HABTM Question.

2010-05-28 Thread Roland Pish
Thanks Jeremy. In fact I did that and didn't solve the problem. I'm still trying but with no success yet. Regards. On 28 mayo, 21:24, Jeremy Burns wrote: > I am *guessing* that your variable that contains your funny_tags is not being > set correctly. It is set here: > > $tags = $this->Post->Ta

Re: HABTM Question.

2010-05-28 Thread Jeremy Burns
I am *guessing* that your variable that contains your funny_tags is not being set correctly. It is set here: $tags = $this->Post->Tag->find('list',array('fields'=>array('id','name'))); ...so change that to: $funny_tags = $this->Post->FunnyTag->find('list',array('fields'=>array('id','name')));

HABTM Question.

2010-05-28 Thread Roland Pish
Hi! I've been struggling for a long time with something and I don't seem to get it. I did the Posts/Tags HABTM Select example from this page: http://mrphp.com.au/code/working-habtm-form-data-cakephp So far so good, everything works ok. I wanted to try the same example but asumming that the table

Re: cake beginners

2010-05-28 Thread Jeremy Burns
I'd love to help, but I am not clear what your problem is. If you are following the blog example, here's what should happen: You click the submit button on the add view It runs the code in your add function in your controller If the save within the add function works, you are directed to the index

Re: Using one model from another

2010-05-28 Thread Jeremy Burns
If the models are truly independent, then you can do this: $this->loadModel('YourModelName'); Then, just use the new model as you would any other model: $result = $this->YourModelName->function($variable); If they are not independent and are actually related, then by setting up the associations

Re: Cake 1.3 problem setting admin layout in app_controller.php

2010-05-28 Thread cricket
I'm not sure if this is the best way but it worked for me. In AppController::beforeFilter() if (isset($this->params['prefix']) && $this->params['prefix'] == 'admin' && $this->params['admin'] == 1) { $this->layout = 'admin_default'; } On May 9, 9:23 am, fabio <3bi...@gmail.com> wrote: > H

Re: Cake 1.3 problem setting admin layout in app_controller.php

2010-05-28 Thread bradmaxs
Did you ever get this to work? It is working for me in 1.3. I have in my routes: Router::connect('/admin', array('controller' => 'pages', 'action' => 'index', 'admin' => true)); Then I grabbed the pages_controller.php from cake/libs/controller and put it in my app/controllers I added: functio

CakePHP Gigya Social Network Plugin

2010-05-28 Thread nurvzy
Over the course of the last few weeks/months, I've been developing a complete social network plugin for CakePHP. The plugin takes advantage of Gigya, a free social network service that gives a developer a single API to interface with multiple social networks, including Facebook, Twitter, Linkedin,

Re: inflections

2010-05-28 Thread euromark
http://book.cakephp.org/view/1561/Migrating-from-CakePHP-1-2-to-1-3 On 28 Mai, 12:54, luca capra wrote: > Hi all, > > Using 1.2 I was used to place a inflections.php file in app/config/ to > specify some rules for plural/singular db tables nouns. > In 1.3 seems that the console, when baking, doe

Re: Cakephp Sample application

2010-05-28 Thread John Andersen
It all starts here: http://book.cakephp.org/view/876/The-Manual Enjoy, John On May 28, 3:08 pm, "Gopinath T.M" wrote: > Dear friends, > >    Can anyone give me guide for Creating sample application and > Explaination of View,Model and controller Check out the new CakePHP Questions site http:

Re: Auto relationship

2010-05-28 Thread Celso
This is the best way?: class Categoria extends AppModel{ var $hasMany= array('SubCategoria'); } class SubCategoria extends AppModel{ var $useTable = "categorias"; var $belongsTo = array('Categoria'); } Have a way to make this in a unique "class.php"? Att. Celso

Re: unable to use fusioncharts in view

2010-05-28 Thread cricket
On May 28, 7:54 am, nick wrote: > Hi guys, > > I want to use fusioncharts in my cakephp application but the swf file > to display the chart does not seem to be loading. In the same folder > as my view, I have a directory called charts with all the swf files. There's your problem. The views dir is

Cakephp Sample application

2010-05-28 Thread Gopinath T.M
Dear friends, Can anyone give me guide for Creating sample application and Explaination of View,Model and controller Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. You received this message because you are subscribed to the Go

Re: How write where condition in cakephp

2010-05-28 Thread vikasphplernter
$conditions = array("OR"=>array("id"=>"5","name"=>"abc")); $this->Post->find('all', array('conditions' => $conditions)); might be it would be help u something if the condition goes more then put it on the another array I mean to say that using multiple array with the AND condition operator. On M

Re: baking 1.3.0 problems?

2010-05-28 Thread BJ
For the more dense... which folder to where :-S On May 26, 9:12 am, Ben Mosher wrote: > Fixed. Move 'templates' folder up into 'libs'. Or copy. Worked for me. > > On May 25, 3:53 pm, CrotchFrog wrote: > > > > > @invisibleman: > > > Did you ever resolve this problem? I'm having the same issue. >

cake beginners

2010-05-28 Thread vikasphplernter
hello All, I am very new in cake php and I had read the all doc and the tutorial of it.As well as i implemented the one insert the blog form. But the problem once I click the submit button it has the process but its not come on the same page either once i give want to redirect on the another page i

unable to use fusioncharts in view

2010-05-28 Thread nick
Hi guys, I want to use fusioncharts in my cakephp application but the swf file to display the chart does not seem to be loading. In the same folder as my view, I have a directory called charts with all the swf files. Here is the code to load the file for the chart data. echo renderChart("

Re: 1.3 Wildcard routing

2010-05-28 Thread vikasphplernter
hai I am very new in cake php and I read the tutorial and doc of its but not get properly so would u like to give some idea on cake php briefly. with good example and preferring me the good sites also. I know that for linking we use the Router class but once 2 or more function need to be call then

inflections

2010-05-28 Thread luca capra
Hi all, Using 1.2 I was used to place a inflections.php file in app/config/ to specify some rules for plural/singular db tables nouns. In 1.3 seems that the console, when baking, doesn't read my rules and use the standard cake inflection rules. Where am I wrong? Thanks. Luca Check out the

Using one model from another

2010-05-28 Thread Ruslan Inozemtsev
Hello, I have to independent models and i need to update Model1 on beforeSave in Model2, what is the right way to include one model into another, something similar to var $usees = array() in controller ? Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePH

ACL users permission settings

2010-05-28 Thread ET3
I am developing a system where I need to set permission for users to access different groups. I need to build an interface in admin panel so that admin can set this access permission for users. Can any one give me some idea and some source code for this? Check out the new CakePHP Questions site ht

Re: model::updateAll not triggering model::beforeSave

2010-05-28 Thread mark_story
Model::updateAll is not intended to fire callbacks, as it could update an arbitrary number of records. If you need callbacks to be fired you'll have to use other methods. -Mark On May 28, 4:17 am, Ernesto wrote: > Hello. > > i noticed that model::updateAll isn't triggering model::beforeSave > >

Re: 1.3 Wildcard routing

2010-05-28 Thread AD7six
Regarding an example, I circumvent routing all together for that. It's not deemed the most appropriate by some but it works: http://github.com/AD7six/mi_development/blob/master/vendors/shells/templates/skel/app_error.php#L98 However what you could do is have a variable with the name of the top lev

Re: 1.3 prefix routing.

2010-05-28 Thread Jon Bennett
> In your controller, the current prefix is stored in $this- >>params['prefix']. It's also available through Router::currentRoute()- >>defaults['prefix']. Cheers - not sure that's relevant though :p J > > On May 27, 6:45 pm, aleph1 wrote: >> I can't see how to retrieve the current prefix that i

Re: case sensitivity on certain hosting

2010-05-28 Thread leo
27-5-10: "we do know that the word "users" is not reserved in any way by the operating system or Apache so the issue must be caused somehow in the code." 28-5-10: "We have removed the users/ redirect of the control panel. On 28 May, 15:39, leo wrote: > > I bet this is related:http://www.absolute-

Re: 1.3 prefix routing.

2010-05-28 Thread Andy Dirnberger
In your controller, the current prefix is stored in $this- >params['prefix']. It's also available through Router::currentRoute()- >defaults['prefix']. On May 27, 6:45 pm, aleph1 wrote: > I can't see how to retrieve the current prefix that is being used for > routing purposes. > > For example, if

Re: 1.3 Wildcard routing

2010-05-28 Thread Jon Bennett
>> The above route is equivalent to the default route - i.e. it's the >> same as not having it defined (incidentally what are your admin_* >> functions doing defined like that?¿? - you're disabling the automatic >> admin/prefix protection by doing that.) I have been doing that since Nate suggested

Re: 1.3 Wildcard routing

2010-05-28 Thread Jon Bennett
On 28 May 2010 15:18, AD7six wrote: > > > On May 28, 12:44 pm, Jon Bennett wrote: >> hi, >> >> In 1.3, how hard is it to route a controller action to >> /slug/child-slug/grandchild-slug and keep other, automatic routing in >> place? Do you still need to explicitly route all other controllers and

Re: case sensitivity on certain hosting

2010-05-28 Thread leo
> I bet this is related:http://www.absolute-escapes.com/user > > ...sounds like that really means they're sitting on their elbows. Well spotted. They must have very long arms. The error log, incidentally, was /var/log/httpd/error_log Thanks for your help. Check out the new CakePHP Questions sit

Re: case sensitivity on certain hosting

2010-05-28 Thread leo
Thanks, Andy. You're quite right. Given that the .htaccess looks like below, it seems it's not even getting that far. I'll harass the hosting support team again. Action php5-script /interpreters/php5-script AddHandler php5-script .php RewriteEngine on RewriteCond %{REQUEST_URI} !^/awstats/

Re: case sensitivity on certain hosting

2010-05-28 Thread AD7six
On May 28, 4:13 pm, AD7six wrote: > On May 28, 3:49 pm, leo wrote: > > > I have examined the logs of two websites on the same hosting and there > > is nothing relating to users. The only site references are benign: > > exclog: site37: domain absolute-escapes.com I bet this is related: http://w

Re: 1.3 Wildcard routing

2010-05-28 Thread AD7six
On May 28, 12:44 pm, Jon Bennett wrote: > hi, > > In 1.3, how hard is it to route a controller action to > /slug/child-slug/grandchild-slug and keep other, automatic routing in > place? Do you still need to explicitly route all other controllers and > their actions? > > I've done: > > Router::co

Re: case sensitivity on certain hosting

2010-05-28 Thread AD7six
On May 28, 3:49 pm, leo wrote: > I have examined the logs of two websites on the same hosting and there > is nothing relating to users. The only site references are benign: > exclog: site37: domain absolute-escapes.com What log are you looking at. > > I'm about to roll up my sleeves and dive i

Re: case sensitivity on certain hosting

2010-05-28 Thread leo
I have examined the logs of two websites on the same hosting and there is nothing relating to users. The only site references are benign: exclog: site37: domain absolute-escapes.com I'm about to roll up my sleeves and dive into the auth component. Check out the new CakePHP Questions site http://c

Re: Join table question

2010-05-28 Thread Roland Pish
Thanks Jeremy. I'm just designing my database and the name of controllers and models (this is my first project in Cake) but liked to know if that convention is ok. Regards. On 26 mayo, 21:35, Jeremy Burns wrote: > This ought to be fine - are you having > problems?http://book.cakephp.org/view/104

Re: Cakephp session is not setting in pages controller

2010-05-28 Thread John Andersen
I assume you copy/pasted the code into the post, so I have to tell you that you have an error in your echo statement! One left bracket too much! Please clarify whether that was a typo and if removed, fixed your issue! In stead of using echo in your controller, turn on debugging in the config/core.

Re: case sensitivity on certain hosting

2010-05-28 Thread leo
@AD7six: I don't have access to the error logs at the moment - I'll try after lunch. WRT the 'doesn't work' comment, I have given pretty much all the information available to me. It's one of those frustrating problems that doesn't leave many clues. I just tossed the question in in case anybody el

Re: Cakephp session is not setting in pages controller

2010-05-28 Thread Binu
Session->read(('user_id'); } } ?> On May 27, 7:22 pm, John Andersen wrote: > How does your pages controller look like, the code? > Enjoy, >    John > > On May 27, 10:11 am, Binu wrote: > > > Hi, > > > I am using cakephp1.2 . I have override the pages controller. While > > login from my ap

Re: case sensitivity on certain hosting

2010-05-28 Thread leo
if you want to see it in action, try these links: http://www.absolute-escapes.com/users/login http://www.absolute-escapes.com/Users/login The first fails, the second works. Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. You rec

Re: case sensitivity on certain hosting

2010-05-28 Thread AD7six
On May 28, 2:26 pm, leo wrote: > > Spoken like a true windows (case-insensitive OS) user. > > Not...I only use Linux & OS X. It's spoken like someone sick of the > turn-it-off-and-turn-it-back-on level of technical input. PS ~broken don't know how you expected better feedback when you give a "

Re: case sensitivity on certain hosting

2010-05-28 Thread AD7six
On May 28, 2:26 pm, leo wrote: > > Spoken like a true windows (case-insensitive OS) user. > > Not...I only use Linux & OS X. It's spoken like someone sick of the > turn-it-off-and-turn-it-back-on level of technical input. Apologies then. > > I have now discovered that this problem is also occu

Re: case sensitivity on certain hosting

2010-05-28 Thread leo
> Spoken like a true windows (case-insensitive OS) user. Not...I only use Linux & OS X. It's spoken like someone sick of the turn-it-off-and-turn-it-back-on level of technical input. I have now discovered that this problem is also occurring on a CakePHP website not authored by me, but on the same

Re: case sensitivity on certain hosting

2010-05-28 Thread AD7six
On May 28, 10:07 am, leo wrote: > @Andy: Sorry, I thought I'd included that information. It's a clean > server and 'users' is not a reserved word. According to the hosting > support team, the word 'users' has no special meaning. > > @Dr. Loboto: That's one of the dumbest, most facile answers I'v

Re: case sensitivity on certain hosting

2010-05-28 Thread euromark
@leo: RE: "That's one of the dumbest, most facile answers I've seen in this group." ACTUALLY ITS NOT! its just the truth :) right, dr. loboto? cheers mark On 28 Mai, 10:07, leo wrote: > @Andy: Sorry, I thought I'd included that information. It's a clean > server and 'users' is not a reserved w

1.3 Wildcard routing

2010-05-28 Thread Jon Bennett
hi, In 1.3, how hard is it to route a controller action to /slug/child-slug/grandchild-slug and keep other, automatic routing in place? Do you still need to explicitly route all other controllers and their actions? I've done: Router::connect('/articles/:action', array('controller'=>'arti

Re: Prefix routing problem

2010-05-28 Thread Bogdan Bursuc
Do you use the Auth component ? On Fri, May 28, 2010 at 9:07 AM, cronet wrote: > hm... > > i solved my problem with the following route configuration: > > Router::connect('/aktivieren/*', array('controller' => 'users', > 'action' => 'activate', 'admin'=>null)); > > > > I don't know why cake beh

model::updateAll not triggering model::beforeSave

2010-05-28 Thread Ernesto
Hello. i noticed that model::updateAll isn't triggering model::beforeSave is this a bug or an intended behavior? alternatives? (right now i switched to model::save) Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. You received th

Re: case sensitivity on certain hosting

2010-05-28 Thread leo
@Andy: Sorry, I thought I'd included that information. It's a clean server and 'users' is not a reserved word. According to the hosting support team, the word 'users' has no special meaning. @Dr. Loboto: That's one of the dumbest, most facile answers I've seen in this group. On 27 May, 17:47, And

Re: case sensitivity on certain hosting

2010-05-28 Thread leo
@Andy: Sorry, I thought I'd included that information. It's a clean server and 'users' is not a reserved word. According to the hosting support team, the word 'users' has no special meaning. @Dr. Loboto: That's one of the dumbest, most facile answers I've seen in this group. On 27 May, 17:47, And