Re: cPanel shared hosting

2009-08-11 Thread brian
That seems like a good way to do it. I'm a big fan of being able to easily switch between versions. I'll package it up like that and see if I can make it work. On Mon, Aug 10, 2009 at 9:50 PM, JamesFusaexportexpe...@gmail.com wrote: my cpanel setup is as follows /home/jamesf/ is my cpanel

Re: cPanel shared hosting

2009-08-11 Thread brian
That seems like a good method for this instance, where there isn't (likely) to be a bunch of other Cake apps floating around. So, no need to make the libs shareable. On Mon, Aug 10, 2009 at 7:31 PM, thatsgreat2345thatsgreat2...@gmail.com wrote: I usually have the app still inside the cakephp

Re: URL some page .../id disappeared ?

2009-08-11 Thread brian
@James I thought at first that looked like a real pain but verbose array linking (finding, routing, containing, etc.) is definitely the way to go, I agree. It's often self-documenting, for one thing. And it goes to the heart of what Cake is, I think. Big kudos to the devs for pulling this

Re: Array help

2009-08-11 Thread Martin Westin
If looping the results start becoming too slow for you, you can force Cake to do a join which will make the whole result disappear if the Post is empty. Nate wrote about it and inspired me to build my own variation.

Re: Storing arrays in the database (one field many values)

2009-08-11 Thread Rawna
Do I need to set foreign keys (author_id, book_id) to the tables (books, authors)? How do I make my views have multiple selection fields and how do I store them (because they're in an array)? On Aug 7, 10:15 am, Robert P shiftyrobs...@gmail.com wrote: Well, if Books can have more than one

Re: Assigning, accessing and comparing viewVars in a controller...

2009-08-11 Thread brian
On Mon, Aug 10, 2009 at 1:24 PM, gestejim.ho...@gmail.com wrote: Brian, Many thanks.  I got over a bit of a hump on this on Friday with your help.  I do of course have another n00b follow up question :) I am using the authake plug-in for group-based authorization (this nice plug-in has

wrapper function not working!

2009-08-11 Thread armen
This is the link to the webpage that im working on... http://warplayart.com/bleed_till_death/UserLoging/users and this is the link that you register a user... http://warplayart.com/bleed_till_death/UserLoging/users/register But the form on the register page, calles add in for it's action

Re: possible to do validation in not current model? where should I put validation??

2009-08-11 Thread leafchild
Thanks brian, now I can put my validation code at model. On Aug 7, 6:26 pm, brian bally.z...@gmail.com wrote: I'm not sure that I understand your question. But you can call the model's function directly from the controller. On Fri, Aug 7, 2009 at 4:42 PM,leafchildleafchild.b...@gmail.com

Re: Log Errors when debug = 0?

2009-08-11 Thread bram
I do know it's possible to write all cake debugging and error info to the log file. But I don't know how to enable it without a small modification in the cake source code. I've asked a similar question a couple of days ago, but no replies

Re: Ajax Errors

2009-08-11 Thread Saliem
I am not quite sure what you are missing but you might want to double check a couple of things including: the name of your aliquot model file, the validate variable in your aliquot model file and try using the validationErrors method available for each of the models created and returning any

Re: Uploading file issue - worning mkdir()

2009-08-11 Thread leafchild
The uploaded img directory permission is set to 777 and just in case I even changed webroot permission to 777 but I'm still seeing same warning message. Where else I need to check? Also how can I stop update with entire file data to database? after trying to upload file debug show:

Default values in select lists

2009-08-11 Thread jburns
How can I add a blank value (something like Please select a value) to the top of a select list when using $this-Xxxx-Yyyy-find ('list'); instead of defaulting to the first value in the list? --~--~-~--~~~---~--~~ You received this message because you are subscribed

Re: Default values in select lists

2009-08-11 Thread arif hossen
You can use below code cakephp format. ?php echo $html-input('listname',array('options'=$mylist,'Selected'='Please select a value)); ? On 8/11/09, jburns jeremybu...@me.com wrote: How can I add a blank value (something like Please select a value) to the top of a select list when using

Re: MISSING TABLE

2009-08-11 Thread Walther
Firstly, the $name must be == to the name of the Model. $name is used to compatibility in php4 Secondly, The WorksCollections controller is looking for the WorksCollection model. Cakephp only singularises the last word in a multi word name. So you should rename your WorkCollection model to

Re: How can I leave entered value even there is an errro and couldn't complete

2009-08-11 Thread leafchild
Yes, I use $form-input() I found an issue because I was SQL again for the specific data before going back to the page to show user an errors. (I had an code like this that's why I couldn't keep the entered value when there is an error. === function

I18n table How to use ?

2009-08-11 Thread DatacenterHellas
Hello all ! :) I'm creating an application and I like to make it multilanguage. The question is how ? ? ? I already have make the internationalization of the menus, I can change languages to my interface but the question is how can I translate my articles by using the I18n table ? ? ? Kind

Re: lazy loading?

2009-08-11 Thread evilbloodydemon
take a look to http://github.com/mcurry/lazy_loader/tree/master On Aug 10, 8:13 pm, Martin Westin martin.westin...@gmail.com wrote: Typical me. I never got to my real point. I wanted to say that if you are having serious performance problems even while containing queries then that is a bit

Re: cPanel shared hosting

2009-08-11 Thread Alexandru Ciobanu
On 8/11/2009 9:23 AM, brian wrote: That seems like a good method for this instance, where there isn't (likely) to be a bunch of other Cake apps floating around. So, no need to make the libs shareable. FYI: For shared cake libs I use the setup described in the book.

Re: I18n table How to use ?

2009-08-11 Thread Marcelo Andrade
On Tue, Aug 11, 2009 at 6:23 AM, DatacenterHellasmerianosni...@gmail.com wrote: Hello all ! :) I'm creating an application and I like to make it multilanguage. The question is how ? ? ? I already have make the internationalization of the menus, I can change languages to my interface but

Re: I18n table How to use ?

2009-08-11 Thread DatacenterHellas
Ok . . . I already have find the way to use it but . . . I have another one problem. How to translate my content ? ? ? in example : I set the $this-Post-locale = gre I save my data $this-Post-create(); $this-Post-save($this-data); Ok until now but If i like to translate this post now how

Re: Uploading file issue - worning mkdir()

2009-08-11 Thread anurag pal
Hi, I have the same issue. I found that its using different path for uploading file. For stopping details to database just first upload the file and then insert or update record in database. If you can provide the source code it would be better to diagnose the problem. Regards, Anurag Pal On

Re: How can I leave entered value even there is an errro and couldn't complete

2009-08-11 Thread anurag pal
Hi, Just set the Id so that it will get the reference on edit page. Regards, Anurag Pal On Tue, Aug 11, 2009 at 2:36 PM, leafchild leafchild.b...@gmail.com wrote: Yes, I use $form-input() I found an issue because I was SQL again for the specific data before going back to the page to show

Re: How can I leave entered value even there is an errro and couldn't complete

2009-08-11 Thread anurag pal
Hi, For that you have to pass values in input filed so that it will take it when it come back to page after getting validation errors. Regards, Anurag Pal On Aug 8, 3:56 am, leafchild leafchild.b...@gmail.com wrote: I have a page with form. If user entered name, address,,,and ,all kinds of

Access non CakePHP session from within CakePHP?

2009-08-11 Thread Fabs
G'day everyone I'm planning to integrate CakePHP with a legacy CRM site in use. My problem is with authentication. The legacy CRM stores session data just in $_SESSION (it doesn't call session_name()). Is there a straightforward way to access this data from within CakePHP, or should I somehow

Using the form helper to create elements failed in opera

2009-08-11 Thread Robert Moritz
Hi Guys, i' am using the form helper to create input fields, but they'll not displayed in opera. What could be the problem? A local instance of xampp is my webserver. cakephp 1.2.4.8284 stable http://img185.imageshack.us/img185/9628/20090811102017.png Thank you! Regards, Robert

Re: wrapper function not working!

2009-08-11 Thread anurag pal
Hi, I have checked the code its working properly. Please cross check your method which checking for logged User. It might be in beforeFilter because its asking for log-in. Regards, Anurag Pal On Aug 11, 12:25 pm, armen oldar...@gmail.com wrote: This is the link to the webpage that im working

Access non CakePHP session from within CakePHP

2009-08-11 Thread Fabs
G'day all I'm integrating CakePHP into a legacy CMS. The CMS stores all of its session data in the generic php session (it never calls session_name ()). I need to retrieve this session data to prevent requiring users to log in twice to use the old and the new functions. Is there a way to do

Fatal error: Class 'Dispatcher' not found - please help

2009-08-11 Thread RAAJ
i have gotten this messege how can solve it ?? please help me... --~--~-~--~~~---~--~~ 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

RE: Array help

2009-08-11 Thread Dave Maharaj :: WidePixels.com
Thanks Joshua, That works just as needed. Dave _ From: joshua [mailto:josh...@gmail.com] Sent: August-11-09 1:14 AM To: cake-php@googlegroups.com Subject: Re: Array help I think you can define a model level filter, it will help you to solve this problem thoroughly. Just an idea of

Re: Using usort in Cake

2009-08-11 Thread DiRN
For future refernce, you would use: usort($fruits, array($this, 'cmp)); --~--~-~--~~~---~--~~ 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

Re: lazy loading?

2009-08-11 Thread euromark (munich)
@demon that looks promising i'll check it out, thx On 11 Aug., 11:38, evilbloodydemon evilbloodyde...@gmail.com wrote: take a look tohttp://github.com/mcurry/lazy_loader/tree/master On Aug 10, 8:13 pm, Martin Westin martin.westin...@gmail.com wrote: Typical me. I never got to my real

Re: Using usort in Cake

2009-08-11 Thread DiRN
Sorry for the mixed quotes. --~--~-~--~~~---~--~~ 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

Function Find - problem

2009-08-11 Thread boobalan
i found some difficulties using function find(), / SELECT `Book`.`isbn`, `Book`.`title`, `Book`.`author_name` FROM `books` AS `Book` WHERE `Book`.`title` = 'LIKE 'A%' ORDER BY `Book`.`title` ASC // In this query, i can't retrieve data because the conditions pasted in this

Access Permissions

2009-08-11 Thread Dave Maharaj :: WidePixels.com
I have an Auth Acl setup working fine. I have scope- Users.confirmed to verify they confirmed their email before they can login in...no problem. Now I have added User.status which is: default 0 = pending admin approval 1 = active 2= suspended Now I have 3 scenarios to allow access to the

Custom library functions

2009-08-11 Thread alaxos
Hello, I have tried to figure out what would be the best way to add generic functions to an app, in order to then be able to use them everywhere in a Cake application. I wrote some time ago (nothing to do with cake) classes with methods that I use to do different things. They are generic

Re: Log Errors when debug = 0?

2009-08-11 Thread Rick
Look in the cake/libs/error.php class. You may be able to override something there and make log output work. I don't know where in the hierarchy of cake you would need to put the override to make it work. Maybe some expert can contribute here. Rick On Aug 11, 3:31 am, bram

Sessions and Redirect

2009-08-11 Thread LS
Hello, everyone. I'm into a dead end and I can't seem to get this session and redirect things right... I've tested this using cakephp, php and database session methods. I have two controllers and one action in each one, like this: ?php class OneController extends AppController { function

Re: Sessions and Redirect

2009-08-11 Thread Robert P
In TwoController::bug() your call to SessionComponent seems nonsensical. Looking at what you are trying to do it should either be $this-Session-check('key') which should return TRUE since you set this value in OneController::start(), or ($this-Session-read('key') == 'info') which should also

Re: Custom library functions

2009-08-11 Thread Robert P
The file /app/config/bootstrap.php is there for this exact reason. On Aug 11, 8:56 pm, alaxos ala...@gmail.com wrote: Hello, I have tried to figure out what would be the best way to add generic functions to an app, in order to then be able to use them everywhere in a Cake application. I

PDF reader in view without new header

2009-08-11 Thread RugerJ
How can you show a pdf file within a view without setting the header to pdf. I tried to embed it like this: EMBED SRC=?php echo $html-url('/app/webroot/files/userfile/'. $uploads['FileUpload']['subdir'].'/'.$uploads['FileUpload'] ['file_name']);?#toolbar=0statusbar=0messages=0navpanes=0

Multidimensional array as named argument

2009-08-11 Thread Tushar
Is it possible to pass an array through named arguments and have it accessible via $this-passedArgs? How would you convert an array as such to a named argument Array ( [foo] = foo1 [bar] = Array ( [0] = bar0

Re: Custom library functions

2009-08-11 Thread Martin Westin
If you start adding more functions you may want to put them into a separate file. The top of my bootstrap.php looks like this: // This would mess things up royally-- App::import('Vendor', 'basics'); require_once(APP.'vendors'.DS.'basics.php'); I mention it mostly because you have to do a good

Re: Function Find - problem

2009-08-11 Thread CobaltShark
It would be helpful if you posted the actual code of your find(), but it would appear that you are not forming your conditions array correctly. I haven't had any issues using LIKE, and maybe this link will help : http://book.cakephp.org/view/74/Complex-Find-Conditions .Book.title LIKE = A% should

Re: Access non CakePHP session from within CakePHP

2009-08-11 Thread CobaltShark
The $_SESSION array should have what your looking for. On Aug 11, 12:15 am, Fabs lord.f...@gmail.com wrote: G'day all I'm integrating CakePHP into a legacy CMS. The CMS stores all of its session data in the generic php session (it never calls session_name ()). I need to retrieve this

Re: PDF reader in view without new header

2009-08-11 Thread Martin Westin
Since you are pointing to a real file that exists and is readable (right?) your problem is probably not header. The url method is for controllers and actions. Try using the webroot method. You supply it with the path you want and it will add the base url for you. echo

Re: PDF reader in view without new header

2009-08-11 Thread CobaltShark
Have you tried removing /app/webroot from the $html-url call? Not sure if that will fix all your issues but that is where I would start. On Aug 11, 7:54 am, RugerJ hoogervo...@gmail.com wrote: How can you show a pdf file within a view without setting the header to pdf. I tried to embed it

Re: expired cache files

2009-08-11 Thread zonium
Any insight everyone? --~--~-~--~~~---~--~~ 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

Re: PDF reader in view without new header

2009-08-11 Thread RugerJ
Thnx Martin, that solved the problem ;-) --~--~-~--~~~---~--~~ 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

Re: Hi i am newbie !

2009-08-11 Thread pomares
This tutorial is a good way to start: http://book.cakephp.org/view/326/The-Cake-Blog-Tutorial On Aug 11, 9:43 am, sunny asim...@gmail.com wrote: Can any body tell me how build new project in cake php! --~--~-~--~~~---~--~~ You received this message because you

Re: Hi i am newbie !

2009-08-11 Thread thatsgreat2345
Don't use 1.1, I'd recommend using 1.2 blog tutorial http://book.cakephp.org/view/219/Blog On Aug 11, 9:26 am, pomares k...@gordonpomarescentre.com wrote: This tutorial is a good way to start: http://book.cakephp.org/view/326/The-Cake-Blog-Tutorial On Aug 11, 9:43 am, sunny

Re: Uploading file issue - worning mkdir()

2009-08-11 Thread leafchild book
Hi Anurag, Thank you for the comment. Where is your upload file directory? Is still in webroot? Thanks, leafchild On Tue, Aug 11, 2009 at 1:43 AM, anurag pal mail.anurag@gmail.comwrote: Hi, I have the same issue. I found that its using different path for uploading file. For stopping

Re: Validating a HABTM relationship

2009-08-11 Thread mcrawford
Found a solution: As far as I can tell, the validation methods expect the data all to be in (for example) $this-data['Question']['FunctionalArea']. (See line 2196 of model.php, where the only data considered for validation is in $this-data['Question'].) But the save method expects all the data

Re: URL some page .../id disappeared ?

2009-08-11 Thread euromark (munich)
well, in most cases (and mine: 100%) you use so called Affenformulare (http://de.wikipedia.org/wiki/Affenformular) or ape forms which have either no adress value or the own one (and post to themselves again) this is the usual cake way anyway - process it in the corresponding controller method

cake media plugin imagemagick adapter

2009-08-11 Thread Josoroma
Hi! Im using the media plugin adapter: http://wiki.github.com/davidpersson/media/configuration By default this plugin is working with the GD adapter (we have both GD and ImageMagick). For us everything works fine, but some uploaded images display a warning: ... gd-jpeg, libjpeg: recoverable

Re: How can I leave entered value even there is an errro and couldn't complete

2009-08-11 Thread leafchild book
Hi anurag, You are saying I have to get POST data manually instead of using validation ($this-Customer-validates())? If I set id, then all the new information is replace back with old information when coming back page with errors. Hi brian, I didn't use Containable, only I do is when I get data

Re: Uploading file issue - worning mkdir()

2009-08-11 Thread brian
Don't set the permissions wide open for webroot dir! That's not a good idea at all. What is the full path of the directory you want to upload to? I'm sorry, I'm not familiar with the plugin and don't understand your other question about the data. On Tue, Aug 11, 2009 at 4:06 AM,

Re: How can I leave entered value even there is an errro and couldn't complete

2009-08-11 Thread brian
I don't even know if you *can* set recursive to 6. Use Containable and specify exactly which associations you want. On Tue, Aug 11, 2009 at 1:44 PM, leafchild bookleafchild.b...@gmail.com wrote: Hi anurag, You are saying I have to get POST data manually instead of using validation

Re: Pagination Help

2009-08-11 Thread brian
If you place the markup that lists the posts in an element, you can specify to render just that, instead of the entire view, for AJAX requests. Here's an example that works for me. views/users/index.ctp: h1Member Directory/h1 ?= $this-element('users/pagination') ?

Re: Ajax Errors

2009-08-11 Thread Tony Thomas
I actually ending up using this: http://deadlytechnology.com/scripts/javascript/ajax-failure-callback/ It sends a 403 server error back if the transaction doesn't validate which triggers my error message in the view. On Aug 11, 2:50 am, Saliem than.sal...@gmail.com wrote: I am not quite sure

Re: Using Javascript link

2009-08-11 Thread Sarah
My original javascript code actually worked on a site (no setup with cakephp). The problem I'm having is linking everything together. I do appreciate the advice w/ the javascript though. :) --~--~-~--~~~---~--~~ You received this message because you are

Want to add another application in cake

2009-08-11 Thread Vijay
My old site is in simple php.We have developed a new version of that site using cakephp. Now we want to add the old site in the cakephp. But the google search gives the old site links.So i want to maintain the old site too along with new version which is in cakephp. Can anybody help me in this?

RE: Pagination Help

2009-08-11 Thread Dave Maharaj :: WidePixels.com
Perfect...the if ($this-RequestHandler-isAjax()) { $this-viewPath = 'elements/users'; $this-render('pagination'); } Did the trick. Thanks Dave -Original Message- From: brian [mailto:bally.z...@gmail.com] Sent: August-11-09 3:42 PM To:

Re: clearCache() unexpected behavior

2009-08-11 Thread gerhardsletten
Think it only deletes files under tmp/cache/views --~--~-~--~~~---~--~~ 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

Re: internationalization in model

2009-08-11 Thread tobi_one
Hi, for future reference, this is IMHO the most elegant solution for this problem: http://cake.eizoku.com/blog/?p=30#comment-8 Cheers, tobi_one On Jul 29, 4:07 am, Dr. Loboto drlob...@gmail.com wrote: With Model::invalidate() method reload you do not have such problems at all. On Jul 29,

server transfer problem

2009-08-11 Thread brian
I'm having some trouble getting a site working on another server. The people the client hired are using cPanel, PHP is installed as CGI, and mod_rewrite is not available. Additionally, I have to access their version of the site through an IP address plus a home subdirectory, eg:

Re: server transfer problem

2009-08-11 Thread Robert P
According to the comments in /app/config/core.php: 1. Delete ALL .htaccess files, and then 2. Uncomment the line that sets App.baseUrl in /app/config/core.php But then again, the only times I played around with CakePHP without mod_rewrite was pre-1.0 On Aug 12, 4:25 am, brian

Re: Want to add another application in cake

2009-08-11 Thread Hols Kay
You can use use mod_rewrite to redirect all the old urls to their Cake equivalents. http://www.yourhtmlsource.com/sitemanagement/urlrewriting.html On Aug 11, 7:43 pm, Vijay k.vidn...@gmail.com wrote: My old site is in simple php.We have developed a new version of that site using cakephp. Now

Re: server transfer problem

2009-08-11 Thread Jonathon Musters
Being a sys admin of a shared server a lot of cpanel servers do not server php on the. ~username. I would first check that On 8/11/09, Robert P shiftyrobs...@gmail.com wrote: According to the comments in /app/config/core.php: 1. Delete ALL .htaccess files, and then 2. Uncomment the line

Re: Sessions and Redirect

2009-08-11 Thread LS
Er... Sorry, you're right. My code example was wrong, but using ?php $this-Session-check ('key') ? it also returns false. It creates two sessions (entries) in the database (cake_sessions). What i'm doing exactly: 1. User comes from an external site (eg. google.com) to an user- protected page

Re: console cant connect to the database

2009-08-11 Thread Idalgo
hello, i got the same problem, and i am also using wamp as server, though i use sqlite for db it works perfectly fine from website (on handmade models) console was set like its shown in screencasts from cake bakery i would be thankfull if someone could solve our problem On 10 Sie, 09:43,

jquery / Ajax help

2009-08-11 Thread Dave Maharaj :: WidePixels.com
I have integrated jquery with my pagination but having trouble adding a history plugin . So if a user leaves the pagination page then clicks back in the browser it will load up where they left off. Has anyone added a feature like this to pagination and managed to get it working? Any help or

HTML helper in function?

2009-08-11 Thread Josh
Hi, I have the contents of a tree menu stored in a multi-dimensional array. The number of dimensions is not fixed, so to turn the array into a menu in the View file, I have set up a recurring function. This works fine except that I can't call the $html-link() from the function. Fatal error:

Re: HTML helper in function?

2009-08-11 Thread JamesF
if your controller is set up with var $helpers = array('html') ; you should be fine..that error is just telling you that cake can't find HtmlHelper...is there a reason you are executing that logic in your view and not the controller? On Aug 11, 7:02 pm, Josh joshs.silver...@gmail.com wrote: Hi,

Re: server transfer problem

2009-08-11 Thread JamesF
@brian would you mind pasting your index.php On Aug 11, 4:25 pm, brian bally.z...@gmail.com wrote: I'm having some trouble getting a site working on another server. The people the client hired are using cPanel, PHP is installed as CGI, and mod_rewrite is not available. Additionally, I have to

Is there a way to select an action from a double-click?

2009-08-11 Thread FrederickD
Thank you for your on-going support! There are a lot of good answers on this group. I've searched for this answer here and in the book but cannot find it. What is the best way to have the user select an action (RUD; read, update, delete) without a separate link at the end of the row, as in the

Re: internationalization in model

2009-08-11 Thread Alexandru Ciobanu
On 8/11/2009 10:16 PM, tobi_one wrote: Hi, for future reference, this is IMHO the most elegant solution for this problem: http://cake.eizoku.com/blog/?p=30#comment-8 Cheers, tobi_one On Jul 29, 4:07 am, Dr. Lobotodrlob...@gmail.com wrote: With Model::invalidate() method reload

Re: Fatal error: Class 'Dispatcher' not found - please help

2009-08-11 Thread Brett Wilton
We encountered this error on an CakePHP1.2 installation and found that it was related to the installed PHP version. It may be the same for you, PHP5.2 had a problem which was part of a debian install in our clients servers case. Hope that helps. http://wiltonsoftware.com

Encoding pluses in URL - Is my patch OK?

2009-08-11 Thread BeanDog
Due to the way Apache's mod_rewrite mismanages query string encoding, $_GET['url'] isn't what I'd hope it would be when there are pluses encoded (%2B) in the URL. It looks like replacing line 614 of dispatcher.php with the following works on my apache config: if(isset($_SERVER['REDIRECT_URL']))

Search function

2009-08-11 Thread Dave Maharaj :: WidePixels.com
I am building a new search function for a input single field. I have the basic set up running but as I move forward I want the user to be able to enter more than 1 word coma separated. How would I do this? spilt the $queryValues = $query split ',' So i now have an array of values that

Re: wrapper function not working!

2009-08-11 Thread armen
It's not working really. I tried it again... if you click on the second link, where you register a username and password, then by clicking the submit button, you should be redirected to the index page without any problems since I'm creating a session and redirecting.

Re: HTML helper in function?

2009-08-11 Thread Josh
The helpers are set and work fine. However, $html-link() does not work when called within a function in the view. As for where the logic is written: this is an element that appears in all admin tools throughout the site. requestAction() would allow me to put some of the logic in the controller,

Re: HTML helper in function?

2009-08-11 Thread JamesF
hmm im not sure if this will work but you could try in your element: App:import('Helper', Html'); $html = new html(); On Aug 11, 10:47 pm, Josh joshs.silver...@gmail.com wrote: The helpers are set and work fine. However, $html-link() does not work when called within a function in the view.

Re: HTML helper in function?

2009-08-11 Thread JamesF
hmm im not sure if this will work but you could try in your element: App:import('Helper', Html'); $html = new html(); does html helper work in other parts of your element outside the function? i usually have no problems at all using $html-link() within an element function. On Aug 11, 10:47 

Re: Multidimensional array as named argument

2009-08-11 Thread JamesF
i would just use implode on the array to set up my seperate arguments and turn it into a url string On Aug 11, 10:22 am, Tushar maniktus...@gmail.com wrote: Is it possible to pass an array through named arguments and have it accessible via $this-passedArgs? How would you convert an array as

Re: Is there a way to select an action from a double-click?

2009-08-11 Thread JamesF
really, really trying to understand what you are attempting here. On Aug 11, 7:47 pm, FrederickD manzanillo.engl...@gmail.com wrote: Thank you for your on-going support! There are a lot of good answers on this group. I've searched for this answer here and in the book but cannot find it.

Re: Encoding pluses in URL - Is my patch OK?

2009-08-11 Thread JamesF
well modifying the core in general is bad because it makes your app harder to debug and we can't really help you when you change the core . it's kind of like opening your ps2 and voiding the warranty, you might be able to install the mod chip, but it's no guarantee of future support. On Aug 11,

Re: Uploading file issue - worning mkdir()

2009-08-11 Thread leafchild book
I'm trying to upload to /webroot/img/uploads/ both /img and /uploads directory has permission 777 and getting an error: Warning (2): mkdir() [function.mkdir]: Permission denied [CORE/cake/libs/folder.php, line 466] so I commented out line 466 ~ 476 in folder.php file: /* if (mkdir($pathname,

Re: HTML helper in function?

2009-08-11 Thread JamesF
if you have time would you mind posting a test case or example code? i would love to see some more of the code in context just so I can improve my understanding of the issue. please let us know what works in the end for you it might help someone in the future On Aug 12, 1:09 am, Josh

Re: HTML helper in function?

2009-08-11 Thread Josh
It works fine outside of the function. I've run into this before; helper functions not working within View functions. Are you sure you've had that work in the past? I think the issue is that you normally (in models, controllers, components...) need to reference the object where the function is

Re: Want to add another application in cake

2009-08-11 Thread Vijay Kumbhar
Yes you are right hols But the old site have more that 100 urls. So how can it do it by mod_rewrite? On Wed, Aug 12, 2009 at 3:02 AM, Hols Kay hol...@googlemail.com wrote: You can use use mod_rewrite to redirect all the old urls to their Cake equivalents.

Re: Default values in select lists

2009-08-11 Thread jburns
This doesn't add a new value to the list, just selects one that's already there. I want the list to start of with a custom row that is not in the database (such as Please select a value) that will be selected by default (unless there is already a selection) and the rest of the list is drawn from

Currency precision

2009-08-11 Thread jburns
I'd like to take a number and display it as currency but with a defined precision - for example £100,000. I have tried the following: $number-currency($number-precision($property['Property']['price'], 0 ),'GBP') which nests the $number-precision function inside of the $number- currency

Re: wrapper function not working!

2009-08-11 Thread John Andersen
Please show the code for the view in which you are creating the form for the user to register him-/herself! Enjoy, John On Aug 12, 5:15 am, armen oldar...@gmail.com wrote: It's not working really. I tried it again... if you click on the second link, where you register a username and