Re: save data problem

2010-07-29 Thread hoss7
thanks 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 cake-php@googlegroups.com To unsubscribe from t

Re: Where is the problem in my validations

2010-07-29 Thread Tilen Majerle
emm...error is non correct closed brackets of array -- LP, Tilen Majerle http://majerle.eu 2010/7/30 Master Ram...! > > > in the view : > > if(! empty($message)) { > > echo "".$message.""; > } > > if($form->isFieldError('Model_Name.field_name

Re: save data problem

2010-07-29 Thread bogdanv
Yes, can you contact me on the email, and sorry I don't have facebook account. On Jul 30, 8:25 am, hoss7 wrote: > if i have other problem can i ask you in other time? > can i send you email? > are you in facebook,can you add me (http://www.facebook.com/hhoss)? Check out the new CakePHP Questions

Re: saveAll does'nt work

2010-07-29 Thread Norman Paniagua
Can you put the model code? --- Norman Paniagua 2010/7/30 Jeremy > today, I find function saveAll can not work ,when save data into two > relations tables, blew is the data, > > Array > ( >[User] => Array >( >[username] => tester >[password] => 17acdc1ee8e4e

Re: Where is the problem in my validations

2010-07-29 Thread Master Ram...!
in the view : ".$message.""; } if($form->isFieldError('Model_Name.field_name')) { e($form->error ('Model_Name.field_name', null, array( 'class' => 'failure')));

Re: save data problem

2010-07-29 Thread hoss7
if i have other problem can i ask you in other time? can i send you email? are you in facebook,can you add me (http://www.facebook.com/hhoss)? Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. You received this message because you ar

saveAll does'nt work

2010-07-29 Thread Jeremy
today, I find function saveAll can not work ,when save data into two relations tables, blew is the data, Array ( [User] => Array ( [username] => tester [password] => 17acdc1ee8e4ed05e9d27fce4df6d4b5de036910 [email] => tes...@admin.com [co

Re: save data problem

2010-07-29 Thread hoss7
thank you, this function work for me, you are my hero 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: Validation errors not shown in a form

2010-07-29 Thread Norman Paniagua
Can you show your code? --- Norman Paniagua 2010/7/29 Roland Pish > Hi. > > Suddenly a form stopped showing the error messages with the class="error-message"> beside input fields with validation. > When a validation error occurs. If I debug($this->Themodel- > >validationErrors) it shows me th

Re: adding additional jquery functionality on cake 1.3

2010-07-29 Thread Jon Chin
Thanks a bunch! I read through the code snippet but haven't tried it yet. But I think this gives me a lot closer than anything else I've found on the web. I was hoping that there would be a way to utilize the Js helper rather than output to $scripts_for_layout. Thanks, though--this gives me a g

Validation errors not shown in a form

2010-07-29 Thread Roland Pish
Hi. Suddenly a form stopped showing the error messages with the beside input fields with validation. When a validation error occurs. If I debug($this->Themodel- >validationErrors) it shows me the errors but there is no anymore. What could be wrong? I don't remember changing anything in cake's

Re: Model like both ACO and ARO in ACL

2010-07-29 Thread AD7six
On Jul 29, 4:32 pm, "marco.rizze...@gmail.com" wrote: > Can you tell me how the model has to be configurated? well, I misread your question. I don't think the core behavior will allow act as both however you can just follow xander's lead. hth, AD Check out the new CakePHP Questions site http

Re: save data problem

2010-07-29 Thread bogdanv
I hope this help you public function save($data = null, $validate = true, $fieldList = array()) { $return = false; if (isset($data['Usercat']['subcat_id']) && is_array($data['Usercat'] ['subcat_id'])) { foreach ($data['Usercat']['subcat_id']

Getting Digest Authentication to Work

2010-07-29 Thread Michael
I am having difficulty getting digest authentication to work. The code works if I use basic, but when I switch to digest, the credentials don't authenticate (i.e. the browser username/password popup keeps displaying). I have tried to md5 hash the password and leave it plain text and neither works

Re: Editing .xls files

2010-07-29 Thread srumjant
Thanks, It was really helpful tip. I found on bakery helper for that too and modified it for my needs. http://bakery.cakephp.org/articles/view/simple-excel-spreadsheet-helper I left modifed version is in comments. On Jul 28, 11:56 am, Tonu Tusk wrote: > Hi there, this might be overkill for your

cakephp cron job tutorial

2010-07-29 Thread hoss7
i need cakephp cron job tutorial? 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 cake-php@googlegroup

Re: PHP 5.2 no longer supported (Implications for cake 2.0) ??

2010-07-29 Thread Zaky Katalan-Ezra
I couldn't agree more. I would transfer namespaces to phase one. namespaces are key consept when developing frameworks and libraries. These feature you mentioned in phase one are trivial in "real OOP" languages like Python, Java and C#, the lake of them make OOP developer think PHP is not a real pr

Re: problem select menu with "optgroups"

2010-07-29 Thread hoss7
thank you,you are my hero, can i ask you one question about my problem to save data? if you want help me please see this link: http://groups.google.com/group/cake-php/t/6749e1ba04af243a Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions

Re: save data problem

2010-07-29 Thread hoss7
i have this array and user can choice many subcat: Array ( [Usercat] => Array ( [subcat_id] => Array ( [0] => 3 [1] => 1 ) [user_id] => 7 ) ) you say i can use this: function sa

Re: Amazon FPS integration

2010-07-29 Thread Nabil Alsharif
Not unless google has something good It shouldn't be to hard to make your own. On Wed, Jul 28, 2010 at 5:41 PM, FandaR wrote: > Hello, isnt there some cakephp component for Amazon payment gateway? > I need to use Amazon reccuring payments on cakephp site. > > Any help will be appreciated > Th

Re: save data problem

2010-07-29 Thread bogdanv
Sorry parrent = parent :) On Jul 29, 7:58 pm, bogdanv wrote: > in the Usercat model create method save like in the  cake/libs/model/ > model.php > > function save($data = null, $validate = true, $fieldList = array()) { >   put your code here >   then > >   return parrent:: save($data, $validate,

Re: save data problem

2010-07-29 Thread bogdanv
in the Usercat model create method save like in the cake/libs/model/ model.php function save($data = null, $validate = true, $fieldList = array()) { put your code here then return parrent:: save($data, $validate, $fieldList) ; or put parrent:: save(..) into a cycle depending what you w

Re: Where is the problem in my validations

2010-07-29 Thread euromark
you might wanna "re-read" Tilen Majerle's answer... On 29 Jul., 18:25, CakeMan wrote: > Well, Validations are working perfectly (giving error message) except > that error in 2571 line with this "NonEmpty" ??? Strange ?? > > On Jul 29, 1:12 pm, Tilen Majerle wrote: > > > > > yes, u have itit

Re: Where is the problem in my validations

2010-07-29 Thread CakeMan
Well, Validations are working perfectly (giving error message) except that error in 2571 line with this "NonEmpty" ??? Strange ?? On Jul 29, 1:12 pm, Tilen Majerle wrote: > yes, u have itit is not "NonEmpty" but is "notEmpty" xD > -- > LP, > Tilen Majerlehttp://majerle.eu > > 2010/7/29 CakeMa

Re: Controller not working on live site

2010-07-29 Thread cricket
On Thu, Jul 29, 2010 at 10:59 AM, meekamoo wrote: > Yeah had a look at apache error logs - nothing there at all. No > errors. > > I have found the problem line (I have NO idea how this can be broken) > >    $data = $this->paginate('Property'); > > If I do this: > >    pr($this->paginate); >    $da

Re: problem select menu with "optgroups"

2010-07-29 Thread cricket
On Thu, Jul 29, 2010 at 6:45 AM, hoss7 wrote: > can you convert $form->select to $form->input in view? In some cases, yes, FormHelper will create a select list with the input() method. It depends on what you pass to it. I prefer to use select() as it's more intuitive. Check out the new CakePHP Q

Re: problem select menu with "optgroups"

2010-07-29 Thread cricket
On Thu, Jul 29, 2010 at 6:14 AM, hoss7 wrote: > @circket you fix my problem,i have litle problem i need like this: > > input('field', array('options' => array(1,2,3,4,5), > 'empty' => '(choose one)')); ?> > > use 'empty' => '(choose one)' in echo $form->select('category_id', > $options); what i am

Re: problem select menu with "optgroups"

2010-07-29 Thread cricket
On Thu, Jul 29, 2010 at 3:01 AM, hoss7 wrote: > i have cakephp 1.3.2 i cant use this: > $this->set(compact($options)); > i fix my "Undefined variable: options" error with this: > $this->set(compact('options')); > > but thank you Sorry about that. I missed the "$" in there. My bad. Check out the

Re: Controller not working on live site

2010-07-29 Thread meekamoo
Yeah had a look at apache error logs - nothing there at all. No errors. I have found the problem line (I have NO idea how this can be broken) $data = $this->paginate('Property'); If I do this: pr($this->paginate); $data = $this->paginate('Property'); Then it just prints out the pag

Re: Controller not working on live site

2010-07-29 Thread Dr. Loboto
Something on this URL issues error 500, Apache tries to show appropriate error page, but there is no 500.shtml in your webroot, so Cake catch this request and looks for "500.shtml" controller. Check Apache error log. On Jul 29, 7:01 pm, meekamoo wrote: > Forgot to mention that I have looked in:

Re: Model like both ACO and ARO in ACL

2010-07-29 Thread marco.rizze...@gmail.com
Can you tell me how the model has to be configurated? On 29 Lug, 15:04, AD7six wrote: > On Jul 29, 1:16 pm, "marco.rizze...@gmail.com" > > wrote: > > Can someone some suggestion for me? > > Yes. Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP relat

Re: Model like both ACO and ARO in ACL

2010-07-29 Thread Xander
I didn't find any predefined way to set the model as both Aco & Aro, so I made it Aco only and I added some code to afterSave() (when $created is true) and beforeDelete() callbacks wich creates and deletes aro nodes. On 29 Lip, 13:16, "marco.rizze...@gmail.com" wrote: > Can someone some suggestio

Re: time helpers question

2010-07-29 Thread Mike Karthauser
On Wed, July 28, 2010 5:48 pm, amititi wrote: > Hello, I'm learning cake using the "Beginning CakePHP: From Novice to > Professional" and i got to a point where it gives me an exercise and i > can't figure it out. It look like these : > > "use the nice() function to make the > $post['Post']['date'

Re: save data problem

2010-07-29 Thread hoss7
@bogdanv can you show me,i am new in cakephp,if you want more information just aks? 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

Re: cakePHP and XAMPP portable

2010-07-29 Thread Tilen Majerle
is mysql server running? -- LP, Tilen Majerle http://majerle.eu 2010/7/29 Haretuerk > Hi folks, > > i have problems running cakePHP on an XAMPP portable installation on > an USB-Stick. > Despite the setting in the database.php are correct it is not possible > to connect to the MySQL database. >

Re: Email Component

2010-07-29 Thread AD7six
On Jul 29, 3:25 pm, huoxito wrote: > Yes i got that, but what i found strange is that the cakebook says we > have to create 'html' and 'text' in both views and elements > directory Where does it say that ( I think you're misreading something ). > > besides why would i use both 'text' and '

Can't find post

2010-07-29 Thread Alexandru Amititeloae
Hello, i've starded a post a few days ago and i can't seem to find it. It was something related to time helpers nice() function, and i was looking forward to other users responses cand u help me ? Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP relate

Re: save data problem

2010-07-29 Thread bogdanv
You can override method save in the model. On Jul 29, 3:48 pm, hoss7 wrote: > i have this array: > > Array > ( >     [Usercat] => Array >         ( >             [subcat_id] => Array >                 ( >                     [0] => 3 >                     [1] => 1 >                 ) > >        

cakePHP and XAMPP portable

2010-07-29 Thread Haretuerk
Hi folks, i have problems running cakePHP on an XAMPP portable installation on an USB-Stick. Despite the setting in the database.php are correct it is not possible to connect to the MySQL database. Error message: Cake is NOT able to connect to the database. But the database is definitly running

Amazon FPS integration

2010-07-29 Thread FandaR
Hello, isnt there some cakephp component for Amazon payment gateway? I need to use Amazon reccuring payments on cakephp site. Any help will be appreciated Thank You Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. You received this

add logged user infos in the setFlash message after login

2010-07-29 Thread Melody Nelson
hi (and sorry for my english), I'm using cake 1.3 I don't find how I can add infos of the logged user in the setFlash message after the login I found how to do it in views but I want to do it in the controller to use it a growl message function login() { $txt = "bla bla bla "; /

using cakephp Bake

2010-07-29 Thread rusik
Hello, when i am using bake(from cmd in windows7,xampp),when i am finishing db configuration, i see the error: --- The following database configuration will be created: --- Name:

time helpers question

2010-07-29 Thread amititi
Hello, I'm learning cake using the "Beginning CakePHP: From Novice to Professional" and i got to a point where it gives me an exercise and i can't figure it out. It look like these : "use the nice() function to make the $post['Post']['date'] value more readable. Hint: you’ll need to pass the varia

Re: Email Component

2010-07-29 Thread huoxito
Yes i got that, but what i found strange is that the cakebook says we have to create 'html' and 'text' in both views and elements directory besides why would i use both 'text' and 'html' if one of them is enough to customize my emails... and when we set the template using the Email Component

Re: Best place to put constants?

2010-07-29 Thread Hugo M
Thanks! Yeah I thought that bootstrap could be for that, thanks! 2010/7/27 Dr. Loboto : > bootstrap.php is for this purpose. Other files may be needed too if > you need to setup a lot of data. > Better do not touch core.php with custom variable set as it may change > with Cake update and yours cod

Re: Model like both ACO and ARO in ACL

2010-07-29 Thread AD7six
On Jul 29, 1:16 pm, "marco.rizze...@gmail.com" wrote: > Can someone some suggestion for me? Yes. 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 "CakePH

save data problem

2010-07-29 Thread hoss7
i have this array: Array ( [Usercat] => Array ( [subcat_id] => Array ( [0] => 3 [1] => 1 ) [user_id] => 7 ) ) if i have subcat array i cant use this for save all data for one user

Re: Controller not working on live site

2010-07-29 Thread meekamoo
Forgot to mention that I have looked in: app_controller.php app_model.php core.php bootstrap.php routes.php And I cant't find anything there that would cause this? On Jul 29, 1:58 pm, meekamoo wrote: > Hey guys, > > Have a weird problem here - site works fine on local server but as > soon as I

Controller not working on live site

2010-07-29 Thread meekamoo
Hey guys, Have a weird problem here - site works fine on local server but as soon as I upload it to the live site I have this very strange problem. I have a properties controller (guessed it, a property site). When I view /properties/index on local site it correctly displays all the properties.

Re: Model like both ACO and ARO in ACL

2010-07-29 Thread marco.rizze...@gmail.com
Can someone some suggestion for me? Thanks On 29 Lug, 09:41, "marco.rizze...@gmail.com" wrote: > Hi is it possible use a model in Acl both ARO and ACO? > Thanks > Marco Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. You rec

Re: problem select menu with "optgroups"

2010-07-29 Thread hoss7
can you convert $form->select to $form->input in view? 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: PHP 5.2 no longer supported (Implications for cake 2.0) ??

2010-07-29 Thread keymaster
> I think it would be nice to see cake 2.0 follow Li3 and Symfony's > direction and push the boundaries a bit by moving to 5.3> only. Anyway you cut it, regardless of whether cake 2.0 is >5.3 only, or 5.2+, there is still an incredibly urgent need for an interim release to get the antiquated php4

Re: problem select menu with "optgroups"

2010-07-29 Thread hoss7
@circket you fix my problem,i have litle problem i need like this: input('field', array('options' => array(1,2,3,4,5), 'empty' => '(choose one)')); ?> use 'empty' => '(choose one)' in echo $form->select('category_id', $options); what i am must to do? Check out the new CakePHP Questions site http

Re: Where is the problem in my validations

2010-07-29 Thread Tilen Majerle
yes, u have itit is not "NonEmpty" but is "notEmpty" xD -- LP, Tilen Majerle http://majerle.eu 2010/7/29 CakeMan > Hi, > > Is there any problem with this Validation array in my model : > > var $validate=array > ( > 'email'=> a

Where is the problem in my validations

2010-07-29 Thread CakeMan
Hi, Is there any problem with this Validation array in my model : var $validate=array ( 'email'=> array (

Model like both ACO and ARO in ACL

2010-07-29 Thread marco.rizze...@gmail.com
Hi is it possible use a model in Acl both ARO and ACO? Thanks Marco 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 gr

Re: Email Component

2010-07-29 Thread Louie Miranda
Try this.. class AccountsController extends AppController { var $name = "Accounts"; var $components = array('Email'); function email() { $this->Email->from= 'Somebody '; $this->Email->to = 'Louie Miranda '; $this->Email->subject = 'Test / Developer Cod

Re: problem select menu with "optgroups"

2010-07-29 Thread hoss7
i have cakephp 1.3.2 i cant use this: $this->set(compact($options)); i fix my "Undefined variable: options" error with this: $this->set(compact('options')); but thank you Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. You receive