Re: CakePHP 1.3.3 rainbow icing edition released

2010-07-18 Thread Graham Weldon
Swt! Thanks to all the contributors this time around, we have had a great constant stream of submissions from users. Cheers!! Graham / Predominant On Mon, Jul 19, 2010 at 1:11 PM, mark_story wrote: > The CakePHP development team is happy to announce the release of > CakePHP 1.3.3[1]. 1.3.3

Re: Notice (8): Undefined index: id [CORE\cake\libs\model\model.php, line 1325]

2010-07-18 Thread Graham Weldon
Did you have a question? Cheers, Graham / Predominant On Mon, Jul 19, 2010 at 5:01 AM, دل wrote: > Notice (8): Undefined index: id [CORE\cake\libs\model\model.php, line > 1325] > Code | Context > >                $success = (bool)$db->update($this, $fields, $values); >            } else { >    

Re: I forgot Bakery username

2010-07-18 Thread Graham Weldon
Can you email me directly with your email address used to register your bakery account? I can retrieve your username for you. Cheers, Graham / Predominant On Sun, Jul 18, 2010 at 9:35 PM, iWat wrote: > I registered an account in bakery.cakephp.org ... a few years ago. > Now, I can't remember my

Re: alt tag for text box

2010-07-18 Thread Master Ram
Ya. i am using CSS On Jul 15, 3:50 pm, Jeremy Burns | Class Outfit wrote: > I'm happy to be corrected, but I think the 'alt' tag only exists for images > (that's HTML, not Cake). > > Also interested to see you using inline styles - are you not using CSS? > > Jeremy Burns > Class Outfit > > jerem

How to find if findBy... is empty?

2010-07-18 Thread Louie Miranda
I have this code: $this->set('jobstatus', $this->Jobstatus->findByTrackingno($this->data['Jobstatus']['track'])); I was wondering how can I know if findByTrackingno is empty? So I could trigger an error without displaying the view? Thanks -- Louie Miranda - Email: lmira...@gmail.com - Web: htt

Re: saveAll changing $this->data

2010-07-18 Thread tersmitten
What's in $this->save? On 13 jul, 17:31, Shaz wrote: > Oo interesting - it's removed 5 from 'asked' ad added it onto saving > and confusion. Post up the $this->save() code so we can see whats > going on. > > On 13 July, 12:01, tersmitten wrote: > > > I'm trying to save my $this->data which is (a

Re: Media Plugin - Getting Started

2010-07-18 Thread randy
David, thanks for all the hard work, it is a great contribution! On Jul 9, 9:01 am, David Persson wrote: > The current documentation in the media plugin wiki isn't yet updated > to match with the upcoming 1.3 version of the plugin. The new version > will relax and (hopefully) simplify the expecte

"Error: schema.php could not be loaded"

2010-07-18 Thread StephenE
Hello, I am tying to set up the Acl according to the tutorial, but keep getting the above error. I am on ubuntu 10.4. My app name is cakeAcl and I am in /var/www/cakeAcl/app$ ... Anybody? I am stuck and cannot continue with the tutorial. Thanks! Check out the new CakePHP Questions site http:/

CakePHP 1.3.3 rainbow icing edition released

2010-07-18 Thread mark_story
The CakePHP development team is happy to announce the release of CakePHP 1.3.3[1]. 1.3.3 is a maintenance release for the 1.3 branch and contains bugfixes and optimizations for features found in 1.3. Since the release of CakePHP 1.3.0 last month, there have been more than 50 commits and 35 tickets

Re: Custom helpers not loaded

2010-07-18 Thread Dr. Loboto
Maybe it's stupid, but is this error on page of controller you posted $helpers? If this helper is used in layout, you should have it listed in AppController $helpers to make available for any controller. On Jul 16, 6:18 pm, Ragnis wrote: > After I moved from a shared hosting to a VPS cake 1.3.2 d

Re: A question to core developers

2010-07-18 Thread Ma'moon
Hello Graham, Thanks a lot for your kind answer, i was pretty sure that in no way there are any globals are being passed to extract inside Cake's core, i just wanted to make sure of that in order to show it to my "paranoid" client! Thanks again. Cheers, Ma'moon On Mon, Jul 19, 2010 at 2:30 AM, s

Re: Custom helpers not loaded

2010-07-18 Thread cricket
On Sun, Jul 18, 2010 at 5:32 AM, Ragnis Armus wrote: > Still the same error. > I still think that maybe problem is in php ocnfiguration. > My old php configuration: http://tantum.ee/phpinfo.php > The new one: http://gn18.zone.eu/phpinfo.php http://gist.github.com/478241 I doubt it has anything to

Re: Assign Profile When User Registers

2010-07-18 Thread cricket
On Sun, Jul 18, 2010 at 7:26 AM, Daniel M.K. wrote: > I know it seems to be a strange setup but this is what i need to do, i > have already got the profiles data already inserted in the database > and the users should only make an user account. > > I don't figure where to put that script that you

Re: Auth config problem

2010-07-18 Thread cricket
On Sun, Jul 18, 2010 at 4:47 AM, Felix Fennell wrote: > Ok, I just tried setting the loginRedirect and still nothing happens, > as in I'm not redirected, again there were no errors shown and I don't > know if the login was successful. Set debug to 2 so that you can at least see if Auth is correct

Re: A question to core developers

2010-07-18 Thread saidbakr
Hi, I need an example that demonstrates the security risk in a CakePHP application depends on extract!!! On Jul 19, 1:40 am, Graham Weldon wrote: > Extract is only ever used on settings and the like. > While we do a lot to ensure the security and safety of the framework, > we do not provide secur

Notice (8): Undefined index: id [CORE\cake\libs\model\model.php, line 1325]

2010-07-18 Thread دل
Notice (8): Undefined index: id [CORE\cake\libs\model\model.php, line 1325] Code | Context $success = (bool)$db->update($this, $fields, $values); } else { $fInfo = $this->_schema[$this->primaryKey]; $data = array( "CountryName" => "Hello

Doubt

2010-07-18 Thread anbu arasu
Dear cronies I had faced one error when I run cakephp, that is.. *Notice*: Trying to get property of non-object in *C:\xampp\htdocs\aha\cakephp\cake\libs\cache\file.php* on line *244* *Fatal error*: Call to a member function cd

I forgot Bakery username

2010-07-18 Thread iWat
I registered an account in bakery.cakephp.org ... a few years ago. Now, I can't remember my username anymore. I tried "Reset Password" (http://bakery.cakephp.org/users/reset), but it only gave me a password. Is there a way to retrieve my username ? Check out the new CakePHP Questions site http:/

is it possible to hold .ctp data in database and use it in view?

2010-07-18 Thread M
i was told to store some (or whole) of view file data in database so they can change it from phpMyAdmin. if it's just html, it's ok but tags would be there. cuz php tags in html, it can't eval. Is there any way to make php tags work? Check out the new CakePHP Questions site http://cakeqs.org and

Re: Find with no records in associated model

2010-07-18 Thread Graham Weldon
I'd store a counter cache on RatingEvent, to store the number of Ratings that event has. http://book.cakephp.org/view/1033/counterCache-Cache-your-count Then you can just query where ratings_count = 0 Cheers, Graham / Predominant On Sun, Jul 18, 2010 at 9:34 PM, DragonFlyEye wrote: > If I have

Re: A question to core developers

2010-07-18 Thread Graham Weldon
Extract is only ever used on settings and the like. While we do a lot to ensure the security and safety of the framework, we do not provide security for developers passing in globals and exposing potential security risks or issues. The core at no point will extract and override a global like $_FIL

Re: Re-writing all admin_add actions to admin_edit in 1.3

2010-07-18 Thread McBuck DGAF
There is an example of this here: http://www.pseudocoder.com/Super_Awesome_Advanced_CakePHP_Tips.pdf on p. 37. On Jul 17, 12:10 pm, Jamie wrote: > The best thing to do is to get rid of your admin_add functions and > just use admin_edit for everything. Making a route to direct 'add' to > 'edit'

Re: tinyint(1) versus boolean.

2010-07-18 Thread Dérico Filho
my bad it is told. :-) http://book.cakephp.org/view/743/MySQL On Jul 18, 3:54 pm, Dérico Filho wrote: > On Jul 17, 12:35 pm, AD7six wrote: > > > On Jul 16, 6:19 pm, Dérico Filho wrote: > > > > Hi > > > > Some of you might feel bugged when trying to access an TINYINT(1) > > > field in mysql

Re: tinyint(1) versus boolean.

2010-07-18 Thread Dérico Filho
On Jul 17, 12:35 pm, AD7six wrote: > On Jul 16, 6:19 pm, Dérico Filho wrote: > > > Hi > > > Some of you might feel bugged when trying to access an TINYINT(1) > > field in mysql with values different from 0 or 1. > > > It happens that CakePHP thinks TINYINT(1) is BOOLEAN. > > Look at the definit

Re: hosting problem

2010-07-18 Thread Sam Sherlock
the .gitignore files are not required by cake they tell git which files/dirs to ignore from versioning the presence or absence of these files should make no difference - S On 18 July 2010 06:45, fadhli - wrote: > " > > f you don't want or can't get mod_rewrite (or some other compatible modul

A question to core developers

2010-07-18 Thread Ma'moon
Dear CakePHP core developers, I have noticed that the "extract" function is being used in so many places all over the core files "more than 100", and as you know, the extract function is very dangerous to use according to the warning being mentioned in the documentation page @ php.net/extract , kin

Find with no records in associated model

2010-07-18 Thread DragonFlyEye
If I have a relationship where RatingEvent hasMany Ratings, how would I go about retrieving all records where there are no Ratings associated with a RatingEvent? Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. You received this mes

Re: Assign Profile When User Registers

2010-07-18 Thread Daniel M.K.
I know it seems to be a strange setup but this is what i need to do, i have already got the profiles data already inserted in the database and the users should only make an user account. I don't figure where to put that script that you have written cricket. If the user doesn't have the data in the

Discussion on optimizing-cakes-performance

2010-07-18 Thread saidbakr
I'd like to see an example regarding the Database Configuration. In other word an SQL structure dump. Sorry, it is just a new pie request. 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 su

HABTM and populating join table

2010-07-18 Thread Mariano C.
I have 2 tables books and authors, one join table authors_books. books and author tables have a primary key called id and other info fields. Join table has one pk called id and two fk called book_id and author_id. Book model is something like that: and Author model is pretty similar: I have fu

Re: find threaded problem

2010-07-18 Thread duderion
*bump* anyone having an idea? On 15 Jul., 14:32, duderion wrote: > hi guys, > > is it possible in cakephp to treat a table like threaded if my > parent_id has a different name ? > > i couldnt find any customization > > quick help would be cool > > yours sincerely,duderion:D Check out the ne

Re: Custom helpers not loaded

2010-07-18 Thread Ragnis Armus
Still the same error. I still think that maybe problem is in php ocnfiguration. My old php configuration: http://tantum.ee/phpinfo.php The new one: http://gn18.zone.eu/phpinfo.php http://gist.github.com/478241

Re: Auth config problem

2010-07-18 Thread Felix Fennell
Ok, I just tried setting the loginRedirect and still nothing happens, as in I'm not redirected, again there were no errors shown and I don't know if the login was successful. The only difference now that loginRedirect is set is after I click login and am sent back to the login page the password fi

Re: Auth config problem

2010-07-18 Thread Felix
Hi, I was under the impression that Auth would redirect to the controller and action they were trying to access before being redirected to the login page. If I specify a redirect will it apply to all controllers/actions using Auth, e.g. If I set the Auth redirect to "accounts/view" then someone