Re: Form Uploaded Image not exist when Edit form

2014-07-17 Thread CUCULEAC STEFAN
Hello Kimi. What i did was to show the image if exist, when edit, and if you not upload other,do nothing: Edit page echo $this-Html-image(user_icons/.$photo, $options = array('alt' = 'Icon User', 'width' = '150px')); echo $this-Form-input('User.photo', array('type' = 'file'));

Get the base url in CakePHP

2014-07-17 Thread Ravi Saxena(Nethues)
if you do want to get the base url in Cakephp. Use following code : *echo Router::url('/', true)* It will return exact website url of your website. -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- You received this message because

CakePHP 2.5 (linux) con SQLServer 2005

2014-07-17 Thread Franco Capra
Hola, trabajo en Ubuntu con cakephp 2.5 y necesito conectarme a una Base de Datos en un Servidor de Windows con SQLServer 2005. El problema es que desde el Framework no puedo conectarme, me muestra el siguiente Mensaje: CakePHP is NOT able to connect to the database. Datasource class SqlServer

Re: Data Validation: Checking if at least one field is populated and multiple rules not validating

2014-07-17 Thread seba
Thanks very much Stephen. I kept at it and found the solution lay in removing the 'required' and 'allowEmpty' from the 'needOne' ruleset, and adding a 'required' = false in the view. Here's the working solution for any one else with this problem: The model: public $validate = array(

fatal error after baking application using cakephp 3.0

2014-07-17 Thread raji gudivada
Hi I am new to cakephp and i used baking concept for my tables. Now i got pages generated but i am unable to do edit and view actions.I am getting error as Unsupported operand types D:\xampp\htdocs\lib\Cake\View\Helper\FormHelper.php Line:1802. Please help me. Thanks in advance. --

Re: fatal error after baking application using cakephp 3.0

2014-07-17 Thread José Lorenzo
That error does not correspond to CakePHP 3.0 What version are you actually using? On Thursday, July 17, 2014 2:45:39 PM UTC+2, raji gudivada wrote: Hi I am new to cakephp and i used baking concept for my tables. Now i got pages generated but i am unable to do edit and view actions.I am

Re: fatal error after baking application using cakephp 3.0

2014-07-17 Thread raji gudivada
Sorry i am using cakephp 2.5.o version On Thursday, July 17, 2014 6:15:39 PM UTC+5:30, raji gudivada wrote: Hi I am new to cakephp and i used baking concept for my tables. Now i got pages generated but i am unable to do edit and view actions.I am getting error as Unsupported operand

Re: fatal error after baking application using cakephp 3.0

2014-07-17 Thread raji gudivada
Sorry @ jose Lorenzo My current version is cakephp 2.5.0. -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- You received this message because you are subscribed to the Google Groups CakePHP group. To unsubscribe from this group

Re: fatal error after baking application using cakephp 3.0

2014-07-17 Thread euromark
So what is in that line? debug() it properly Am Donnerstag, 17. Juli 2014 15:10:13 UTC+2 schrieb raji gudivada: Sorry @ jose Lorenzo My current version is cakephp 2.5.0. -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- You

Re: fatal error after baking application using cakephp 3.0

2014-07-17 Thread José Lorenzo
Please update to the lastest 2.5 version, what you experience is a known bug of that version On Thursday, July 17, 2014 3:10:13 PM UTC+2, raji gudivada wrote: Sorry @ jose Lorenzo My current version is cakephp 2.5.0. -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on

problem in sending pdf file as attchment on the fly

2014-07-17 Thread JAYESH TANK
Hello All, I am facing one problem. I want to send an email with attachment. I have to create a pdf file on the fly means on click of link -create pdf -send as an attchment. and it should be done using ajax. I am using dompdf to create PDF file. so is there any solution to achieve this? --

Re: problem in sending pdf file as attchment on the fly

2014-07-17 Thread euromark
Dup of http://stackoverflow.com/questions/24804976/send-runtime-generated-pdf-in-attchment-in-email It is still very unclear as it is currently asked Am Donnerstag, 17. Juli 2014 15:08:13 UTC+2 schrieb JAYESH TANK: Hello All, I am facing one problem. I want to send an email with

Re: Magic of UpdateAll

2014-07-17 Thread Maicon Pinto
This can help you? $this-Picture-query(UPDATE User SET status='active';); Em terça-feira, 17 de junho de 2014 09h10min30s UTC-3, સાદીકહસન પલસાણીયા escreveu: $this-loadModel('User'); $this-User-updateAll(array('stauts'='active'),array()); Above code equvivalent SQL query is generated like

How to calculate in array from $this-model-updateAll()?

2014-07-17 Thread Sam Clauw
I try to do an update all in my add action with the following method: $this-CmsPage-updateAll( array( 'CmsPage.rgt' = *('CmsPage.rgt' + 2)* ), array( 'CmsPage.rgt ' = $right ) ); Unfortunately, i'ts not working. It keeps sending the value 2 to the rgt

3.x - SecurityComponent and View Cell

2014-07-17 Thread mark_story
I don't think cells are going to be a good fit for either of these use cases. The general consensus on the github issse is that having cells be isolated is more useful than having them share state with the containing view scope. -mark -- Like Us on FaceBook https://www.facebook.com/CakePHP

Re: 3.x - SecurityComponent and View Cell

2014-07-17 Thread Thomas von Hassel
Yeah, it makes sense .. How about being able to give the cell a specific view in those cases where you know what you are doing ? /thomas On 18 Jul 2014, at 02:12, mark_story mark.st...@gmail.com wrote: I don't think cells are going to be a good fit for either of these use cases. The