View this page "CakePHP In The Wild"
New site added at CakePHP in The Wild which is http://www.armenianspot.com Click on http://groups.google.com/group/cake-php/web/cakephp-in-the-wild - or copy & paste it into your browser's address bar if that doesn't work. --~--~-~--~~~---~--~~ 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 unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Has any body integrated Yahoo Browser Based Authentication with CakePHP?
I just wanted to discuss about the ways we can integrate Yahoo Browser Based Authentciation. Is it the right solution to write the whole code required by yahoo in the AppController beforeFilter() Function? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Does anybody used Yahoo Browser Based Authentication With Cake?
I just wanted to discuss about the ways we can integrate Yahoo Browser Based Authentciation. Is it the right solution to write the whole code required by yahoo in the AppController beforeFilter() Function? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Re: uploading *.mp3 files 1.2
Thank you all for your help... and how silly I am... yes it was maximum file size issue... Thanks again Raffi Hovhannesian On Jul 13, 8:44 pm, "Tane Piper" <[EMAIL PROTECTED]> wrote: > Have you checked your php.ini file? You need to make sure that the > Max file size for uploads is high enough for your files. The default > is 2mb, so your mp3s are probably bigger than this. There is actually > no error checking for this, so it may create a db entry even if the > file does not upload due to being to big. > > On 7/13/07,aerosmith<[EMAIL PROTECTED]> wrote: > > > > > > > I've tried this ... bet take a look at the mime types that I added. > > > 'audio/mp3' , 'audio/mpeg', 'audio/x-mpeg', 'audio/mp3', 'audio/x- > > mp3', 'audio/mpeg3', 'audio/x-mpeg3', 'audio/mpg', 'audio/x-mpg', > > 'audio/x-mpegaudio' > > > and in the extension I added > > '.mp3' > > > Is there something wrong with the mime types? > > > On Jul 13, 7:06 pm, "Pablo Viojo" <[EMAIL PROTECTED]> wrote: > > > Try setting allowed_mime and allowed_ext options > > > > -- > > > Pablo Viojo > > > [EMAIL PROTECTED]://pviojo.net > > > > On 7/13/07,aerosmith<[EMAIL PROTECTED]> wrote: > > > > > I'm working on a project that enables users to upload articles with > > > > photos and mp3 files. I used the upload behavior to upload the images > > > > and create thumbnails ... it worked fine. but it seems that this > > > > behavior supports only jpg, gif, and png files. > > > > > can someone help me please. > > -- > Tane Piperhttp://digitalspaghetti.tooum.net > > This email is: [ ] blogable [ x ] ask first [ ] private --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Re: uploading *.mp3 files 1.2
I've tried this ... bet take a look at the mime types that I added. 'audio/mp3' , 'audio/mpeg', 'audio/x-mpeg', 'audio/mp3', 'audio/x- mp3', 'audio/mpeg3', 'audio/x-mpeg3', 'audio/mpg', 'audio/x-mpg', 'audio/x-mpegaudio' and in the extension I added '.mp3' Is there something wrong with the mime types? On Jul 13, 7:06 pm, "Pablo Viojo" <[EMAIL PROTECTED]> wrote: > Try setting allowed_mime and allowed_ext options > > -- > Pablo Viojo > [EMAIL PROTECTED]://pviojo.net > > On 7/13/07, aerosmith <[EMAIL PROTECTED]> wrote: > > > > > I'm working on a project that enables users to upload articles with > > photos and mp3 files. I used the upload behavior to upload the images > > and create thumbnails ... it worked fine. but it seems that this > > behavior supports only jpg, gif, and png files. > > > can someone help me please. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
uploading *.mp3 files 1.2
I'm working on a project that enables users to upload articles with photos and mp3 files. I used the upload behavior to upload the images and create thumbnails ... it worked fine. but it seems that this behavior supports only jpg, gif, and png files. can someone help me please. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Re: Problem in upgrading to cakephp 1.2
Thanks for your quick reply, when I set the debug to 0 a blank page appears. when the debug is set to 1 the following happens. mydomain.com (internal server error) mydomain.com/index.php (internal server error) mydomain.com/index.php/events/ (No input file specified.) mydomain.com/index.php/events/index (No input file specified) mydomain.com/index.php/admin/events/ (No input file specified) mydomain.com/events (internal server error) mydomain.com/events/index (internal server error) mydomain.com/admin/events (internal server error) the strange thing is: mydomain.com/index/admin (views my login page) I'm able to login and add/edit/delete records. also I'm able to view mydomain.com/admin/events when I'm logged in. Note: I used i18n only in frontpage and not in admin. also I used some session variables like 'currentLang' in front page only. Thanks for your help On Jun 29, 10:42 am, francky06l <[EMAIL PROTECTED]> wrote: > When does your error happen ? When loading a specific controller/ > action ? > I had a failure at the begining but was because in my php.ini, the > zendoptimizer was loaded and sometimes it makes Apache crashes on call > to load_backtrace. > Since I remove the zendoptimiser, no rpoblem. This might be a hint > > Hope this helps > > On Jun 29, 9:35 am, aerosmith <[EMAIL PROTECTED]> wrote: > > > I have a site already running in cakephp I want to upgrade it to > > cakephp 1.2 in the sake of the built in i18n and other built in > > modules in 1.2. > > I've copied my controllers models and views into a fresh installation > > of 1.2 and it worked just fine in my local wamp. so I did some > > modifications in the code nad used the i18n and changed a bit in the > > database every thing was fine until i uploaded it to the lamp server. > > an "Internal Server Error" occurred. > > > I know this is not the correct way to upgrade but it just worked in my > > local machine so I spent a lot of time integrating the new > > functionalities. > > > What should I do? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Problem in upgrading to cakephp 1.2
I have a site already running in cakephp I want to upgrade it to cakephp 1.2 in the sake of the built in i18n and other built in modules in 1.2. I've copied my controllers models and views into a fresh installation of 1.2 and it worked just fine in my local wamp. so I did some modifications in the code nad used the i18n and changed a bit in the database every thing was fine until i uploaded it to the lamp server. an "Internal Server Error" occurred. I know this is not the correct way to upgrade but it just worked in my local machine so I spent a lot of time integrating the new functionalities. What should I do? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Re: Problem with saving form data... from tutorial...
Try starting the tutorial on a fresh installation or download the source code then compare. On Jun 17, 12:42 am, LoinSees <[EMAIL PROTECTED]> wrote: > Nope... still not working... > > PS. you forgot the $ in: > if(this->Task->saveField('done', 1)) > Should be: > if($this->Task->saveField('done', 1)) > > I changed it but it still didnt work... > > On Jun 16, 8:01 am,aerosmith<[EMAIL PROTECTED]> wrote: > > > Your complete function will look like this. > > > > function done($id = null) > > { > > $this->Task->id = $id; > > if(this->Task->saveField('done', 1)) > > { > > $this->set('data', $this->Task->findAll()); > > $this->render('done', 'ajax'); > > } > > } > > ?> > > > Regards > > Raffi Hovhannesian > > > On Jun 15, 2:27 am, LoinSees <[EMAIL PROTECTED]> wrote: > > > > Hello, > > > I have been trying to do this tutorial for a while, but keep failing > > > (http://grahambird.co.uk/cake/tutorials/ajax.php) > > > I have managed to identify the problem thought... it does not save to > > > the database once you click the checkbox. > > > Here is a small part of tasks_controller.php: > > > > function done($id = null) > > > { > > > // move task from todo to done > > > $this->Task->id = $id; > > > $this->params['data']['Task']['done'] = 1; > > > if ($this->Task->save($this->params['data'])) > > > { > > > $this->set('data', $this->Task->findAll()); > > > $this->render('done', 'ajax'); > > > } > > > } > > > > Can someone tell me what is wrong here? > > > Thanks, Loin Sees. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Re: Problem with saving form data... from tutorial...
Your complete function will look like this. Task->id = $id; if(this->Task->saveField('done', 1)) { $this->set('data', $this->Task->findAll()); $this->render('done', 'ajax'); } } ?> Regards Raffi Hovhannesian On Jun 15, 2:27 am, LoinSees <[EMAIL PROTECTED]> wrote: > Hello, > I have been trying to do this tutorial for a while, but keep failing > (http://grahambird.co.uk/cake/tutorials/ajax.php) > I have managed to identify the problem thought... it does not save to > the database once you click the checkbox. > Here is a small part of tasks_controller.php: > > function done($id = null) > { > // move task from todo to done > $this->Task->id = $id; > $this->params['data']['Task']['done'] = 1; > if ($this->Task->save($this->params['data'])) > { > $this->set('data', $this->Task->findAll()); > $this->render('done', 'ajax'); > } > } > > Can someone tell me what is wrong here? > Thanks, Loin Sees. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Re: Problem with saving form data... from tutorial...
I think your code should look something like this. function done($id = null) { $this->Task->id = $id; $this->Task->saveField('done', 1); } Please reply if you tried it and didn't work. Regards Raffi Hovhannesian On Jun 16, 12:52 am, LoinSees <[EMAIL PROTECTED]> wrote: > Nope... still not working sorry > > On Jun 15, 12:54 am, metasan <[EMAIL PROTECTED]> wrote: > > > Hi, > > > i checked your code, and i think the error is at that line : > > > $this->Task->id = $id; > > > Task is a model so you should read it first. > > Plus you make Task->id, this is wrong if you want the task id you > > should do > > > $this->Task['id'] = $id; > > > after reading the Task table. > > > Let me know the result. > > > Regards, > > > metasan > > >http://www.piegteam.com --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Re: where did /cake/scripts/bake.php go?
Hi, I was searching for the same subject today I found that it's on cake\console\libs regards raffi On Jun 14, 12:59 am, pyrobot <[EMAIL PROTECTED]> wrote: > Sorry if this has been answered before, I searched as best I could > with no luck. > > I recently started messing with version 1.2 but ran into a snag when > trying to bake, the folder /cake/scripts/ doesn't exist. I did find > bake.php in /cake/console/libs/ but when I try to run that file in > command line it doesn't work, just gives errors. > > Is there something I'm missing here? I downloaded both the current 1.2 > version and one of the nightly builds and they are both missing the > scripts folder. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Re: model not found .. inflection problem?
Most Welcome... Regards Raffi On Mar 23, 7:40 pm, "lamacq" <[EMAIL PROTECTED]> wrote: > On Mar 23, 1:31 am, "aerosmith" <[EMAIL PROTECTED]> wrote: > > > I think you must create your controller as the following: > > > //app\controllers\trading_systems_controller_controller.php > > class TradingSystemsController extends AppController > > { > > var $name = 'TradingSystems'; > > > } > > > take a look at your controller is it (TradingSystemsController) or > > (TradingsystemsController)... > > > If it's asking you to create app\models\tradingsystem.php then you > > have wrongly created a TradingsystemsController instead of > > TradingSystemsController. > > You, sir, are a mad genius. Adding > var $name = 'TradingSystems'; > to the controller fixed it. And now I see in the manual where it says > PHP4 doesn't properly Camelize so you have to set $name manually. > > Anyway, thanks! > > Matthew --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Re: model not found .. inflection problem?
I think you must create your controller as the following: //app\controllers\trading_systems_controller_controller.php class TradingSystemsController extends AppController { var $name = 'TradingSystems'; } take a look at your controller is it (TradingSystemsController) or (TradingsystemsController)... If it's asking you to create app\models\tradingsystem.php then you have wrongly created a TradingsystemsController instead of TradingSystemsController. Regards On Mar 23, 1:53 am, "lamacq" <[EMAIL PROTECTED]> wrote: > Hi, > > I'm trying to figure out why cake isn't seeing my model. I've got a > table named trading_systems, a controller named > TradingSystemsController in controllers/ > trading_systems_controller.php, and my model is named TradingSystem > and is in the file models/trading_system.php. > > When I accesshttp://localhost/trading_systems/I get this message: > > "Missing Model > > No class found for the Tradingsystem model" > > And it wants me to create this class in app\models\tradingsystem.php: > > class Tradingsystem extends AppModel { >var $name = 'Tradingsystem'; > > } > > But I already have > > class TradingSystem extends AppModel { > var $name = 'TradingSystem';} > > ?> > > in app\models\trading_system.php. Note if I put var $uses = > array('TradingSystem') in the controller, it works (although the view > path is still messed up, views/tradingsystems instead of views/ > trading_systems/). > > Any ideas? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Re: Many Controllers - one view
I don't know if you have tried this but I think You can create an Element Instead of a View. Regards On Mar 16, 5:17 pm, "Dominik Schwind" <[EMAIL PROTECTED]> wrote: > Hi everybody, > > I tried to find the answer to that, but somehow I can't seem to find > an elegant solution for my problem. > > I have a view, for simplicity's sake let's say it looks like that: > > > > > > > Now I have many controllers/actions that have no output except that > very simple list. Do I really need to define the same view over and > over again? > > Thanks, > > Dominik --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Re: how to include elements in my views/layouts/default.thtml
The above code is not working ... Anybody help me to find the right solution? On Jan 17, 2:27 pm, "aerosmith" <[EMAIL PROTECTED]> wrote: Thanks Mike, Let me show my code I may have missed something. This is the model for the element The following is the controller: (recentposts_controller.php) set('recentposts', $this->requestAction('/posts/index', array('return'))); } }?> this is the element code: (recentposts.thtml) Id Title Created link($post['Recentposts']['title'], "/posts/view/".$post['Recentposts']['id']); ?> This is how I included the element in my default.thtml renderElement('recentposts');?> Is this the right way to add a recent posts block in my default.thtml Thanks On Jan 16, 7:25 pm, "Mikee Freedom" <[EMAIL PROTECTED]> wrote: > morning mate, > Have you gone through the manual yet? > The blog tutorial is good, but I've got to recommend some serious > reading time with the manual and the Bakery. > Elements are not necessarily attached to any particular model or > controller, just pieces of code that may be repeated throughout your > site. If you would like to print news information you need to pass > that news data to the view before it is accessible at that level. > What you might be looking for is requestAction on another controller. > But that is another story entirely. > Have a bit of a look in the manual for elements and controllers / > requestAction and I think you should find what you neeed. > cheers, > mikee > On 17/01/07,aerosmith<[EMAIL PROTECTED]> wrote: > > Hi, > > I've spent the last week searching for some good "phpframework". > > Finally I dropped by cakephp.org and within 2 hours I did the blog > > tutorial. Every thing seems clear. > > Now I have a question regarding including blocks that contains dynamic > > data into my default.thtml. > > Here's what I've done. > > I've created an element in views/elements/ called latestnews.php > > > > Latest News > > > > > > > > link($newsitem['News']['title'], > > "/news/view/".$newsitem['News']['id']);?> > > > > > > > > > > did not seem to work. > > the question is: > > Do I need to create a model and controller for each element? or I can > > just use a controller previously made for a page view? > > Is there a place where I can see a more advanced example than the blog > > tutorial? > > Your reaply is highly appreciated > > Raffi Hovhannesian > >http://www.hovhannesian.com --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Re: how to include elements in my views/layouts/default.thtml
Thanks Mike, Let me show my code I may have missed something. This is the model for the element The following is the controller: (recentposts_controller.php) set('recentposts', $this->requestAction('/posts/index', array('return'))); } } ?> this is the element code: (recentposts.thtml) Id Title Created link($post['Recentposts']['title'], "/posts/view/".$post['Recentposts']['id']); ?> This is how I included the element in my default.thtml renderElement('recentposts');?> Is this the right way to add a recent posts block in my default.thtml Thanks On Jan 16, 7:25 pm, "Mikee Freedom" <[EMAIL PROTECTED]> wrote: morning mate, Have you gone through the manual yet? The blog tutorial is good, but I've got to recommend some serious reading time with the manual and the Bakery. Elements are not necessarily attached to any particular model or controller, just pieces of code that may be repeated throughout your site. If you would like to print news information you need to pass that news data to the view before it is accessible at that level. What you might be looking for is requestAction on another controller. But that is another story entirely. Have a bit of a look in the manual for elements and controllers / requestAction and I think you should find what you neeed. cheers, mikee On 17/01/07,aerosmith<[EMAIL PROTECTED]> wrote: > Hi, > I've spent the last week searching for some good "phpframework". > Finally I dropped by cakephp.org and within 2 hours I did the blog > tutorial. Every thing seems clear. > Now I have a question regarding including blocks that contains dynamic > data into my default.thtml. > Here's what I've done. > I've created an element in views/elements/ called latestnews.php > > Latest News > > > > link($newsitem['News']['title'], > "/news/view/".$newsitem['News']['id']);?> > > > > > did not seem to work. > the question is: > Do I need to create a model and controller for each element? or I can > just use a controller previously made for a page view? > Is there a place where I can see a more advanced example than the blog > tutorial? > Your reaply is highly appreciated > Raffi Hovhannesian >http://www.hovhannesian.com --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
how to include elements in my views/layouts/default.thtml
Hi, I've spent the last week searching for some good "phpframework". Finally I dropped by cakephp.org and within 2 hours I did the blog tutorial. Every thing seems clear. Now I have a question regarding including blocks that contains dynamic data into my default.thtml. Here's what I've done. I've created an element in views/elements/ called latestnews.php Latest News link($newsitem['News']['title'], "/news/view/".$newsitem['News']['id']);?> did not seem to work. the question is: Do I need to create a model and controller for each element? or I can just use a controller previously made for a page view? Is there a place where I can see a more advanced example than the blog tutorial? Your reaply is highly appreciated Raffi Hovhannesian http://www.hovhannesian.com --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---