Re: Ajax and Sessions

2008-12-08 Thread JermWorm
Hmm, no one else having/had this problem? In the meantime I've added the following to force a session start in my beforeFilter: if (isset($_POST[CAKE_SESSION_COOKIE])) { session_name(CAKE_SESSION_COOKIE); session_id($_POST[CAKE_SESSION_COOKIE]); }

Re: upgrade from 1.2 beta to 1.2RC3

2008-12-08 Thread JermWorm
Can't see a spelling error but there is a field with the same name as the model i.e. following the above example Table.Table in real life Practice.Practice where the field 'Practice' is the name of the Practice, considering the automagic with lists I'm guessing this might be my problem, however it

Saving Multiple Models in one save

2008-12-08 Thread Cjo
Hi all, Well I have been using CakePHP and have been wonder stuck with its capabilities. But still there are some gaps which I have been trying to fill. Well I have been struck up with this problem for some time. Can any one help me out of this. I have 4 models. 1) Intimation-- Relation ha

Re: Open Flash Chart Problem

2008-12-08 Thread Aannd duhan
Hi I have the same problem. Did you find any solution.If yes please let me know. Any help would be appreciated. thanx On Oct 24, 8:22 pm, bluedrop <[EMAIL PROTECTED]> wrote: > Hi Friends! > > I have installed the Open Flash Chart helper located in > > http://bakery.cakephp.org/articles/view/open

Re: Auth->login() Not working correctly?

2008-12-08 Thread gearvOsh
Here is my AppController and my UsersController: class AppController extends Controller { var $components = array('Auth'); function beforeFilter() { Security::setHash('md5'); // Authenticate $this->Auth->sessionKey = 'User';

Re: $this->Auth->user() is empty from controllers other than user

2008-12-08 Thread krishna
Hi, 1. I think your Auth array is nullified when you access in the static pages. 2. You can place the below code in the pages controller. // Method beforeFilter function beforeFilter() { parent::beforeFilter(); } 3. Another check is that print the session in the

$this->Auth->user() is empty from controllers other than user

2008-12-08 Thread mr_timp
Hi, Please bear with me - I'm kinda new to cake. I have configured a app_controller and have included Auth in the components variable so Auth is available throughout all of my controllers - that part is fine! I can login via (for example) /users/login and it seems any method in the user control

Re: Using Tree and creating nodes under existing nodes

2008-12-08 Thread Adam Royle
Hi Bitchain :) You can access URL parameters directly in your view, and this is the easiest way, just set a"default" for your select list. $defaultGroup = reset($this->params['pass']); echo $form->input('parent_id', array('options' => $groups, 'default' => $defaultGroup)); Cheers, Adam On Dec

Re: sending parameters to a controller function

2008-12-08 Thread deepesh
if you have an image which you are using as button you can use following : link($html->image("add_bttn.gif"),array ('controller'=>'bond_transactions', 'action' => 'add/'.$bond ['BondTransaction']['id']), array('escape' => false));?> passing controller name action name (function name + parameter

Re: Problem with foreignKey in cake PHP

2008-12-08 Thread orion . century
Well, yes.. there is a reason a complete system is based on that DB, i didn't that system, so... Thanks anyway 2008/12/8 teknoid <[EMAIL PROTECTED]> > > Yes, as brian said it's simply fixed by adding an 'id' (primary key) > column. > If, for whatever unbelievable reason, you cannot add prim

Using Tree and creating nodes under existing nodes

2008-12-08 Thread bitchain
Hi, I am using the Tree behaviour for a model object Group. I have a form that has no problem creating me new root level nodes with a name. Now I want to be able to create a sub-group. To do this, I am calling a URL /groups/add/2 where 2 is the parent_id field for the new group node. Where I am

Re: Using PHP to export MySQL data MS excel files

2008-12-08 Thread liaogz82
Ok i thought of another alternative What about I have an excel template that is pre-made, and i just want cakePHP to write values to the selected cells. Once the selected cells is being populated, the excel will use the numbers to draw up the relevant chart? On Nov 28, 3:45 am, James K <[EMAIL P

Re: How do I approach irc.freenode.net cakephp ??

2008-12-08 Thread xfhxfh
thx Art, I also found www.mibbit.com/chat works with IE too --~--~-~--~~~---~--~~ 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 this gro

Re: Complex pagination (deep model assoc. & grouping)

2008-12-08 Thread martinp
Thanks Joel. That article is certainly interesting. Debuggable.com has lots of useful CakePHP insights and I wasn't aware of that post. However, it doesn't solve my problem. In the Debuggable example they don't do anything with the Category information, whereas I need to find and use my Accommodat

Re: Custom Query Pagination

2008-12-08 Thread Brett Wilton
I also found that the group by value was correct for some paginate calls and what I needed was the effected rows, I modified the paginateCount method override as follows :- function paginateCount($conditions = null, $recursive = 0, $extra = array()) { $parameters = compact('conditions');

Re: Does the SQL structure looks the same at has_one and has_many?

2008-12-08 Thread Nookie
Correct. hasOne is like hasMany with on record :) On 9 Gru, 01:03, powtac <[EMAIL PROTECTED]> wrote: > So, just by the SQL structure I can't know if it's an has_one or > has_many relationship? > This information is only in the model? > > The console "bake all" command also can't differentiate bet

Re: How do I approach irc.freenode.net cakephp ??

2008-12-08 Thread Arthur Pemberton
On Mon, Dec 8, 2008 at 6:07 PM, xfhxfh <[EMAIL PROTECTED]> wrote: > > Hi, > .. I was trying since half an hour but was not able to get close to > cakephp @ irc.freenode.net > like trying out irc.freenode.net/cakephp etc. in the addressvar of > IExplorer > > What's the process ? 1. Install Firefo

How do I approach irc.freenode.net cakephp ??

2008-12-08 Thread xfhxfh
Hi, .. I was trying since half an hour but was not able to get close to cakephp @ irc.freenode.net like trying out irc.freenode.net/cakephp etc. in the addressvar of IExplorer What's the process ? Cheers, Frank --~--~-~--~~~---~--~~ You received this message becau

Re: Does the SQL structure looks the same at has_one and has_many?

2008-12-08 Thread powtac
So, just by the SQL structure I can't know if it's an has_one or has_many relationship? This information is only in the model? The console "bake all" command also can't differentiate between has_one and has_many!? --~--~-~--~~~---~--~~ You received this message bec

Re: dynamically fetch the data in cakephp...

2008-12-08 Thread Nookie
Just create small form with combobox ( you can use formHelper http://api.cakephp.org/class_form_helper.html ). You can call your combobox e.g. List.sort and in your controller $sort = isset($this->data['List.sort]) ? $this->data['List.sort'] : 'ASC'; $this->ModelName->find('all', array('order' =>

Re: Delete action intermittently bringing up a Not Found error instead of deleting and redirecting

2008-12-08 Thread Rob
I was having a similar problem with my pages on a hosted server and found it was due to the way the cache and expires headers were being set. I wrote about it on my blog at http://blog.accuweaver.com/2008/11/27/sourceforgenet-application-hosting-cache-issue/. Basically boiled down to adding one l

Re: Ordering search results by best match

2008-12-08 Thread the_woodsman
Just to mention, MySQL supports some good search directly, if you're willing to store your searchable text (or index) in a FULLTEXT field... And there's a sound matching function too! On Dec 8, 8:13 pm, Clay <[EMAIL PROTECTED]> wrote: > Yes that makes sense. > > Unfortunately it still does not

Re: Complex pagination (deep model assoc. & grouping)

2008-12-08 Thread Joel Perras
http://debuggable.com/posts/how-to-paginate-a-search-using-the-cakephp-framework:48fc5f77-38d0-41e0-b711-77c64834cda3 -J. On Dec 8, 3:45 pm, martinp <[EMAIL PROTECTED]> wrote: > Hello > > I'd be grateful for any advice on the best way to do this. (Cake 1.2 > RC3) > > I have a model Course, which

Re: Does the SQL structure looks the same at has_one and has_many?

2008-12-08 Thread Nookie
Yes. E.g. Article: - id Comment: - id - article_id On 9 Gru, 00:13, powtac <[EMAIL PROTECTED]> wrote: > Hi, > does the SQL structure looks the same at has_one and has_many? > Simon --~--~-~--~~~---~--~~ You received this message because you are subscribed to the G

own I18n behavior

2008-12-08 Thread Nookie
I've created first part of my I18n behavior : http://pastie.org/334460 Now lest say i have 2 modes Offer and RoomFeature. Offer HABTM RoomFeture HABTM Offer. Now in my controller i have: public function test(){ $this->Offer->find('all', array( 'order' => array('Offer.object_descripti

Re: Delete action intermittently bringing up a Not Found error instead of deleting and redirecting

2008-12-08 Thread powtac
Try an exit() after the redirect/flash. --~--~-~--~~~---~--~~ 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 this group, send email to [EM

Noob help with migrations add/drop coluumns

2008-12-08 Thread Ed Howland
Hi, when trying to add or drop a column (really I want to rename it), and I run cake schema run update -4 it says Comparing Database to Schema... Schema is up to date. Anyone have any idea what is going on? I want to rename a column in users from 'login; to 'username'. I am writing a presentati

Does the SQL structure looks the same at has_one and has_many?

2008-12-08 Thread powtac
Hi, does the SQL structure looks the same at has_one and has_many? Simon --~--~-~--~~~---~--~~ 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 f

Model name Folder clashing with internal cake Folder object. Why no namespaces?

2008-12-08 Thread bitchain
Hi guys, Just started out with Cake today and enjoying it so far. I have setup an application that has a model called Folder. This seems to be causes errors in the core as follows; Notice (8): Array to string conversion [CORE\cake\libs\folder.php, line 108] Warning (2): preg_match() expects para

Re: Custom Query Pagination

2008-12-08 Thread Brett Wilton
You need to override the pageCount() method with a custom count query, for a similar type of query to yours I used the following method in my model... function paginateCount($conditions = null, $recursive = 0, $extra = array()) { $parameters = compact('conditions'); $this->recursi

Re: Error when submitting form to a controller using different model name

2008-12-08 Thread Tony
Yeah I had the correct controller. What happened is that I didn't pass a variable I was using within the default.ctp into the action. This caused a bunch of errors. The second thing I didn't do is that I wasn't using the html and JavaScript helpers to include the CSS and JavaScript files correctl

Re: A couple of things with Security Component

2008-12-08 Thread Toad
Same problem here, almost lost faith till i found this. Here is another link describing the problem: http://www.nabble.com/Multiple-Select-Issues-td20616571.html Any ideas about a fix... On Nov 22, 1:55 am, etipaced <[EMAIL PROTECTED]> wrote: > Thanks for the insight, Nate. I'm having the same i

Re: Delete action intermittently bringing up a Not Found error instead of deleting and redirecting

2008-12-08 Thread WebbedIT
Bump ... could really do with some help on this one, delete actions are still intermittently ignoring the flash command and trying to render a view. On Dec 8, 2:30 pm, WebbedIT <[EMAIL PROTECTED]> wrote: > With debug set to '2', I can see that this is for some reason ignoring > my flash redirect

Complex pagination (deep model assoc. & grouping)

2008-12-08 Thread martinp
Hello I'd be grateful for any advice on the best way to do this. (Cake 1.2 RC3) I have a model Course, which BelongsTo School, which hasMany Accommodation. I want to be able to filter by courses, types of school and types of accommodation. The results also need to be paginated. I've set up my

Re: Ordering search results by best match

2008-12-08 Thread Clay
Yes that makes sense. Unfortunately it still does not solve my main problem which is how to (in a single query) search fields of hasMany and hasAndBelongsToMany related models as well as those of the base model and its belongsTo and hasOne relations. Simply turning recursive up does not work beca

Managing empty data in forms with associations

2008-12-08 Thread variaas
Does CakePHP have a function to clear out empty datarows before saving? Right now I manually parse the array to see if there is an empty array and unset it. So given this array: [data] => [0] => [name] => 'alice' [1] => [name] => 'bob' [2] => [name] => '' I would unse

Re: Problem with foreignKey in cake PHP

2008-12-08 Thread teknoid
Yes, as brian said it's simply fixed by adding an 'id' (primary key) column. If, for whatever unbelievable reason, you cannot add primary key column to your table... well, there are also other work-arounds possible, depending on your specific need. On Dec 6, 11:46 pm, brian <[EMAIL PROTECTED]> w

Re: HABTM on multiple DB---Please help me

2008-12-08 Thread [EMAIL PROTECTED]
How can I do it? On 6 Dic, 10:35, Mauricio Morales <[EMAIL PROTECTED]> wrote: > Hi Marco, > > I think that you can't do it with official methods, however you can > implement this functionality. > > On Dec 5, 11:27 am, "[EMAIL PROTECTED]" > > <[EMAIL PROTECTED]> wrote: > > I have this question tha

Re: cakephp.org down/inaccessable

2008-12-08 Thread WebbedIT
Thanks for the update Nate ... I am pretty sure I will be donating in the near future ... out of interest, what are the hosting costs for this server which houses most of the sites? On Dec 8, 5:05 pm, Nate <[EMAIL PROTECTED]> wrote: > Hey everybody, > > Early this morning (about 2am to 8am CST) w

Re: routes, controller name and model name

2008-12-08 Thread Filip Camerman
Meanwhile I figured I can combine all the actions in one route, but I still have to list them all: Router::connect('/collections/:action/*', array('controller' => 'collections'), array('action' => 'add|edit|delete')); I guess that's the least unelegant way then. Thx for your reaction thou

Re: Performance crash moving to 1.2 from 1.1?

2008-12-08 Thread mark_story
Well testing times in debug mode is not really representative of performance. The debug mode in 1.2 is purposefully more heavy than in 1.1. It does a lot more work each request. I would try some benchmarks with debug off. Apache AB can help in this area. -Mark On Dec 8, 9:19 am, "[EMAIL PROT

Re: sending parameters to a controller function

2008-12-08 Thread brian
Do you mean, how to set the route? Router::connect('/showmonth/:year/:month', array('controller' => 'expenses', 'action' => 'showMonth'), array( 'year' => '[0-9]{4}', 'month' => '[0-9]{2}' ) ); You can also do the regexp like so: array(

Re: session lost when switching from http to https, vice versa, in cakephp rc3

2008-12-08 Thread Justin
Just wanted to say thanks, as I ran into this problem and this led me to the fix. For any one else, here is a bit more information: http://stackoverflow.com/questions/308659/session-not-saving-when-moving-from-ssl-to-non-ssl On Dec 4, 10:13 am, Mathew <[EMAIL PROTECTED]> wrote: > Hi Robert, > > I

Re: cakephp.org down/inaccessable

2008-12-08 Thread Nate
Hey everybody, Early this morning (about 2am to 8am CST) we had some very large traffic spikes. We're still looking into what caused them, and we'll do what we need to in order to correct it as soon as we track down which service was getting hit. Presently, most CakePHP properties are hosted on

sending parameters to a controller function

2008-12-08 Thread Tanay
i have a class type "expenses" the index() function of controller lists all expenses' then i have a function show(month,year) which lists all expenses of that particular month,year in expenses home page i want to have a form with two select buttons such that i select month and year with values,

Re: Setting validation error in a controller?

2008-12-08 Thread ridwan arifandi
you can use $this->ModalName->invalidate(field_name, message), --~--~-~--~~~---~--~~ 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 this g

Re: jQuery helper....

2008-12-08 Thread ridwan arifandi
i'm developing an ajax website and don't use jquery helper, but it still can work On Dec 8, 10:42 pm, Marcus Silva <[EMAIL PROTECTED]> wrote: > Hey Gonzalo, > > Thanks for the help. > > On Dec 8, 1:10 pm, "Gonzalo Servat" <[EMAIL PROTECTED]> wrote: > > > On Mon, Dec 8, 2008 at 10:47 AM, Marcus Si

Re: $ajax->form code generation issues in ajax layouts

2008-12-08 Thread ridwan arifandi
no, i dont use jquery helpers. just embed jquery into default layout, and write some ajax code ridwan --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php@goo

Re: $ajax->form code generation issues in ajax layouts

2008-12-08 Thread najnarp
Are you using some jquery helpers? Any pointers. Seems like I'll have to do something similar. najnarp On Dec 8, 4:34 am, ridwan arifandi <[EMAIL PROTECTED]> wrote: > why dont use jquery? > > i dont really enjoy cakephp ajax embed. now i'm developing an ajax web > application, first i used cakep

Re: ORM, fetching related rows of corresponding model: undefined index..

2008-12-08 Thread Tanay
thanks a lot, my dumb mistake.. On Dec 8, 4:51 pm, grigri <[EMAIL PROTECTED]> wrote: > Your model files are incorrectly named. > > Model files should be named as singular, lowercase, underscored - > yours are plural. > > Rename 'models/questions.php' to 'models/question.php' and 'models/ > answe

Re: cakephp.org down/inaccessable

2008-12-08 Thread WebbedIT
cakephp.org is back up and running! > Your ability to grow your company has more to do > with your marketing, project management, customer relationships and > organizational abilities, then it has to do with the technical > advantages cake brings to the table. Going completely off topic now then

Re: Any one Familiar with XML/SWF charts usage in Cakephp

2008-12-08 Thread BrendonKoz
Hi Aannd duhan, Did you first read over the Bakery articles? It's been awhile, but I believe they give setup instructions and a general idea of how to use it. http://bakery.cakephp.org/articles/view/open-flash-chart-helper-draw-charts-the-cake-way 1. Place uncompressed OFC library in to the ap

Re: upgrade from 1.2 beta to 1.2RC3

2008-12-08 Thread [EMAIL PROTECTED]
Hi, I tried to replicate your problem by putting a form input into an element. My form still renders as it should no problem with double [Modename] or anything else strange. I did not duplicate you exactly since I used a form I am writing at the moment. But it is not significantly different. My c

Re: Ordering search results by best match

2008-12-08 Thread grigri
The implode('+', ...) does exactly what you'd think - creates a sum of terms. Each entry in the array is a 'x LIKE y' expression, which will return 1 if it's true and 0 if it's false. Therefore to count how many matched, you just need to add them together, which is what the code does. For examp

Re: cakephp.org down/inaccessable

2008-12-08 Thread rgreenphotodesign
Looks like it's up and rolling for me. On Dec 8, 8:59 am, keymaster <[EMAIL PROTECTED]> wrote: > > I' hoping CakePHP will be the > > tool I need to become more productive and effective so I can grow my > > company and employ other developers. > > (Off topic, but ...) Your ability to grow your com

Re: cakephp.org down/inaccessable

2008-12-08 Thread keymaster
> I' hoping CakePHP will be the > tool I need to become more productive and effective so I can grow my > company and employ other developers. (Off topic, but ...) Your ability to grow your company has more to do with your marketing, project management, customer relationships and organizational ab

Re: Well formed XML for RESTful web services ...

2008-12-08 Thread Rob
Thanks Jay and lightlitch, I will give this a shot. I got a similar suggestion about writing a DBO source to dump the showLog output to a table on the IRC channel. Only bit I still can't figure out is why having the debug > 1 would change my content-type. Anyway if I get this figured out I'll po

Everybody should download Neutrino CMS !

2008-12-08 Thread [EMAIL PROTECTED]
Here it is, Get it now: http://dsi.vozibrale.com/downloads/categories/view/neutrinocms Are you new to Cake? Forget looking at 200 tutorials... peak at this small materpiece and you will generally learn faster and better. Cake veteran? Stuck on something you are sure Cake can handle but you have

Re: jQuery helper....

2008-12-08 Thread Marcus Silva
Hey Gonzalo, Thanks for the help. On Dec 8, 1:10 pm, "Gonzalo Servat" <[EMAIL PROTECTED]> wrote: > On Mon, Dec 8, 2008 at 10:47 AM, Marcus Silva <[EMAIL PROTECTED]>wrote: > > > > > Does anyone know if anyone has written a jQuery helper? > > > Really need one to add similar features found here: >

Re: Ordering search results by best match

2008-12-08 Thread Clay
Thanks for the input! Actually I am already doing something similar to this but I didn't know how to count the matches. I guess I am confused about your use of implode on +, I assume this is something MySQL will parse and understand? If that is the case then I should give this a shot since it se

Re: Tip: FormHelper can create field names like Model[][field]

2008-12-08 Thread [EMAIL PROTECTED]
I may have added it to the manual... not sure since it has been acting a bit strange today and the post timed out. I will check later to see if my edit was submitted. On Dec 8, 2:59 pm, "dr. Hannibal Lecter" <[EMAIL PROTECTED]> wrote: > Sweet! Thanks for sharing this, it should probably be added

Setting validation error in a controller?

2008-12-08 Thread Sebastian Göttschkes
Hi there, I have a problem using validation in cakePHP. I want to add an error dynamic in the controller to be viewed in the view right there where the normal validation errors are shown. I found the $this->ModelName->invalidFields(); function, which returns all errors, but I found no function

Re: Delete action intermittently bringing up a Not Found error instead of deleting and redirecting

2008-12-08 Thread WebbedIT
With debug set to '2', I can see that this is for some reason ignoring my flash redirect (even though it is deffinately delting the record) and is trying to render a view. As I don't have a view for delete actions it throws out the Not Found error, or when debug is set to '2' it asks me if I have

Re: saving into multiple table with multiple data

2008-12-08 Thread Alexandru Ciobanu
ridwan arifandi wrote: > in an action, i have to do more than one save action. rule > > 1). save data into purchases > 2). get last insert id from table purchases > > 3). save data into items > 4). get last insert id from table items > > 5). save data into purchase_details with those two variables

Performance crash moving to 1.2 from 1.1?

2008-12-08 Thread [EMAIL PROTECTED]
I've written a very small test setup using cake 1.1... it works turning out excellent numbers: Then I noticed that 1.2 should be released at some point and thought it might be better to start with it.. I ported my code over.. ran the exact same page and am getting some terrible numbers?

How to create dinamic Inputs?

2008-12-08 Thread Daniel
[Google Translate] Good morning to all, I am here with a design of buildings. I am in doubt with a Cake. The system will operate more or less like this. Will have a session where the admin will correctly identify the characteristics that a property must have and mark whether it is binding or not.

dynamically fetch the data in cakephp...

2008-12-08 Thread Sami
Hi, Now i am developing one application in cakephp. Retrieve name,place and created date. How insert one combobox include options sort by date ascending, Sort by date descending. User select the options from combobox that based fetch the data from database and display it., Help me --~--~-

Re: saving into multiple table with multiple data

2008-12-08 Thread Milmar
Maybe you can try a simple test case whose only purpose is to save something in the item table (separate this test function from the "finish" function.). When you get that to work, it would be easier to debug within the "finish" function. Also, try looking into HABTM and other built-in cake featu

Re: Tip: FormHelper can create field names like Model[][field]

2008-12-08 Thread dr. Hannibal Lecter
Sweet! Thanks for sharing this, it should probably be added to the official manual or something.. On Dec 8, 2:14 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > Hi, > This is just a small thing but I did not find a mention of it in the > manual. I found this out today, after a few years of u

Delete action intermittently bringing up a Not Found error instead of deleting and redirecting

2008-12-08 Thread WebbedIT
Can anyone see that the problem is with the following? function delete($id = null) { if (!$id) { $this->flash(__('Invalid telephony number', true), array ('action'=>'index')); } else { $parent = $this->TelephonyNumber->read(array ('TelephonyNumber.parent_model', 'TelephonyNumber.paren

Re: cakephp.org down/inaccessable

2008-12-08 Thread WebbedIT
I forget that most of the community has been on a 'jolly' to Argentina ... one day I will hopefully join them. Been saying stuff like that for years, I' hoping CakePHP will be the tool I need to become more productive and effective so I can grow my company and employ other developers. although th

Re: cakephp.org down/inaccessable

2008-12-08 Thread keymaster
Don't worry, it'll be fixed. Everyone is probably just returning from the CakeFest in Argentina, hence the slight delay. Inconvenient, but nothing to worry about. On Dec 8, 2:09 pm, WebbedIT <[EMAIL PROTECTED]> wrote: > I suppose the real concern is the damage this is doing when those > still t

Re: How can I view the screencasts on Linux

2008-12-08 Thread Ed Howland
> If you can't get the videos to play in your browser,look at the HTML > source, search for the .mov files and play them with your favorite player. > I copied the url of the .mov into by browser's address bar and it played fine. They are doing some weird Javascript (I guess to play in the little

Tip: FormHelper can create field names like Model[][field]

2008-12-08 Thread [EMAIL PROTECTED]
Hi, This is just a small thing but I did not find a mention of it in the manual. I found this out today, after a few years of using Cake :) I want a form input to have the name Modelname[][fieldname] so that I can post an array of "fieldname" values. The manual only mentions creating these "hard

Re: jQuery helper....

2008-12-08 Thread Gonzalo Servat
On Mon, Dec 8, 2008 at 10:47 AM, Marcus Silva <[EMAIL PROTECTED]>wrote: > > Does anyone know if anyone has written a jQuery helper? > > Really need one to add similar features found here: > http://ui.jquery.com/demos > to a site. > > Any hints/help will be greatly appreciated. > > Many thanks in a

jQuery helper....

2008-12-08 Thread Marcus Silva
Does anyone know if anyone has written a jQuery helper? Really need one to add similar features found here: http://ui.jquery.com/demos to a site. Any hints/help will be greatly appreciated. Many thanks in advance. --~--~-~--~~~---~--~~ You received this message

Re: saving into multiple table with multiple data

2008-12-08 Thread ridwan arifandi
thanks for your reply.. i tried it too, and it cannot work, i used debug($data_item) in temporary_items_controller.php and debug ($data) in model.php, it wasn't empty ( has value ) i dont know, only ITEM model but others can work rightly thanks a lot On Dec 8, 6:00 pm, Milmar <[EMAIL PROTECT

Re: $ajax->form code generation issues in ajax layouts

2008-12-08 Thread ridwan arifandi
why dont use jquery? i dont really enjoy cakephp ajax embed. now i'm developing an ajax web application, first i used cakephp ajax tag and i dont like it. so i'm using jquery and i'm very satisfy with it On Dec 8, 12:35 pm, najnarp <[EMAIL PROTECTED]> wrote: > I don't see the right code being ge

Re: upgrade from 1.2 beta to 1.2RC3

2008-12-08 Thread JermWorm
Just a followup I moved the subform to an element and chaged require to a echo $this- >element('mysubform') results -> exactly the same problem. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To po

Re: cakephp.org down/inaccessable

2008-12-08 Thread WebbedIT
I suppose the real concern is the damage this is doing when those still to download and try CakePHP who have seen a reccomendation (such as Mozilla's use of CakePHP for their Add-Ons site - that's how I came across it) and have thought "hey, that sounds great, I want to give it a go" only to find

Re: Any one Familiar with XML/SWF charts usage in Cakephp

2008-12-08 Thread Aannd duhan
Hi I m integrating OFC into cake.After putting all files when I run me basic view file it gives error "class graph not found in flash_helper at line 56". Can u please tell from where I can add theis class.Or could u please brief the steps to put the files in different directory.Any help would be a

Re: ORM, fetching related rows of corresponding model: undefined index..

2008-12-08 Thread grigri
Your model files are incorrectly named. Model files should be named as singular, lowercase, underscored - yours are plural. Rename 'models/questions.php' to 'models/question.php' and 'models/ answers.php' to 'models/answer.php'. Everthing else looks ok. hth grigri On Dec 8, 11:11 am, Tanay <[E

Re: cakephp.org down/inaccessable

2008-12-08 Thread Juan Delgado
Same here. Pretty much impossible to access it most of yesterday and today it looks the same again. Why there isn't a copy of the Book and the API in the release zip? I much rather go on-line for (specially for comments) but in situations like this is very handy. Cheers! Juan On Dec 8, 10:23 a

Re: cakephp.org down/inaccessable

2008-12-08 Thread BeroFX
I just noticed I can't open it, while it was working just fine last week. --~--~-~--~~~---~--~~ 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

upgrade from 1.2 beta to 1.2RC3

2008-12-08 Thread JermWorm
In my continuing effort to upgrade an app that is working on a early 1.2 beta of Cake I've now encountered another issue with the $form helper. I have a file called detform.ctp which has a number of fields which is included use php's require in a number of different 'parent' forms. If I use insi

Re: How to add line break in text mail layout?

2008-12-08 Thread majna
You have to put \n into *double* quotes. Only then PHP will parse this \n token. PHP parser basics... On Dec 8, 8:55 am, Hipnotik <[EMAIL PROTECTED]> wrote: > On 6 Gru, 17:32, majna <[EMAIL PROTECTED]> wrote: > > > Just write "\n" > > Examples: > > > > > > Wow! It works! > I don't know why, bu

Re: cakephp.org down/inaccessable

2008-12-08 Thread WebbedIT
I found this online, from June 2008: http://rapidshare.com/files/125149799/CakePHP_Cookbook.pdf.html --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php@goog

Re: cakephp.org down/inaccessable

2008-12-08 Thread WebbedIT
> You can build the API docs from the CakePHP sources at anytime. Just > take a look at phpDocumentor (http://www.phpdoc.org/). > > M. Looks interesting, and may have to give it a go sometime, in the meantime I just wish the site would come back up ... although it is forcing me to carry on coding

Re: cakephp.org down/inaccessable

2008-12-08 Thread Milmar
Thanks. I'll try this out later. On Dec 8, 7:08 pm, Marcus <[EMAIL PROTECTED]> wrote: > On Dec 8, 12:04 pm, Milmar <[EMAIL PROTECTED]> wrote: > > > It should be possible. The PHP api itself has a downloadable chm > > version (maybe it also has downloadable HTML and PDF versions). > > You can bu

Re: ORM, fetching related rows of corresponding model: undefined index..

2008-12-08 Thread Tanay
no sight of 'answers' still On Dec 8, 4:10 pm, Tanay <[EMAIL PROTECTED]> wrote: > i changed the value to 2, > still the var_ dump is like this: > > array(2) { [0]=> array(1) { ["Question"]=> array(5) { ["id"]=> string > (1) "1" ["question"]=> string(22) "Why do you use > CakePHP" ["questioner"]=>

Re: ORM, fetching related rows of corresponding model: undefined index..

2008-12-08 Thread Tanay
i changed the value to 2, still the var_ dump is like this: array(2) { [0]=> array(1) { ["Question"]=> array(5) { ["id"]=> string (1) "1" ["question"]=> string(22) "Why do you use CakePHP" ["questioner"]=> string(5) "Ahsan" ["created"]=> string(19) "2008-02-11 22:19:04" ["modified"]=> string(19)

Re: cakephp.org down/inaccessable

2008-12-08 Thread Marcus
On Dec 8, 12:04 pm, Milmar <[EMAIL PROTECTED]> wrote: > It should be possible. The PHP api itself has a downloadable chm > version (maybe it also has downloadable HTML and PDF versions). You can build the API docs from the CakePHP sources at anytime. Just take a look at phpDocumentor (http://www.

Re: cakephp.org down/inaccessable

2008-12-08 Thread Milmar
It should be possible. The PHP api itself has a downloadable chm version (maybe it also has downloadable HTML and PDF versions). On Dec 8, 6:54 pm, WebbedIT <[EMAIL PROTECTED]> wrote: > > I'm currently just using google cache to search for information. > > I guess that means you are also having

Re: saving into multiple table with multiple data

2008-12-08 Thread Milmar
Try to log what $data_item contains and check if the structure being passed to the model is correct. Then you can try $this->Item->Create($data_item); and; $this->Item->Save($data_item); --~--~-~--~~~---~--~~ You received this message because you are subscribed to

Re: cakephp.org down/inaccessable

2008-12-08 Thread WebbedIT
> I'm currently just using google cache to search for information. I guess that means you are also having problems accessing the site > Can we download a snapshot of the API? It would be useful for > situations like this. That would be a big snapshot, not done much downloading of sites to read

Re: Help with table relationships

2008-12-08 Thread WebbedIT
The issue is that you are overwriting the $hasMany array with each new declaration so only the last hasMany relationship will be created (Upload). As Milmar says you need to group multiple relation types into a single array as follows: var $hasMany = array('Article', 'Event', 'Post', 'Price',

Re: saving into multiple table with multiple data

2008-12-08 Thread ridwan arifandi
here is the code.. now, this function can work normally, but only for ITEM model, i use manual query likle "INSERT INTO 'items' VALUES(...)". $this->Item->getLastInsertID doesn't work too, so i use msqyl_insert_id ant it works.

Re: cakephp.org down/inaccessable

2008-12-08 Thread Milmar
I'm currently just using google cache to search for information. Can we download a snapshot of the API? It would be useful for situations like this. On Dec 8, 6:15 pm, WebbedIT <[EMAIL PROTECTED]> wrote: > A colleague of mine in a different office using a different ISP is > also having the same i

Re: cakephp.org down/inaccessable

2008-12-08 Thread WebbedIT
A colleague of mine in a different office using a different ISP is also having the same issue. We can ping the site fine, but there must be some sort of HTTP issue on there server as it's timing the session out each time. Anyone else experiencing this? ... is it a regular thing? It impacts on th

Re: Help with table relationships

2008-12-08 Thread Milmar
I suggest you try the "bake" feature to generate the codes to minimize any syntax issues. About hasMany, it has other parameters that might need to be set, and, I think you cannot define multiple hasMany variables (just put all related models in an array). e.g. class User extends AppModel { var

  1   2   >