Re: Application Settings stored in the DB and available in plugin models?

2010-06-16 Thread Sam
Variables stored via Configure::write should be accessable anywhere in your site- if it isn't working then the code isn't being executed. Figure out why it isn't executing and you'll solve your problem. Does your plugin AppController extend your site's AppController? Also, where are you defining

Re: Format Array

2010-06-16 Thread John Andersen
Please provide more details for us to consider! For a starter I think the following would be necessary: The code that returns data for your ajax call. The code of the view in which the dropdown data is to be used. Enjoy, John On Jun 16, 2:55 am, Ed Propsner crotchf...@gmail.com wrote: My

Re: serious problem with cakephp about CakePHP Auth Component Permissions

2010-06-16 Thread xamako
Try this http://github.com/jedt/spark_plug On Jun 16, 6:45 am, hoss7 hoss...@gmail.com wrote: i want Users, Groups Permissions for Groups, for my website Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. You received this message

Re: Format Array

2010-06-16 Thread Ed Propsner
Sorry about that John, I'm not quite with it today ... i'm a bit under the weather. This is the part of the view for the search. $form-input('country', array( 'label' = '', 'type' = 'select', 'empty' = '-- Select --', 'selected' = $this-Session-read('Auth.User.country') ) )

Re: Format Array

2010-06-16 Thread John Andersen
Thanks Ed :) Ok, off the top of my head - I see that every other form field you specify as: [code] $form-input('fieldname', ...); [/code] Note, you use only the fieldname without the modelname. But for the region, you attach Search as the modelname! Have you tried to remove it? Does the region

Re: serious problem with cakephp about CakePHP Auth Component Permissions

2010-06-16 Thread hoss7
this is my code http://www.box.net/shared/sulzlckko6 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 Google Groups CakePHP group. To post to this group, send email to

Filtering results in a list

2010-06-16 Thread DSG
Hi all I am a complete newbie on this. I have inherited some code and it now needs altering. At present the code generates a product list and some of the items in the list are new products. At the top of the list is an icon and text that becomes the link that allows you to view just the new

please help me CakePHP Auth Component Permissions

2010-06-16 Thread hoss7
i have this code for user system and CakePHP Auth Component Permissions, thsi code is so easy,please download and show me where is my probelm and fix it if you can http://www.box.net/shared/sulzlckko6 Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP

Email component

2010-06-16 Thread Daniel Gbur
hi all, i have a problem with Email compnent. when i set the destination adress with a string: $this-Email-to = 'exampleem...@domain.com'; it's working ok, but when i try to set the destination adress with a variable: $to = 'exampleem...@domain.com'; $this-Email-to = $to; it doesn't work. i

cakephp console, cake bake

2010-06-16 Thread jjnn
Do i have to change the enviroment path to my cakephp console everytime i need to bake stuff on a new project? so like /home/jonas/lampp/htdocs/cakephp_projectA/cake/console /home/jonas/lampp/htdocs/cakephp_projectB/cake/console ...etc. sorry im new to cakephp =) Thanks /JJ Check out the new

Redirect does not work after saving form data to database.

2010-06-16 Thread xpo60rj
I'm new to cakephp. I'm trying to build a newsletters subscription field that is placed in my footer element. I can not get my page to redirect back to home after submitting form data to the database along with email notification. The data is saved to the database and I do get my confirmation

Redirect does not work after saving form data to database.

2010-06-16 Thread xpo60rj
I'm new to cakephp. I'm trying to build a newsletters subscription field that is placed in my footer element. I can not get my page to redirect back to home after submitting form data to the database along with email notification. The data is saved to the database and I do get my confirmation

Install cakePHP in Ubuntu 10.04

2010-06-16 Thread Abrão Ximenes
Hello, I am very interested to learn cakePHP, can anyone send the steps to me how to install and configure/setting cakePHP in Ubuntu 10.04? Thanks Newbie Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. You received this message

Cupcake forum plugin and Cake 1.3

2010-06-16 Thread Mike
Hi, I have successfully (I think) installed the Cupcake forum plugin version 1.8 in my CakePHP application. Just one problem: the forum page comes up in basic html without any css styling. I know the answer is quite simple but I can't just can't find it. I'd very much appreciate any suggestions.

Array to XML

2010-06-16 Thread Kyle Decot
I need to take an array that I have and turn it into something similar to: items perpage = 20 total = 223 page = 1 item created = ... modified = ... textsdfsdfkdsjfdsfljdsflkjdsfkldsjf/text somethingelse thing = foobar / /item /items Is it possible to do this without knowing the exact

Re: Offline Manuals

2010-06-16 Thread TW
The script from Dardo works well - just need to update the get script to point to the 1.3 manual. The script currently points to the 1.2 manual. Thanks Dardo. Tony On Jun 15, 6:45 am, leo ponton@gmail.com wrote: I'm sure they've been posted before, but some of you might find these links

cakephp

2010-06-16 Thread asarudeen k
How to retrive image in mysql using cakephp. 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 Google Groups CakePHP group. To post to this group, send email to

Re: please help me CakePHP Auth Component Permissions

2010-06-16 Thread John Andersen
Don't start a new thread, continue with the old one, in which some of us already have started to reply to your issue!! On Jun 16, 11:24 am, hoss7 hoss...@gmail.com wrote: i have this code for user system and CakePHP Auth Component Permissions, thsi code is so easy,please download and show me

Re: serious problem with cakephp about CakePHP Auth Component Permissions

2010-06-16 Thread Jeremy Burns | Class Outfit
Hamed - you need to be clearer about what your problem is else no-one can help you. Jeremy Burns Class Outfit jeremybu...@classoutfit.com http://www.classoutfit.com On 16 Jun 2010, at 09:22, hoss7 wrote: this is my code http://www.box.net/shared/sulzlckko6 Check out the new CakePHP

Re: Cupcake forum plugin and Cake 1.3

2010-06-16 Thread Jeremy Burns | Class Outfit
I don't know Cupcake but have had similar issues with other plug ins. Try creating a folder within /app/webroot/ with the same name as the plug in folder. Then copy the css, img, and js folders (if appropriate) into the new folder. Jeremy Burns Class Outfit jeremybu...@classoutfit.com

Re: cakephp

2010-06-16 Thread Sam Sherlock
Too general a question depend how you set this up or what plugin you use see http://book.cakephp.org/view/73/Retrieving-Your-Data Existing Plugins that handle images WebTechNick's fileupload plugin http://www.webtechnick.com/blogs/view/221/CakePHP_File_Upload_Plugin or MilesJ Uploader Plugin

Re: Offline Manuals

2010-06-16 Thread leo
just need to update the get script to point to the 1.3 manual. The script currently points to the 1.2 manual. Yes, I should have pointed that out. For anybody who is confused about using the script, edit .../manual- builder/get to point to the desired manual using one of the above urls then in

Re: Format Array

2010-06-16 Thread Ed Propsner
I removed the model name (Search) from the field(s) and the result was the same ... minus [Search] in the array (obviously). All the field names are now uniform with both the search view and the ajax view. The region view (returned) via ajax simply echoes the region field and that is all. I

Re: CakePHP

2010-06-16 Thread leo
Ubuntu and Debian are quirky when it comes to Apache. Hopefully this will help: http://leoponton.blogspot.com/2010/05/getting-cakephp-up-and-running-on.html On 14 June, 17:07, Abrão Ximenes abraoxime...@gmail.com wrote: can you send the steps how to install and configure cakePHP in Ubuntu

Re: CakePHP

2010-06-16 Thread leo
Ubuntu and Debian are quirky when it comes to Apache. Hopefully this will help: http://leoponton.blogspot.com/2010/05/getting-cakephp-up-and-running-on.html On 14 June, 17:07, Abrão Ximenes abraoxime...@gmail.com wrote: can you send the steps how to install and configure cakePHP in Ubuntu

Re: CakePHP

2010-06-16 Thread leo
Ubuntu and Debian are quirky when it comes to Apache. Hopefully this will help: http://leoponton.blogspot.com/2010/05/getting-cakephp-up-and-running-on.html On 14 June, 17:07, Abrão Ximenes abraoxime...@gmail.com wrote: can you send the steps how to install and configure cakePHP in Ubuntu

Error when running cakephp

2010-06-16 Thread Abrão Ximenes
How to fix the following problems? : *Notice* (8) javascript:void(0);: Use of undefined constant ‘Security - assumed '‘Security' [*APP/config/core.php*, line *203*] *Notice* (8) javascript:void(0);: Use of undefined constant salt’ - assumed 'salt’' [*APP/config/core.php*, line *203*] *Notice*

Re: Cupcake forum plugin and Cake 1.3

2010-06-16 Thread euromark
i wrote miles an email about that among other things didnt get n answer... On 16 Jun., 10:44, Jeremy Burns | Class Outfit jeremybu...@classoutfit.com wrote: I don't know Cupcake but have had similar issues with other plug ins. Try creating a folder within /app/webroot/ with the same name as

Re: Format Array

2010-06-16 Thread John Andersen
Good luck Ed, hope someone else can give you some better advice! I unfortunately haven't played around with Ajax as much, so can't shed any light on the issue! Enjoy, John On Jun 16, 11:59 am, Ed Propsner crotchf...@gmail.com wrote: I removed the model name (Search) from the field(s) and the

Re: cakephp console, cake bake

2010-06-16 Thread Shaz
http://cakephp.org/screencasts/view/7 On Jun 15, 8:32 pm, jjnn jn.nor...@gmail.com wrote: Do i have to change the enviroment path to my cakephp console everytime i need to bake stuff on a new project? so like /home/jonas/lampp/htdocs/cakephp_projectA/cake/console

Re: Error when running cakephp

2010-06-16 Thread John Andersen
Check that you have not deleted the quotes around your constants!!! Your code should contain something similar as this: [code] Configure::write('Security.salt', 'UubWwvniR2G0FgaC9miDYhG93b0qyJfIxfs2guVo'); [/code] Enjoy, John On Jun 16, 12:12 pm, Abrão Ximenes abraoxime...@gmail.com wrote:

Re: Format Array

2010-06-16 Thread Ed Propsner
No prob, thanks a bunch John! I'll keep tinkering and I'm sure I'll come up with something. The worst that can happen is I learn something new 8-). On Wed, Jun 16, 2010 at 5:27 AM, John Andersen j.andersen...@gmail.comwrote: Good luck Ed, hope someone else can give you some better advice! I

Re: Install cakePHP in Ubuntu 10.04

2010-06-16 Thread Zaky Katalan-Ezra
install LAMP http://www.howtoforge.com/ubuntu_lamp_for_newbies Unzip the cakephp where ever you like, home/zaky/cakephpproj/ for example. under /var/www create a link you your site cd /var/www sudo ln -s home/zaky/cakephpproj/ mynewapp chmod 777 app/tmp update app/config/database.php with you

Re: Error when running cakephp

2010-06-16 Thread arif hossen
Dear, Change your security salt value: Give some value in security salt as your wish. Configure::write('Security. salt', 'abcxyzfIxfs2guVo'); On Wed, Jun 16, 2010 at 4:30 PM, John Andersen j.andersen...@gmail.comwrote: Check that you have not deleted the quotes around your constants!!!

Re: Automagic Form (Drop down list)

2010-06-16 Thread leo
usually you dont pass the dummy field via controller there is an empty field param for it echo $this-Form-input('category_id', array('options'=$cats, 'empty='dummyName'); I prefer to handle this kind of logic in the controller. Check out the new CakePHP Questions site http://cakeqs.org and

Re: Updating is creating new record

2010-06-16 Thread WhyNotSmile
Thanks for all the replies. I got it working by using updateAll, as Sergei suggested. Still not sure why it wasn't working, but at least it is now! Thanks again for all the help. Sharon On 14 June, 03:30, Sergei yatse...@gmail.com wrote: Try this $user['User']['id']=...

Re: Install cakePHP in Ubuntu 10.04

2010-06-16 Thread leo
Installing AMP on Ubuntu is trivial. The confusing part is getting CakePHP to work. It is not out-of-the-box because the Ubuntu default Apache config doesn't include mod_rewrite. Even when you have that set up, there is some Debian-ness to contend with. The trick is finding the right files to

Re: Email component

2010-06-16 Thread Dilip Godhani
Hello Use this its work may ne $to = 'exampleem...@domain.com'; $this-Email-to = $to; Best luck BYe BYe On Wed, Jun 16, 2010 at 12:25 AM, Daniel Gbur daniel.g...@gmail.com wrote: hi all, i have a problem with Email compnent. when i set the destination adress with a string:

Email Component and Model

2010-06-16 Thread Andrei Mita
Hello, I have a model Email that conflicts with the component when I try to send emails. I have researched the group and saw that other people had the same issue but did not find a solution. Is there a standard way to deal with the problem or do I have to rename my model, controller and view

Re: Email Component and Model

2010-06-16 Thread jodator
I had the same issue ;) Fastest: rename model or component. Or you could try use email model in controller like this (I havn't tested it before): $uses = array('MyOtherModel'); ... function mail_me($id) { $emailModel = ClassRegistry::init('Model'); $emailField = $emailModel-find('email',

Re: Email Component and Model

2010-06-16 Thread Andrei Mita
How can I rename the E-mail component? On Wed, Jun 16, 2010 at 3:26 PM, jodator joda...@gmail.com wrote: I had the same issue ;) Fastest: rename model or component. Or you could try use email model in controller like this (I havn't tested it before): $uses = array('MyOtherModel'); ...

10 PHP code snippets for working with strings

2010-06-16 Thread amiable_indian
Some of the snippets might be good enough to be added to the framework. http://www.catswhocode.com/blog/10-php-code-snippets-for-working-with-strings -amiable Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. You received this

Re: Filtering results in a list

2010-06-16 Thread Sam
http://book.cakephp.org/view/835/image Ad the 'url' option to the options array for your image. echo $html-image('icons/new.png', array( 'alt'='New Product Icon', 'width'=$logo_size[0], 'height'=$logo_size[1], 'border'='0', 'class'='ProductLogo', 'url' = array('?'=$queryString_newproducts) ));

Re: 10 PHP code snippets for working with strings

2010-06-16 Thread euromark
some of them already are On 16 Jun., 14:57, amiable_indian mithu.si...@gmail.com wrote: Some of the snippets might be good enough to be added to the framework. http://www.catswhocode.com/blog/10-php-code-snippets-for-working-with... -amiable Check out the new CakePHP Questions site

Re: Error when running cakephp

2010-06-16 Thread Abrão Ximenes
I got a new problem as the following: Please change the value of 'Security.cipherSeed' in app/config/core.php to a numeric (digits only) seed value specific to your application [*CORE/cake/libs/debugger.php*, line *688*] How to change the following line ( in var/www/cakephp/app/config/core.php):

Re: Error when running cakephp

2010-06-16 Thread Jeremy Burns | Class Outfit
The errors you are seeing are part of the basic Cake set up process. The cipherSeed and salt values should be unique to you - so change the defaults to something else. It doesn't really matter what you change it to as they are random strings. I'd recommend keeping them the same length as the

Abrão Ximenes wants to chat

2010-06-16 Thread Abrão Ximenes
--- Abrão Ximenes 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-5b162645c5-eecdac8af4-45w1skUUbtx-Vt3PXsg54YFdFKk You'll

Re: : reuseable view

2010-06-16 Thread leo
Or if you're feeling brave, you could edit the templates in ..cake/ console so that your controllers, models and views are created the way _you_ want them. On 15 June, 18:21, calvin cal...@rottenrecords.com wrote: Yea, I think you'll be hard pressed to find a justification for merging all the

Re: Cupcake forum plugin and Cake 1.3

2010-06-16 Thread Mike
Thanks Jeremy, but unfortunately that does not work. If I click on the link to take me to the forum, it now displays a directory listing in the browser instead of the main forum page. --Mike On Jun 16, 1:44 am, Jeremy Burns | Class Outfit jeremybu...@classoutfit.com wrote: I don't know Cupcake

Re: Cupcake forum plugin and Cake 1.3

2010-06-16 Thread Jeremy Burns | Class Outfit
Wow - that's a surprise. I wouldn't have expected any degradation just by creating a few new folders. Sorry it don't help. Jeremy Burns Class Outfit jeremybu...@classoutfit.com http://www.classoutfit.com On 16 Jun 2010, at 15:08, Mike wrote: Thanks Jeremy, but unfortunately that does not

set 3d animation as a default layout for a cakephp application

2010-06-16 Thread Swamy
hi . how to set 3d animation as a default layout for a cakephp application 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 Google Groups CakePHP group. To post to

Re: Email Component and Model

2010-06-16 Thread Dr. Loboto
Your should rename model. On Jun 16, 7:39 pm, Andrei Mita andrei.m...@gmail.com wrote: How can I rename the E-mail component? On Wed, Jun 16, 2010 at 3:26 PM, jodator joda...@gmail.com wrote: I had the same issue ;) Fastest: rename model or component. Or you could try use email model in

Re: Email Component and Model

2010-06-16 Thread Andrei Mita
Thanks. Will do. On Wed, Jun 16, 2010 at 5:21 PM, Dr. Loboto drlob...@gmail.com wrote: Your should rename model. On Jun 16, 7:39 pm, Andrei Mita andrei.m...@gmail.com wrote: How can I rename the E-mail component? On Wed, Jun 16, 2010 at 3:26 PM, jodator joda...@gmail.com wrote:

Re: Automagic Form (Drop down list)

2010-06-16 Thread Shaz
Whoa! So much info! Thanks all; beginning to like cake more and more day by day. I settled for using $displayField in the model; am trying to keep the controller as skinny as possible. Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related

Re: Validation - specifying which rules to use

2010-06-16 Thread LunarDraco
There are ways to deal with this, often times you need to use different validation rules for adding a new record vs updating an existing record. Or sometimes as an administrator you want to be able to override the validation that is to take place. Jonathan Snook has posted a pattern of using the

Re: Abrão Ximenes wants to chat

2010-06-16 Thread Jonathon Musters
Don't spam the group with this type of stuff. On 6/16/10, Abrão Ximenes abraoxime...@gmail.com wrote: --- Abrão Ximenes wants to stay in better touch using some of Google's coolest new products. If you already have Gmail

Re: Cupcake forum plugin and Cake 1.3

2010-06-16 Thread Mike
Hi Jeremy: Ok, a quick search of Miles' support forum revealed the answer: create a webroot folder under app/plugins/forum and then copy the contents of forum/vendors to forum/webroot. I hope this is helpful to others. --M On Jun 16, 7:10 am, Jeremy Burns | Class Outfit

Re: Cupcake forum plugin and Cake 1.3

2010-06-16 Thread keymaster
My first guess would be the css file is not where the code expects it. Use firebug to see what css files are being requested, and from what locations. On Jun 16, 5:10 pm, Jeremy Burns | Class Outfit jeremybu...@classoutfit.com wrote: Wow - that's a surprise. I wouldn't have expected any

Re: Cupcake forum plugin and Cake 1.3

2010-06-16 Thread Miles J
Sorry, the plugin is meant for 1.2 only. There are plans for a 1.3 version, but it wont be for a while. On Jun 16, 10:03 am, Mike mluff...@gmail.com wrote: Hi Jeremy: Ok, a quick search of Miles' support forum revealed the answer: create a webroot folder under app/plugins/forum and then copy

Re: Email component

2010-06-16 Thread Daniel
my bad, that's working: $to = 'exampleem...@domain.com'; $this-Email-to = $to; ..typo mistake. but when i include in my controller a config.php file: ?php define('EMAIL', 'exam...@domain.com'); ? and try to use EMAIL to set the destination, it doesn't work :-(. i have tried to set a $email

Ajax tutorials (help)

2010-06-16 Thread hoss7
i want help for ajax in cakephp or sample code or idea 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 Google Groups CakePHP group. To post to this group, send email to

Re: Ajax tutorials (help)

2010-06-16 Thread Ed Propsner
http://book.cakephp.org/view/1358/AJAX On Wed, Jun 16, 2010 at 2:26 PM, hoss7 hoss...@gmail.com wrote: i want help for ajax in cakephp or sample code or idea Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. You received this

Re: Automagic Form (Drop down list)

2010-06-16 Thread euromark
good idea :) @leo i think its supposed to be in the view - in contradiction to the default value. but as with many things - it comes down to personal preferation in the end On 16 Jun., 17:27, Shaz shazam...@gmail.com wrote: Whoa! So much info! Thanks all; beginning to like cake more and more

Re: Validation - specifying which rules to use

2010-06-16 Thread calvin
That's pretty clever. Though it would still be nice to have a way to simply specify which rules to ignore/use--the same way that you can specify which fields to validate. On Jun 16, 8:36 am, LunarDraco mdc...@gmail.com wrote: There are ways to deal with this, often times you need to use

Re: 10 PHP code snippets for working with strings

2010-06-16 Thread calvin
Eh, none of those snippets are particularly clever. They're all either really obvious or just poorly written (the Twitter, contains(), and the URL transform ones for example). With the way those snippets are presented, I thought they'd either help you accomplish difficult tasks or be elegantly

Re: Install cakePHP in Ubuntu 10.04

2010-06-16 Thread calvin
I dunno, I actually got Cake 1.3 set up on a Ubuntu Server (10.4) server pretty easily. To enable a module that isn't enabled by default, just use a2enmod. I didn't realize the Ubuntu Apache package came with that command, so I actually did it manually at first. I also wasn't used to the modular

Re: serious problem with cakephp about CakePHP Auth Component Permissions

2010-06-16 Thread calvin
No one is going to do your work for you (no matter how easy you claim it is). And you can't become a successful web develop by being a copy-n-paste programmer. Instead of looking for source code on the web, just read the documentation for Cake and for the components you're trying to use. If you

Re: Array to XML

2010-06-16 Thread calvin
There are many ways to convert the same array into XML. How will the function know which you want? How will it know when you want to add a value as an attribute or as a textnode? On Jun 15, 10:34 pm, Kyle Decot kyle.de...@gmail.com wrote: I need to take an array that I have and turn it into

Cakephp - Subdirectory - Removing index.php from URLs

2010-06-16 Thread Andrew
Hello, I recently installed cakephp in a subdirectory directly off the root directory. To get this working I used the htaccess settings in Appendix 1 below. However I do have a problem I cannot figure out how to fix. I've been trying to fix it for a few days now and I have not been able to find

Re: Validation - specifying which rules to use

2010-06-16 Thread LunarDraco
I think supporting that would move the business rules out of the model and dirty up the controller. If you look at his second method of usage you can specify a completely different validation set which still lives in the model. This named validation can have a different set of fields as well as