Re: Convert simple threaded to a tree

2013-08-08 Thread Mohammad Naghavi
Thanks! that saved my life ;) Java C# desktop developer PHP web developer www.mohamnag.com On Wed, Aug 7, 2013 at 8:11 PM, euromark dereurom...@gmail.com wrote: If you already got the parent_id filled out, just use the recover functionality of the

Re: 3.0: a peek into CakePHP's future

2013-08-08 Thread Muhammad Arslan
It will return both i.e arrays and objects. On Friday, July 6, 2012 6:17:18 PM UTC+5, Marsson wrote: Does it mean Cake 3.0´s Model will return objects instead of arrays ? On Fri, Jul 6, 2012 at 6:33 AM, Kazik kaz...@gmail.com javascript:wrote: On Friday, July 6, 2012 4:36:03 AM UTC+2,

Problem with save method

2013-08-08 Thread kapil agrawal
Hi! I am a new bee in cakePHP, look at following scenario I have following tables structure --- *Table name: events* Field Type Null Default

Re: after div closing tag form ends

2013-08-08 Thread mreza_golestan
echo $this-Form-create('Page'); echo $this-Form-input('slug'); echo $this-Form-input('title'); echo $this-Form-input('content'); ؟ /div ?php echo $this-Form-input('view_show'); echo $this-Form-end('Save'); ? in the above code view_shop field and Submit button is not in the form because

Re: Problem with save method

2013-08-08 Thread Irfan sheikh
do this try like this $this-request-data['Event']['name'] = $this-request-data['Event']['name']; $this-request-data['Event']['venue'] = $this-request-data['Event']['venue']; and then do save all.. $this-Event-save($this-request-data); in this way only name and venue will be

Re: Problem with save method

2013-08-08 Thread Andras Kende
$this-request-data['Event]['image] = false; OR unset($this-request-data['Event]['image]); $this-Event-save($this-request-data); Andras Kende On Aug 7, 2013, at 6:01 AM, kapil agrawal kapilagrawal...@gmail.com wrote: Hi! I am a new bee in cakePHP, look at following scenario I have

Re: configure subdomains with cakephp

2013-08-08 Thread naresh . b
Add like this in .htaccess file of root directory IfModule mod_rewrite.c RewriteEngine on RewriteCond %{HTTP_HOST} ^(www\.)?domain.com$ RewriteRule^$ app/webroot/[L] RewriteCond %{HTTP_HOST} ^(www\.)?domain.com$ RewriteRule(.*) app/webroot/$1 [L] /IfModule it will

Re: after div closing tag form ends

2013-08-08 Thread Simon Males
Put the following just before the end() call? ?php echo $this-Form-submit('Save'); ? On Wed, Aug 7, 2013 at 6:40 PM, mreza_golestan mreza_goles...@yahoo.com wrote: echo $this-Form-create('Page'); echo $this-Form-input('slug'); echo $this-Form-input('title'); echo $this-Form-input('content');

question about recursive

2013-08-08 Thread Хамит Рахимкулов
I'm new with cake php, but i have a problem that i can't fix... Can i somehow sort data that gets by this attribute? i'm getting that array *array( (int) 0 = array( 'Category' = array( 'id' = '3', 'name' = 'Материал',

Re: configure subdomains with cakephp

2013-08-08 Thread euromark
seems to me like you are modifying the wrong htaccess file the relevant one is the one in the webroot dir. Am Mittwoch, 22. August 2012 21:04:15 UTC+2 schrieb Ogalav: I am creating a subdomain chat.sitio.com but I do not understand why the error occurs internarl I've been checking the

RE: question about recursive

2013-08-08 Thread Advantage+
Category model assuming Category hasMany Type : public $hasMany = array( 'Type' = array( 'className' = 'Type', 'order' = 'Type.order ASC' //DESC depending on how you want them ordered ) ); Check the section on linking models

Re: question about recursive

2013-08-08 Thread Хамит Рахимкулов
thx you a lot!!)) that was realy stupit problem i read that section, but didn't see the answer -- 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.

Security and Ajax

2013-08-08 Thread Advantage+
I know forms submitted via ajax that the security component does not work. (Checking for edits / tampering) What is the reason for this? I understand if you add fields dynamically why it would not work because of the hashed fields when the form is rendered. But if you are simply sending a

Complex query not possible using Cakephp?

2013-08-08 Thread Pablito Pablito
Hello everyone, I have a complex query for summarizing data that looks like: $sql = 'SELECT severity, SUM( IF( c.name = ABC, 1, 0 ) ) AS ABC, SUM( IF( c.name = XYZ, 1, 0 ) ) AS XYZ, FROM

Re: Security and Ajax

2013-08-08 Thread Jeremy Burns : Class Outfit
Because the keys are 'use once', so when submitted by ajax become invalid. See this page for a solution: http://book.cakephp.org/2.0/en/core-libraries/components/security-component.html#SecurityComponent::$csrfUseOnce Jeremy Burns Class Outfit http://www.classoutfit.com On 8 Aug 2013, at