Re: undefined index error

2012-08-20 Thread mohit kumar
yeah the problem got solved. I was making a basic error. Thanks for support :) *With Best Regards, Mohit Kumar * *+91-9582894570* On Mon, Aug 20, 2012 at 10:08 AM, Bharat Maheshwari < bharat.maheshw...@logicspice.com> wrote: > As you use all in $current_roster = $this-

Re: undefined index error

2012-08-19 Thread Bharat Maheshwari
As you use all in $current_roster = $this->Weeklyroster->find('all', array('conditions' => array('Weeklyroster.week' => $id))); so it is creating following structure :- array( [0] array( ['Weeklyroster'] array(

Re: undefined index error

2012-08-16 Thread ivnrmc
I suppose you tried debugging your variable, but if you get undefined index, you should check if this array actually contains some data. Debugging inside controller, and debugging $this->data is a good way to find out what is going on... If you still have problems, please provide more info and c

Re: undefined index error

2012-08-14 Thread mohit kumar
I tried that also using a for each. still having some problems with it. *With Best Regards, Mohit Kumar * *+91-9582894570* On Tue, Aug 14, 2012 at 7:39 PM, Dave M. wrote: > I suggest you throw a debug($weeklyroster) into your view to see how the > array is actually stru

Re: undefined index error

2012-08-14 Thread Dave M.
I suggest you throw a debug($weeklyroster) into your view to see how the array is actually structured. I would assume that you would want $weeklyroster[0]['Weeklyroster']['week'], $weeklyroster[1]['Weeklyroster']['week'], etc. On Monday, August 13, 2012 11:39:37 AM UTC-4, mohit wrote: > > Hi F

Re: Undefined index after web host install.

2012-06-30 Thread Guti Grewal
Right I've done the info.php and file uploads are turned on and you are absolutely right, there is a max file size of 2mb for an upload. Thanks for helping me figure that one out :) Much appreciated. On Thursday, 28 June 2012 22:34:09 UTC+1, Guti Grewal wrote: > > Hi I've uploaded my website on

Re: Undefined index after web host install.

2012-06-29 Thread lowpass
On Fri, Jun 29, 2012 at 3:01 PM, Guti Grewal wrote: > Notice (8): Undefined index: Upload [APP/Controller/UploadsController.php, > line 32] > > /app/Controller/UploadsController.php (line 32) > > null > > > This is what I get, when I do the debug, so Im guessing theres no errors > with the coding

Re: Undefined index after web host install.

2012-06-29 Thread Guti Grewal
*Notice* (8): Undefined index: Upload [*APP/Controller/UploadsController.php*, line *32*] */app/Controller/UploadsController.php* (line *32*) null This is what I get, when I do the debug, so Im guessing theres no errors with the coding. Where else could the error be. It works fine in loc

Re: Undefined index after web host install.

2012-06-29 Thread lowpass
It looks to me like your code is expecting a key, 'Upload' in the request data. What does your form look like? Also, debug($this->request-data) On Thu, Jun 28, 2012 at 5:34 PM, Guti Grewal wrote: > Hi I've uploaded my website on a free hosting site called 000webhost, it > works fine on localhost

Re: Undefined index error in controller

2012-04-12 Thread Daniel
I found the problem, stupidly I had two copies of the ctp file in my project, in different directories, and I was editing the wrong one. After I deleted the extra file and edited the "right" file, no suprise the problem went away. -- Our newest site for the community: CakePHP Video Tutorials htt

Re: Undefined index error in controller

2012-04-05 Thread Tilen Majerle
ur cake version is ? and instead of this Form->create('Image', array('enctype' => 'multipart/ form-data')); ?> use Form->create('Image', array('type' => 'file')); ?> and in your controller simply debug $this->request->data to see what data you have posted -- Lep pozdrav, Tilen Majerle http://m

Re: Undefined index error in controller

2012-04-05 Thread Jeremy Burns | Class Outfit
You are trying to access the 'Image' key of an array in line 31 of your images_controller, but the array key does not exist. How do I know this? Because I read the error message. Jeremy Burns Class Outfit http://www.classoutfit.com On 5 Apr 2012, at 16:48:15, Daniel wrote: > I get the followi

Re: Undefined index with associated afterFind()

2012-02-21 Thread jeremyharris
Well for one you're calling a find twice, once in $this->Quote->find('all') and again in $this->paginate(). You only should be calling $this->paginate() which will perform the find for you, and limit the results to the pagination settings. -- Our newest site for the community: CakePHP Video Tu

Re: Undefined index with associated afterFind()

2012-02-21 Thread Ralph stokes
Well my associations are: Rate - hasManyProducts Product - belongsTo Material, belongsTo Rate, hasAndBelongsToMany Quote Quote - belongsTo Product Material - hasManyProducts In QuotesController index function I have: $quotes = $this->Quote->recursive = 2; if ($this->Sessi

Re: Undefined index with associated afterFind()

2012-02-16 Thread jeremyharris
Let's see your model associations set up, where the afterFind is, and what find call you are using. That will probably give me a better understanding of what's going on. Also have you looked at virtual fields? They might be an answer to your problem. -- Our newest site for the community: Ca

Re: Undefined index with associated afterFind()

2012-02-16 Thread Ralph stokes
Rodrigo: Pre-calculation is not an option as all products in the system would have to be recalculated when core values are changed. I tried doing that originally and it was very,, very messy. Jeremy: Thanks, i've tried the recursion and contain properties with no luck. Whatever I try the Produ

Re: Undefined index with associated afterFind()

2012-02-16 Thread Rodrigo Rodrigues Moyle
A better way is pre-calculate the values and save on database. -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from this gr

Re: Undefined index with associated afterFind()

2012-02-15 Thread jeremyharris
Maybe your original find didn't include that association. Check recursive or contain to make sure it should be included in the first place. Then debug the results in afterFind and the results where you originally called the find. -- Our newest site for the community: CakePHP Video Tutorials

Re: Undefined index Error

2011-09-25 Thread WebbedIT
As the error clearly states, on line 43 of your view code you are trying to access an undefined index (variable or array). Find line 43 (we're not going to do that for you as the block of code is now poorly formatted due to Google Groups width restrictions) and make sure you're setting the variabl

Re: Undefined index

2010-04-02 Thread newbie
right! when using findAllBy i had: [audits] => Array ( [0] => Array ( [Audit] => Array but with form and my owne query [audits] => Array ( [0] => Array

Re: Undefined index

2010-04-02 Thread WebbedIT
This is because you are using Model::query and not declaring your tables as cake would expect hence the arrays are returned with different keys that you are used to when returning data with Model::find (singular camelcased versions of your table names). Now I can see you are running subqueries so

Re: Undefined index

2010-04-01 Thread kani
// line 32 TO debuger result example: [viewVars] => Array ( [audits] => Array ( [0] => Array ( [audits] => Array // "S" Look this line !!! Check out the new CakePHP Questions sit

Re: Undefined index

2010-03-31 Thread John Andersen
Please look at the code at line 32 from the indexsln.ctp file. Compare the index names with the expected structure. Do you really have an index named "Endpoint"? If you still can't see the error, then please show the code at line 32, so we also may be able to look at it :) Enjoy, John On Mar 31

Re: Undefined index

2010-03-30 Thread Ed Propsner
I appreciate you taking the time Paul but there won't be a need for a test case. The idea of the Cake developers putting together such an intricate framework and not allow you to perform the most basic functions with form components is just ridiculous and highly unlikely. I too agree with something

Re: Undefined index

2010-03-29 Thread WebbedIT
I will set up a test case for a user form and observe field when I get the chance as I'm sure it should work. Will get back to you with my findings. And to strongly second something Jeremy touched on, if using cake simply go with the conventions as much as possible, they make life so much easier.

Re: Undefined index

2010-03-28 Thread Ed Propsner
I had things a bit backwards. Username and Password fields are in fact present in the array when the form submits to the add action (however the password was plain text and not hashed when saved). The problem I was encountering is pulling the data from the fields before the form is even submitted.

Re: Undefined index

2010-03-28 Thread Jeremy Burns
I endorse what Paul says. I, too, had built up my own library of code, but it got so complex (and probably not very good!) and I always seemed to be building and improving the library each time I faced a new challenge rather than developing my apps. This slowed down my delivery rate, and led me

Re: Undefined index

2010-03-28 Thread WebbedIT
Can you explain why you believe Cake/Auth is removing Username and Password? Can you boil this down to a very simple code example where a non ajax form submits all fields and your ajax form submits all fields minus the username and password? I have designed many sites with Cake and never had such

Re: Undefined index

2010-03-27 Thread Ed Propsner
I'm finding that the 'Auth' component is removing 'password' and 'username' from the data array for security purposes. This poses a problem if I want to access that data via Js/Ajax before the form actually submits. Renaming those fields bypasses this problem but it also creates a ripple affect and

Re: Undefined index

2010-03-27 Thread Ed Propsner
Am I missing something here with the way Cake handles password fields ?? I ended up just writing my own js function to pull the values I wanted from the form and pass them into the controller. Oddly enough it still wouldn't recognize the password field ... well not so much that it wasn't being rec

Re: Undefined index

2010-03-27 Thread WebbedIT
Your answer is in the cookbook :o) http://book.cakephp.org/view/630/observeField By default observeField serialises the field you are observing only. The last info box on the above page though states: To send up the entire form when the field changes use $options['with'] = Form.serialize( $('Fo

Re: Undefined index

2010-03-26 Thread Jeremy Burns
I'm no Ajax expert, but that sounds about right! Jeremy Burns jeremybu...@me.com On 27 Mar 2010, at 06:22, Ed Propsner wrote: > I think part of the problem here is that $ajax->observeField is only is only > focusing on a single form field and that is the element being passed to the > controlle

Re: Undefined index

2010-03-26 Thread Ed Propsner
I think part of the problem here is that $ajax->observeField is only is only focusing on a single form field and that is the element being passed to the controller. I just assumed Any/all of my form data was accessible in any one of the controllers. On Sat, Mar 27, 2010 at 1:48 AM, Ed Propsner

Re: Undefined index

2010-03-26 Thread Ed Propsner
Sorry, I'm new to Cake and was a bit confused. I was echoing the debug inside the controller that the ajax call uses. The only two fields that are being used in that controller are 'password' and 'confirm_password' ... only 'confirm_password' is displayed with the debug. Up until now I never thoug

Re: Undefined index

2010-03-26 Thread Jeremy Burns
You say they are being recognised OK, but they weren't in the $this->data array? Have you checked the actual page source to examine the form in the view? Only yesterday I debugged a similar problem where the browser was ending the form for me (I had embedded it incorrectly into a table). Jeremy

Re: Undefined index

2010-03-26 Thread Ed Propsner
Yup, I double checked to make sure I didn't somehow inadvertently end the form early but it's all good. The field before 'password' is 'username' and i'm using $ajax->observeField to display changes to the 'username' field but it's not doing anything and I'm guessing that it's' not seeing the field

Re: Undefined index

2010-03-26 Thread Jeremy Burns
But are they inside the form in the view? Jeremy Burns jeremybu...@me.com On 27 Mar 2010, at 05:15, Ed Propsner wrote: > Yes, I'm expecting to see $this->data['User'][''password'] as well. Both > fields exist and are displayed in the view. > > On Sat, Mar 27, 2010 at 1:09 AM, Jeremy Burns wr

Re: Undefined index

2010-03-26 Thread Ed Propsner
Yes, I'm expecting to see $this->data['User'][''password'] as well. Both fields exist and are displayed in the view. On Sat, Mar 27, 2010 at 1:09 AM, Jeremy Burns wrote: > So all you can get is $this->data['User']['confirm_password']... > > Are you expecting more fields to be in the array? Are t

Re: Undefined index

2010-03-26 Thread Jeremy Burns
So all you can get is $this->data['User']['confirm_password']... Are you expecting more fields to be in the array? Are the fields you want inside the form in the view? Jeremy Burns jeremybu...@me.com On 27 Mar 2010, at 05:00, Ed Propsner wrote: > The only thing showing in the array is the fie

Re: Undefined index

2010-03-26 Thread Ed Propsner
The only thing showing in the array is the field for 'confirm_password', [code] Array ( [User] => Array ( [confirm_password] => test ) ) [/code] I'm having the same issue with the the username field. It's acting like the field doesn't exist. On Sat, Mar 27, 20

Re: Undefined index

2010-03-26 Thread Jeremy Burns
The reason I recommended that you examine the data array is that sometimes (and I often get confused with this myself) you need to double check exactly where the item you are looking for sits in the array. So if you can see the field you want, build the path to it by walking back up from it. If

Re: Undefined index

2010-03-26 Thread Ed Propsner
I'm not sure why but I'm relatively sure that it's not recognizing the form fields for username and password. On Fri, Mar 26, 2010 at 10:38 PM, Ed Propsner wrote: > Yes, I did try that. There is a field for confirm password as well and that > is all that is being presented to the controller. > >

Re: Undefined index

2010-03-26 Thread Ed Propsner
Yes, I did try that. There is a field for confirm password as well and that is all that is being presented to the controller. On Fri, Mar 26, 2010 at 1:29 AM, Jeremy Burns wrote: > Have you debugged the data that is being presented to the controller > function? Set debug to 2 and type die(debug(

Re: Undefined index

2010-03-25 Thread Jeremy Burns
Have you debugged the data that is being presented to the controller function? Set debug to 2 and type die(debug($this->data)); as the first instruction, then take a look at what you see. Is password there? You might need to do something like $this->data[0]['password'], for example. Jeremy Burn

Re: undefined index?

2009-07-06 Thread brian
On Mon, Jul 6, 2009 at 9:06 PM, keanoppy wrote: > > all index from the stages table, the output for $stage['Phase']['id'] > can be shown If you're getting an "undefined index" error, what is the next word in the error message? It should tell you which index is undefined. > for the table stages,

Re: undefined index?

2009-07-06 Thread keanoppy
all index from the stages table, the output for $stage['Phase']['id'] can be shown for the table stages,i have: id(pk),phase_id(fk),status,duration,stagesname_id (fk),p_date,a_date,remarks,created,modified which part of the controller code? the output from debug: include - APP\views\stages\index.

Re: undefined index?

2009-07-06 Thread brian
Which index? What is the table definition? What is the controller code? What is the output from debug($stages)? On Mon, Jul 6, 2009 at 8:35 PM, keanoppy wrote: > > want to ask,i have table stages > but seems that for this particular page,the index cannot be undefined > other than the table and vie

Re: Undefined Index error when using COUNT() AS

2009-04-29 Thread Dr. Loboto
Your count value is in $post[0]['test'] On Apr 29, 5:51 pm, Danno wrote: > Can't figure out why i get the undefined index error, when using > "COUNT() AS test" in my query... > > I've tried a whole range of different ways of writing the SQL (cake > format and just straight SQL) > > Seems that th

Re: Undefined Index error when using COUNT() AS

2009-04-29 Thread brian
Did you debug($post)? Cake put the test value under a different array because you used a function. See this for a neat workaround: http://teknoid.wordpress.com/2008/09/29/dealing-with-calculated-fields-in-cakephps-find/ On Wed, Apr 29, 2009 at 6:51 AM, Danno wrote: > > Can't figure out why i ge

Re: Undefined index

2009-04-03 Thread rossjha
Thanks John, got it! There was another query running from beforeFilter when i was playing around and i didn't see it because i had removed the debug styling which is now back in! I've now cleaned things up and added recursive => -1 for my query. Thanks again Ross On Apr 3, 5:18 am, John Ander

Re: Undefined index

2009-04-02 Thread John Andersen
Exactly which line is giving you the error? As you are using a foreach loop, and you are only showing one record in the $results array, have you checked all the records in the $results array? If you only have one record in the $results array, then why use a loop at all! Please confirm that you hav

Re: Undefined index

2009-04-02 Thread rossjha
Changing if(array_key_exists('Improvement'... toif (array_key_exists('Improvements'... removes the notice? Seems to be working now. On Apr 2, 8:31 pm, rossjha wrote: > I successfully change the status value to my desired value, array > below, but i still receive the notice? > > $results:

Re: Undefined index

2009-04-02 Thread rossjha
I successfully change the status value to my desired value, array below, but i still receive the notice? $results: array 0 => array 'Improvement' => array 'id' => string '5' (length=1) 'user_id' => string '12' (length=2) 'title' => string 'dictum

Re: Undefined index

2009-04-02 Thread John Andersen
So it means that the index ['status'] probably doesn't exists! Check for it as you do for the ['Improvement'] index! Maybe it should be written as ['Status'] ? Enjoy, John On Apr 2, 9:57 pm, rossjha wrote: > foreach($results as $key => $val){ > >                 if(array_key_exists('Improveme

Re: Undefined index

2009-04-02 Thread rossjha
foreach($results as $key => $val){ if(array_key_exists('Improvement', $val)){ $results[$key]['Improvement']['status'] = $this- >getStatus($results[$key]['Improvement']['status']); On Apr 2, 7:18 pm, John Andersen wrote: > Which of the lines are line 38? > >

Re: Undefined index

2009-04-02 Thread John Andersen
Which of the lines are line 38? On Apr 2, 8:43 pm, rossjha wrote: > Thanks for getting back to me, see below > > Notice (8): Undefined index:  status [APP\models\improvement.php, line > 38] > >         function index() { >                 $user_id = $this->Auth->user('id'); >                 $co

Re: Undefined index

2009-04-02 Thread rossjha
Thanks for getting back to me, see below Notice (8): Undefined index: status [APP\models\improvement.php, line 38] function index() { $user_id = $this->Auth->user('id'); $conditions = array( 'conditions' => array('Improvement.user_

Re: Undefined index

2009-04-02 Thread brian
What, specifically, is the error? And how are you fetching the results from the DB? On Thu, Apr 2, 2009 at 10:13 AM, ross.hagg...@googlemail.com wrote: > > Hi > > Using afterFind to format $results, but i'm getting an Undefined index > notice which is annoying!  How can i make sure the array has

Re: Undefined index when saving HABTM with extra fields

2008-10-09 Thread red
Oh, I forgot, here is SQL dump: SELECT COUNT(*) AS `count` FROM `products` AS `Product` WHERE `Product`.`id` = 3 UPDATE `products` SET `id` = 3, `name` = 'ddd', `description` = '', `price` = 5.00, `special_price` = 6.00, `quantity` = 7, `weight` = 10.00, `active` = 1, `modified` = '2008-10-09 19:

Re: 'Undefined index' problem on production server

2008-10-02 Thread Pieter Van Leuven
Never mind, problem solved. I named my modelfiles with a capital... *sigh* On 1 okt, 14:31, Pieter Van Leuven <[EMAIL PROTECTED]> wrote: > OK. I built a small CakePHP application on ubuntu. It doesn't show > relative data on my ubuntu install and online webhosting, but on my > local windows insta

Re: 'Undefined index' problem on production server

2008-10-01 Thread Pieter Van Leuven
OK. I built a small CakePHP application on ubuntu. It doesn't show relative data on my ubuntu install and online webhosting, but on my local windows installation the exact same code (with the exact same dababase) does! How is this possible? Am I missing something? I'm getting desperate ;-) It must

Re: 'Undefined index' problem on production server

2008-09-30 Thread Pieter Van Leuven
Ok, I did some research and discovered the following: On my local system I have a query like this: (as seen in the query overview delivered by CakePHP when running in debugmode 2) "SELECT `Post`.`id`, `Post`.`title`, `Post`.`content`, `Post`.`created`, `Post`.`modified`, `Post`.`user_id`, `Post

Re: 'Undefined index' problem on production server

2008-09-30 Thread Pieter Van Leuven
Ah I see. I switched the error reporting value for my local PHP to E_ALL, but I'm getting no errors at all. It has indeed to be difference in configuration between my local machine and the online server, but I have absolutely what it could be. Is the fact that I didn't build the models with the b

Re: 'Undefined index' problem on production server

2008-09-30 Thread David C. Zentgraf
No, I mean the PHP error reporting in your php.ini. http://jp2.php.net/manual/en/configuration.php http://jp2.php.net/manual/en/errorfunc.configuration.php#ini.display-errors The error is coming from PHP, not Cake. You should switch error reporting on on your development system and off on your

Re: 'Undefined index' problem on production server

2008-09-30 Thread Pieter Van Leuven
Hello David, thanks for the tips. Both are currently running in debuglevel 2 mode. That's why I think it's so strange. Can someone give me some tips about what could be wrong with the database? The application can reach the database, because some data is fetched correctly... Thanks in advance,

Re: 'Undefined index' problem on production server

2008-09-29 Thread David C. Zentgraf
Stabs into the dark: a) your local PHP has a lower debug level than your production server, i.e. your local system doesn't complain about missing indexes but your server does b) the associated model can't be fetched because your database setup is different/misconfigured Hope that helps, Da

Re: Undefined index error while trying to access model object in controller class

2008-02-10 Thread [EMAIL PROTECTED]
Hi, As usual, I solved it after I sent this email. The problem was that I was creating wrongly the form in the view: create('clans'); ?> Instead of: create('Clan'); ?> That was because I was having another error before when using it correctly and in the first way the error didn't appear. I fi

Re: Undefined index in app_controller

2007-12-27 Thread powtac
Did you changed anything at your database(configuration)? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group

Re: Undefined index after database changes

2007-12-12 Thread Brian
Thank for your pity. Sorry. I thought the question was clearly implied because I was receiving an error message. "How do I eliminate the error message and access the data?" I will try to be more direct and I will also spend more time searching the previously listed post. On Dec 12, 10:29 am, AD

Re: Undefined index after database changes

2007-12-12 Thread AD7six
On Dec 12, 5:18 pm, Brian <[EMAIL PROTECTED]> wrote: > I added a column to my database and now I can't access the data. I get > Undefined index error message when trying to access it. > Brian What a pity. Empty the files in your tmp folder, or set debug to >0 temporarily, or search the group fo

Re: Undefined index after database changes

2007-12-12 Thread Samuel DeVore
did you clear tmp/caches/model ? On Dec 12, 2007 9:18 AM, Brian <[EMAIL PROTECTED]> wrote: > > I added a column to my database and now I can't access the data. I get > Undefined index error message when trying to access it. > Brian > > > -- (the old fart) the advice is free, the lack of crank

Re: Undefined index after query

2007-09-16 Thread dardosordi
set debug level to 2 and use $result = $this->Post->query($sql); so you can view the SQL generated by Cake, that form you will learn how to make your hand made querys in a cake form. - Dardo. On Sep 14, 9:01 am, Chris <[EMAIL PROTECTED]> wrote: > I've tried setting debug level to 3 to dump the c

Re: Undefined index after query

2007-09-14 Thread imrankhanjoya
try to check out the result by this $result = $this->Post->query($sql); print_r($result ); --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to cake-php@googlegroups

Re: Undefined index after query

2007-09-14 Thread Chris
I've tried setting debug level to 3 to dump the controller object as well, and the query seems to be pulling the data out please see ... http://test.courva.co.uk/posts/ --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Group

Re: Undefined index after query

2007-09-14 Thread Chris
Thanks for the quick reply guys. Geoff, in the first instance yes that should work but I'd like to make a more complicated sql query at a later stage so I'd like to work out what was wrong with my syntax here. Samuel, I've set debug to 2 and I get Nr Query Error AffectedNum. rows

Re: Undefined index after query

2007-09-13 Thread Geoff Ford
$this->set('posts', $this->Post->findAll(array("title" => "LIKE '%widget%'")); Geoff -- http://lemoncake.wordpress.com On Sep 14, 8:28 am, "Samuel DeVore" <[EMAIL PROTECTED]> wrote: > your query does not create returned data in a form that CakePHP > understands to build it's data structure for.

Re: Undefined index after query

2007-09-13 Thread Samuel DeVore
your query does not create returned data in a form that CakePHP understands to build it's data structure for. set debug level to 2 and see what cake does On 9/13/07, Chris <[EMAIL PROTECTED]> wrote: > > Hi Guys > > Sorry for the NEwbie question, I'm now 2hours into my CakePHP'ing. > Anyway I woul

Re: undefined index

2007-08-20 Thread Grant Cox
The error should also give a filename and line number, so you can see where the problem is. Basically it's when you have an array, and you try to access an array key that doesn't exist, eg: $data = array('id'=>1,'title'=>'hello'); echo $data['body']; will give a warning about accessing undefine

Re: Undefined index: Language in filtr_lang.thtml

2007-08-08 Thread Stachu alernikow
Thank you for your answer. " Try using var $recursive=3 in your model.." Categories Model ? or in each Model ? Regards Stanley --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this grou

Re: Undefined index: Language in filtr_lang.thtml

2007-08-08 Thread Rahul
Try using var recursive=3 in your model.. On 8/8/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > > Hello > > I want to filter my view by passing a language_id in the view. > ( Subcategory can have many categories , category can have many > languages ) > > Does anyone know why i getting thi

Re: Undefined index: Images

2007-07-12 Thread Michael Augustyniak
Chris Hartjes wrote: > On 7/12/07, Michael Augustyniak <[EMAIL PROTECTED]> wrote: > >> class Band extends AppModel >> { >> var $name = 'Band'; >> var $hasMany = array('Images' => >>array('className' => 'Images','dependent' => true) >>); >> } >> >>

Re: Undefined index: Images

2007-07-12 Thread Chris Hartjes
On 7/12/07, Michael Augustyniak <[EMAIL PROTECTED]> wrote: > class Band extends AppModel > { > var $name = 'Band'; > var $hasMany = array('Images' => >array('className' => 'Images','dependent' => true) >); > } > Shouldn't that be 'className' => 'Ima