edit skipping to add if no id is sent.

2007-08-06 Thread phpjoy
i have a table in my database that doesn't need an id, it's only 1 row stored in the DB. i want to edit that row, and whenever i try to edit it -> i get thrown to add. http://localhost/admin/config/edit redirects to http://localhost/admin/config/add and gives me this error: Missing Method in Conf

Re: Model->find with large datasets

2007-08-06 Thread jheathco
The problem is I need to retrieve them all at once because I'm processing the returned rows in a cronjob. The pagination would be of no use for this feature. Should I just run a manual query instead of using the models in this case? On Aug 6, 9:00 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wro

Re: Is it reasonably easy to do this sort of inline editing with CakePHP

2007-08-06 Thread Langdon Stevenson
>> I couldn't get Quicktime movies to play (I develop on Fedora 7) so went >> hunting on the weekend. As nate mentions VLC Media Player is the >> solution. > > I can't get quicktime to work under w2k anymore either. Hey take it easy Walter :-) Surely it's not that big an issue ... As mentione

Re: Complex SQL statement

2007-08-06 Thread Langdon Stevenson
Thanks for the correction :-) I didn't notice that there was a sub-query, just saw two queries. I will look harder next time. Regards, Langdon [EMAIL PROTECTED] wrote: > Thats a subquery - and while the newer mysql4.1 and above now supports > subqueries - cakephp uses a left inner join by de

Re: How to set title of home page that doesn't have a controller? (../views/pages/home.thtml)

2007-08-06 Thread Dr. Tarique Sani
On 8/6/07, Anna P <[EMAIL PROTECTED]> wrote: > I thought that i can do this in app_controller.php , but when I use > $this->pageTitle it gives me an error. Put $this->pageTitle = "your title" somewhere in your view Tarique -- = Chees

Re: Is it reasonably easy to do this sort of inline editing with CakePHP

2007-08-06 Thread walterbyrd
On Aug 6, 4:59 pm, Langdon Stevenson <[EMAIL PROTECTED]> wrote: > Hi Walter > > I couldn't get Quicktime movies to play (I develop on Fedora 7) so went > hunting on the weekend. As nate mentions VLC Media Player is the > solution. I can't get quicktime to work under w2k anymore either. I update

Re: Paginating a non-model (1.2)

2007-08-06 Thread Dr. Tarique Sani
On 8/6/07, Chris Barna <[EMAIL PROTECTED]> wrote: > > Is it possible just to paginate an array without a model? Something > like $this->paginate($array); where $array is just a collection of > data and not a model... If not with the plain pagination could > somebody shed any light on how they woul

Re: cms for static pages

2007-08-06 Thread Baz
So you edit the CTP files? -- Baz L Day In The Life of Baz http://www.LifeOfBaz.com On 8/6/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > > I modified the existing pages component and just added some admin > functions to add/edit/save files in the views/pages directory - look > at the api f

Re: When is $this->data populated?

2007-08-06 Thread Baz
Populated when you hit "submit" on a form, so yeah..HTTP POST. On 8/6/07, Vaz <[EMAIL PROTECTED]> wrote: > > > Is $this->data populated only in a HTTP POST function? > > I have a scenario where the profile/index function (in controller) > checks to see whether the user is a customer or a dealer. A

Re: cms for static pages

2007-08-06 Thread [EMAIL PROTECTED]
I modified the existing pages component and just added some admin functions to add/edit/save files in the views/pages directory - look at the api for File and Folder classes - just remember to set permissions on views/pages so that they can be edited On Aug 6, 3:21 pm, murtada <[EMAIL PROTECTED]>

Re: Model->find with large datasets

2007-08-06 Thread [EMAIL PROTECTED]
set the limit in the $model->find(); to an acceptable performance level - you can set this dynamically - or look into the pagination component On Aug 6, 6:41 pm, jheathco <[EMAIL PROTECTED]> wrote: > In PHP, typically prior to cake I had done > > $res = mysql_query(); > while($row = mysql_fetch_a

Re: Complex SQL statement

2007-08-06 Thread [EMAIL PROTECTED]
Thats a subquery - and while the newer mysql4.1 and above now supports subqueries - cakephp uses a left inner join by default - if you want the speed and performance of the subquery youll have to use $this->ModelName->query("the SQL string"); otherwise read the manual/api on setting up query con

When is $this->data populated?

2007-08-06 Thread Vaz
Is $this->data populated only in a HTTP POST function? I have a scenario where the profile/index function (in controller) checks to see whether the user is a customer or a dealer. And accordingly, redirecting to profile/customer or profile/dealer. Can I safely check for "if (empty($this->data)" t

PayPal Direct Payment API Component and header issues

2007-08-06 Thread landon.lewis
I have the PayPal Direct Payment API Component setup and am able to make calls to Paypal with success. I have been getting header and session errors though (See below). These issues haven't been an issue until I have tried to to a $this->redirect(), and I get the error about not being able to mo

PayPal Direct Payment API Component and header issues

2007-08-06 Thread landon.lewis
I have the PayPal Direct Payment API Component installed and am able to make calls to Paypal just fine. I am however receiving several notices and warnings from PHP that the Paypal component has already set session and header information and that Cake is unable to send its session and header info

Model->find with large datasets

2007-08-06 Thread jheathco
In PHP, typically prior to cake I had done $res = mysql_query(); while($row = mysql_fetch_array($res)) { } And now in cake, $results = Model->find([query here]) and then loop thru the results. I am wondering about the limitations if, for instance, a few thousand rows are returned. In PHP,

Re: PayPal Direct Payment API Component

2007-08-06 Thread r557
Remove setCertificate and replace it with $this->Paypal- >setSignature('signature provided by paypal');. There are 2 options on how you process a payment, certificate and signature. I used signature and now it's working :). On Aug 1, 2:56 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > Hi,

Re: How to handle hasMany data entry

2007-08-06 Thread francky06l
You can place some fields that are actually not in the model in the validate array. The problem with your case, it that you do not have a definite limit. There is an option you can set in the $validate .. 'on' => 'create' and 'on' => 'update' associated with the array (same level as 'rule'). I h

Re: How to handle hasMany data entry

2007-08-06 Thread nagarjuna
Thanks for the advice. Unfortunately this will not work for me because it chokes on: $this->Mark->invalidate('mark_number'.$i, "Mark already exists); I have two types of marks for input (NewMarks and ExistingMarks), and they are stored in the data matrix under $this->data['NewMarks'] not under

Re: Complex SQL statement

2007-08-06 Thread Langdon Stevenson
Hi Peter > I would appreciate someone pointing me to a reference which explains > how to code something like this in CakePHP: The "conditions" section of the manual (in the Models page from memory) covers the creation of complex conditions in queries. I don't see anything in your query that C

Re: Model associations problem

2007-08-06 Thread John David Anderson (_psychic_)
On Aug 6, 2007, at 4:49 PM, Ruud Gâst wrote: > > No-one has an answer? I'd say a lot of people use the same > construction so it won't be that hard ... I just don't know how. What happens when you turn DEBUG up to 2 or so? Does the SQL include the condition? Have you tried clearing the model

Re: Is it reasonably easy to do this sort of inline editing with CakePHP

2007-08-06 Thread Langdon Stevenson
Hi Walter > At best, quicktime is very difficult under linux. For me, it is not > worth the trouble of installing yet another media player just for cake > screencasts. I had no trouble viewing codeignitor, or qcodo, > screencasts with my present setup. Not that big of a deal, but I find > it surp

Re: CakePHP+SMF (again?)

2007-08-06 Thread Geoff Ford
I don't know the details of the cake session component, or sessions in general, but I believe that the sessions work by creating a cookie with a unique code. This code points to the session file (or db record) where the session data is stored. So from my understanding, as long as both smf and cak

Re: Model associations problem

2007-08-06 Thread Ruud Gâst
No-one has an answer? I'd say a lot of people use the same construction so it won't be that hard ... I just don't know how. On Aug 6, 3:01 am, Ruud Gâst <[EMAIL PROTECTED]> wrote: > Hello there, > > I've got a simple construction of two models: users and familymembers; > every user belongs to a f

Complex SQL statement

2007-08-06 Thread peterhf
I would appreciate someone pointing me to a reference which explains how to code something like this in CakePHP: SELECT user_photos.name FROM user_photos WHERE user_photos.userID IN ( SELECT users.recordID

Re: cms for static pages

2007-08-06 Thread murtada
Thanks Sam, You are right regarding terminology. Rephrasing my question: if I have basic pages (About Us, Contact Us) etc. and would like my client to edit it through the administrator panel instead of editing the file, what is the best way to do so? In addition, while doing this editing, can h

Re: Needs 2 calender for different purposes

2007-08-06 Thread francky06l
I have used this one : http://www.dhtmlgoodies.com/index.html?page=calendarScripts quite easy to implement in cake On Aug 6, 11:50 pm, nate <[EMAIL PROTECTED]> wrote: > http://manual.cakephp.org/chapter/helpers > > On Aug 6, 4:29 pm, CakeMan <[EMAIL PROTECTED]> wrote: > > > Hello All, > > > I ha

Re: cakephp on shared hosted environment

2007-08-06 Thread francky06l
If you guys could tell where you host, I am quite sure someone does host cake too and can share solutions :-) On Aug 7, 12:17 am, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > With some shared hosts you also have to add in the .htaccess to get > mod_rewrite working > > Options +Followsymlinks

Re: cms for static pages

2007-08-06 Thread Baz
You'll need to create your own model, controller and view. Since pages was already taken, I created "contents". Simple model with: tile, url (or slug), and body (just an HTML dump). I pass the URL to my view and findbyUrl. I slapped up fckEditor on the add and edit views for the controller. and

Re: cakephp on shared hosted environment

2007-08-06 Thread [EMAIL PROTECTED]
With some shared hosts you also have to add in the .htaccess to get mod_rewrite working Options +Followsymlinks --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to

PoEdit and .ctp files.

2007-08-06 Thread Sharkoon
Hi, I'm using poedit for translating. But getting this error when i use .ctp files. xgettext: warning: file 'c:\localhost\cake\app\views\layouts \default.ctp' extention 'ctp' is inknown; wil try C But i had added *.ctp files to the PHP parser... someone a suggestion? --~--~-~--~~

Re: BeforeFilter in Model

2007-08-06 Thread cdomigan
Have you used some debug statements to check if you're getting what you think you're getting from that loop? Chris On Aug 7, 4:48 am, Mike Digital Egg <[EMAIL PROTECTED]> wrote: > Hi Samuel, > > Thanks for your reply, I'm sure this is the right solution, I just > can't seem to get it to work: >

Re: Is it reasonably easy to do this sort of inline editing with CakePHP

2007-08-06 Thread nate
Yup, we're very Linux-friendly. Everyone on the dev team deploys to Linux (though I probably deploy more on FreeBSD myself). But everyone on the dev team develops on the Mac. That's not to say that we shun Linux-based development, but we ourselves prefer to view the world through Aqua. And wit

Re: Needs 2 calender for different purposes

2007-08-06 Thread nate
http://manual.cakephp.org/chapter/helpers On Aug 6, 4:29 pm, CakeMan <[EMAIL PROTECTED]> wrote: > Hello All, > > I have two requirements for my project. > > 1) I need a date and time picker that should be a pop up for along > with an date/time input box. > > 2) Secondaly i need another Mini calen

Re: cms for static pages

2007-08-06 Thread Sam Sherlock
but static is not dynamic I thought pages were for static pages with content updated infrequently and therefore the most apt method for such content is a page; not requiring db table, model & controller On 06/08/2007, murtada <[EMAIL PROTECTED]> wrote: > > > Hi, > > I would like my client to be a

Re: Is it reasonably easy to do this sort of inline editing with CakePHP

2007-08-06 Thread rtconner
Lol. Quicktime is a very standard video format and has been around for years and can be watched by users of almost any operating system. I had no problem with the screencasts being in quicktime. Rails screencasts are in quicktime format, Django's are also in quicktime.. oh and wait what is this..

Needs 2 calender for different purposes

2007-08-06 Thread CakeMan
Hello All, I have two requirements for my project. 1) I need a date and time picker that should be a pop up for along with an date/time input box. 2) Secondaly i need another Mini calender according to which i can use arrange my choosed events submitted from the admin panel. Also can you ple

Re: How to set title of home page that doesn't have a controller? (../views/pages/home.thtml)

2007-08-06 Thread Braindead
You can set the title of the page inside the page. Just enter $this- >pageTitle = '' on top of the page. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to cak

Re: Is it reasonably easy to do this sort of inline editing with CakePHP

2007-08-06 Thread walterbyrd
On Aug 6, 8:46 am, "Chris Hartjes" <[EMAIL PROTECTED]> wrote: > On 8/6/07, walterbyrd <[EMAIL PROTECTED]> wrote: > If you're referring to the fact > that the screencast is done in Quicktime format, i believe that VLC > can view it. > At best, quicktime is very difficult under linux. For me, it

cms for static pages

2007-08-06 Thread murtada
Hi, I would like my client to be able to login and edit the main content of /pages/ files, such as about us, contact us, and even home. How is this possible? Do I have to make a controller for each page, and store the data in the database? A quick step-by-step guide would be great. Thank you k

Re: svn for cake12 branch changed ?

2007-08-06 Thread francky06l
Yes nice upgrade of the trac, thanks guys ! On Aug 6, 9:10 pm, "Chris Hartjes" <[EMAIL PROTECTED]> wrote: > On 8/6/07, francky06l <[EMAIL PROTECTED]> wrote: > > > > > Thanks Chris, > > > It's my home computer (windows technology), a reboot (I should have > > start doing this) and I can update

Re: svn for cake12 branch changed ?

2007-08-06 Thread Chris Hartjes
On 8/6/07, francky06l <[EMAIL PROTECTED]> wrote: > > Thanks Chris, > > It's my home computer (windows technology), a reboot (I should have > start doing this) and I can update (rev 5496).. > > sorry about this :-) I do know that they upgraded the server recently so that could've been a contributi

Re: svn for cake12 branch changed ?

2007-08-06 Thread francky06l
Thanks Chris, It's my home computer (windows technology), a reboot (I should have start doing this) and I can update (rev 5496).. sorry about this :-) Franck On Aug 6, 8:45 pm, "Chris Hartjes" <[EMAIL PROTECTED]> wrote: > On 8/6/07, francky06l <[EMAIL PROTECTED]> wrote: > > > > > Hello, > > > I

Re: svn for cake12 branch changed ?

2007-08-06 Thread Chris Hartjes
On 8/6/07, francky06l <[EMAIL PROTECTED]> wrote: > > Hello, > > I used to get the latest cake1.2 branch with my svn client. Seems > impossible today, I wounder if something as changed on this side ? > > repository : https://svn.cakephp.org/repo/branches/1.2.x.x/cake > I just updated a few minutes

svn for cake12 branch changed ?

2007-08-06 Thread francky06l
Hello, I used to get the latest cake1.2 branch with my svn client. Seems impossible today, I wounder if something as changed on this side ? repository : https://svn.cakephp.org/repo/branches/1.2.x.x/cake Error : Error * PROPFIND request failed on '/repo/branches/1.2.x.x/ cake' PROPFIND of '/rep

Re: Help with Advanced Installation

2007-08-06 Thread Jon Bennett
> D:\AppServ\www <-- http docs root (localhost) > D:\AppServ\www\onesiteroot <-- one web project > D:\AppServ\www\anothersiteroot <-- another web project > D:\AppServ\www\heresanothersite <-- yet another web project this is very easy, place cakephp dir (inc app, webroot etc) in the root of yo

How to set title of home page that doesn't have a controller? (../views/pages/home.thtml)

2007-08-06 Thread Anna P
Hi:) I have one question. For each page i set title in that page's controller using $this->pageTitle = '' But how do I set the title of home page (that lays in views/pages/ home.thtml) that shows up when i go to 'http://www.mysite.com' or 'http://www.mysite.com/index.php' ? That home page does

Re: ajax/form/warnings problems

2007-08-06 Thread d'plus
On 1 Sie, 01:15, Geoff Ford <[EMAIL PROTECTED]> wrote: > The session errors are probably because of whitespace after the > closing ?> in images.php > yep, that was it :) I thought I'll never get rid of that : > The reason you can't save with $this->data may have to do with the > fact that

Re: Help with Advanced Installation

2007-08-06 Thread takabanana
Thanks for the reply, guys... Well, I use AppServ at home (much smaller and 'simpler' than Xampp... www.appservnetwork.com ). Been using that for the past 4 years (all PHP stuff)... Since a lot of my projects are becoming quite large and complicated, instead of myself building my own framework, I

Re: Paginating a non-model (1.2)

2007-08-06 Thread Jon Bennett
On 06/08/07, Jon Bennett <[EMAIL PROTECTED]> wrote: > > Is it possible just to paginate an array without a model? Something > > like $this->paginate($array); where $array is just a collection of > > data and not a model... If not with the plain pagination could > > somebody shed any light on how t

Problem by editing

2007-08-06 Thread [EMAIL PROTECTED]
I want to edit my categories table with select Box for a language_id row.( for example categories/edit/4/ ) How to make the "selected" value in my selectBox ? Here are my tables: CREATE TABLE `categories` ( `id` int(11) NOT NULL auto_increment, `language_id` int(11) NOT NULL, `kategoria`

Re: Paginating a non-model (1.2)

2007-08-06 Thread Jon Bennett
> Is it possible just to paginate an array without a model? Something > like $this->paginate($array); where $array is just a collection of > data and not a model... If not with the plain pagination could > somebody shed any light on how they would go about it? you won't get the sorting links etc,

Re: Paginating a non-model (1.2)

2007-08-06 Thread rtconner
No you can't paginate without a Model. You could do a lot of hacking to get it to work without hitting the database.. but uhm wow that might be a good amount of work. I'm not sure. But it was me in your shoes and I had no need to access a database, I'd really lean toward using something like this

Cache Question

2007-08-06 Thread Feris Thia
Hi All, I have in my controller a caching of one of my view and cache deletion mechanism in beforeFilter, I know it doesn't make sense... but just try to add to see what is going on. --- var $cacheAction = array( 'detail/' => 21600 );

Paginating a non-model (1.2)

2007-08-06 Thread Chris Barna
Is it possible just to paginate an array without a model? Something like $this->paginate($array); where $array is just a collection of data and not a model... If not with the plain pagination could somebody shed any light on how they would go about it? --~--~-~--~~~--

Re: BeforeFilter in Model

2007-08-06 Thread Mike Digital Egg
Hi Samuel, Thanks for your reply, I'm sure this is the right solution, I just can't seem to get it to work: function afterFind( $results ) { foreach ($results as $key => $val) { if ( isset($val["Product"]["list_price"]) ) {

Changing baseUrl dynamically (1.2)

2007-08-06 Thread Pillow
Hi, I'm trying to implement this kind of links in my app: example.com/en/ page, example.com/de/page etc. This is what my router connections look like: Router::connect('*/pages/edit/', array('controller' => 'pages', 'action' => 'edit')); Router::connect('*/pages/add/', array('controller' => 'pag

Re: How to handle hasMany data entry

2007-08-06 Thread francky06l
What you could possibly do (maybe it's not the best), is to loop on the single validation of the model by setting your different field value to it : In controller: $this->Mark->validate = array('mark_number' => your validation); // this is required if you have other validations in the Mark mo

Re: Levelling Order

2007-08-06 Thread Feris Thia
On 8/6/07, Geoff Ford <[EMAIL PROTECTED]> wrote: > > Look into findAllByThreaded() it does what you need without the extra > overhead of an association. It requires a parent_id field (rather than > parentid) and no other association or anything. Hi Geoff, I just look at the function and when I t

Re: Levelling Order

2007-08-06 Thread Feris Thia
On 8/6/07, housebolt <[EMAIL PROTECTED]> wrote: > > I believe you can do it this way: > > for level 1: > $this->Category->findAllByParentId(0, null, 'Category.id ASC'); // > Third argument for findallby > > in your model, in the 'Childnode' array, add 'order'=>'Childnode.name > ASC' (or DESC depe

Re: CakePHP+SMF (again?)

2007-08-06 Thread [EMAIL PROTECTED]
Hmm. Maybe I should just ignore Cake sessions? Do sessions also have a path defined, and would this path have to be set to the server root or the cake root in SMF for that session data to transcend to the Cake application? I cannot see why else Cake would create a new session when there was alrea

How to handle hasMany data entry

2007-08-06 Thread nagarjuna
I have the following setup: Class Observation hasMany Marks. The Marks Class only has one relevant field: mark_number I am working on the add form for my Observations, and the problem is that I do not know in advance how many Marks a given observation will have. I initialize the form with one ma

Re: default.thml not rendering add, edit, view, or index

2007-08-06 Thread Pablo Viojo
Read the manual, the View section of the manual[1] [1]http://manual.cakephp.org/chapter/views -- Pablo Viojo [EMAIL PROTECTED] http://pviojo.net On 8/6/07, Tulio Faria <[EMAIL PROTECTED]> wrote: > > Just open /cake/libs/view/templates/layouts/default.thtml and you will > see the cake default

Re: BeforeFilter in Model

2007-08-06 Thread Samuel DeVore
function afterFind($results) { foreach ($results as $key => $val) { // do your thing } } return $results; } On 8/6/07, Mike Digital Egg <[EMAIL PROTECTED]> wrote: > > Hi Tulio, > > Thanks for the tip, I think that might have be

Re: BeforeFilter in Model

2007-08-06 Thread Mike Digital Egg
Hi Tulio, Thanks for the tip, I think that might have been what I was thinking of :) I have tried it in the model though and it doesn't seem to work: function afterFind( $results ) { $results->list_price = $results->list_price - 1.99; return $results;

Re: default.thml not rendering add, edit, view, or index

2007-08-06 Thread Tulio Faria
Just open /cake/libs/view/templates/layouts/default.thtml and you will see the cake default layout... []'s On Aug 6, 12:35 pm, Daghe9193 <[EMAIL PROTECTED]> wrote: > I was able to figure out what was wrong with my default.thtml be > looking at an older project of mine. I left the $content_for_

Re: BeforeFilter in Model

2007-08-06 Thread Tulio Faria
Hi, you could use: afterFind($results) where $results is the result of the find, like findAll... []'s On Aug 6, 12:52 pm, Mike Digital Egg <[EMAIL PROTECTED]> wrote: > Hi, > > I would like to adjust a price coming out of the database at the model > level so that it is consistent throughout the

BeforeFilter in Model

2007-08-06 Thread Mike Digital Egg
Hi, I would like to adjust a price coming out of the database at the model level so that it is consistent throughout the site. I thought I had done something like this before: class Product extends AppModel { var $name = 'Product'; function beforeFilter() { $th

Re: default.thml not rendering add, edit, view, or index

2007-08-06 Thread Daghe9193
I was able to figure out what was wrong with my default.thtml be looking at an older project of mine. I left the $content_for_layout out of the file. check('Message.flash')) $session->flash(); echo $content_for_layout; ?> If someone can followup with a link to

Re: default.thml not rendering add, edit, view, or index

2007-08-06 Thread Pablo Viojo
Post your default.thtml...please -- Pablo Viojo [EMAIL PROTECTED] http://pviojo.net On 8/6/07, Daghe9193 <[EMAIL PROTECTED]> wrote: > > > Without a default.thml, cakePHP renders the view, index, add, edit > screens. When I add a default.thml file, the Query information > displays, but the

default.thml not rendering add, edit, view, or index

2007-08-06 Thread Daghe9193
Without a default.thml, cakePHP renders the view, index, add, edit screens. When I add a default.thml file, the Query information displays, but the view, index, add, and edit screens do not. My default page is a header with menus and a search box. It contains its own css, a form, and java

Re: How to find all categories where language_id is equal querystring?Please help

2007-08-06 Thread [EMAIL PROTECTED]
Thank you very much . On Aug 6, 3:54 pm, nagarjuna <[EMAIL PROTECTED]> wrote: > How about: > > $this->Category->findByLanguageId( $id ); > > Cheers --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group.

Re: Is it reasonably easy to do this sort of inline editing with CakePHP

2007-08-06 Thread Chris Hartjes
On 8/6/07, walterbyrd <[EMAIL PROTECTED]> wrote: > > On Aug 5, 9:09 pm, housebolt <[EMAIL PROTECTED]> wrote: > > Check out this tutorial: > > > > http://cakephp.org/screencasts/view/3 > > I will have to wait until I'm off my Linux box. > > Although certainly no "show shopper" it bugs me a bit that

Re: CakePHP+SMF (again?)

2007-08-06 Thread Chris Hartjes
On 8/6/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > How do I change the Cake session id to something of my choice? > Basically, I want to put in a check on every page load to see if the > forums session id has been created and if so, set the cake PHP session > id to that, so that both appl

View this page "Listed Websites on Custom Google Search Engine for CakePHP"

2007-08-06 Thread bingo
Click on http://groups.google.com/group/cake-php/web/listed-websites-on-custom-google-search-engine-for-cakephp - or copy & paste it into your browser's address bar if that doesn't work. --~--~-~--~~~---~--~~ You received this message because you are subscribed

Re: How to find all categories where language_id is equal querystring?Please help

2007-08-06 Thread nagarjuna
How about: $this->Category->findByLanguageId( $id ); Cheers --~--~-~--~~~---~--~~ 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

Re: Reset problem

2007-08-06 Thread sharath
Hai to all, Thanks to all for feed backs. Yeah, you are right Dr. Tarique Sani, I have an edit page. This edit form is prefilled with information, all values are displying from the database. Is that possible to reset to all values, because in this edit page more fields are present. Thanks junal

Re: CakePHP+SMF (again?)

2007-08-06 Thread [EMAIL PROTECTED]
Hi, I guess no one has any responses to my questions thus far. I have what I think is an easier question: How do I change the Cake session id to something of my choice? Basically, I want to put in a check on every page load to see if the forums session id has been created and if so, set the cake

How to find all categories where language_id is equal querystring?Please help

2007-08-06 Thread [EMAIL PROTECTED]
How to find all categories where language_id is equal querystring? For example i want all data from table categories where language_id is equal querystring (categories/view/language_id). Please Help me . I'm new in cake. SQL: CREATE TABLE `categories` ( `id` int(11) NOT NULL auto_increment,

Re: Problem "Cannot redeclare class myclass"

2007-08-06 Thread Grant Cox
"Cannot redeclare class" happens when you have two classes with the same name. This may be a conflict with one of the core CakePHP classes - what is the name of your class? In either way, it is not in the code you showed. And, it is only barely a CakePHP issue - if you are familiar with PHP you

Re: How to launch cakephp application

2007-08-06 Thread LS
You really should read the manual... But for a quick reply, name the controller items_controller.php and put it in app/controllers folder and the model as item.php and put it in app/models. - LS On Aug 6, 4:41 am, nirmal <[EMAIL PROTECTED]> wrote: > Hello Friends, > > I am new in this group. >

Sending an attachment with Swiftmail and CakePHP

2007-08-06 Thread Mithun
I have used The Swift Mail and the Swift Mailer Component to send my mails successfully I have used the version 2.1.17 of Swift Mailer and Cake's version 1.1.15.5144 U can get the component and is using methods from http://bakery.cakephp.org/articles/view/swiftmailer-component-tutorial#comment-12

Re: i18n and 1.1

2007-08-06 Thread Dr. Tarique Sani
On 8/6/07, Pento <[EMAIL PROTECTED]> wrote: > > 1.2 is in Alpha stage now. So it can't be used on production sites by > definition. > But in reality I am using it and know of several devs who are doing the same... T -- = Cheesecake-P

Re: i18n and 1.1

2007-08-06 Thread Pento
1.2 is in Alpha stage now. So it can't be used on production sites by definition. On Aug 6, 2:41 pm, Fran Simó <[EMAIL PROTECTED]> wrote: > But... is 1.2 ready to use in high traffic production sites? --~--~-~--~~~---~--~~ You received this message because you ar

Re: Is it reasonably easy to do this sort of inline editing with CakePHP

2007-08-06 Thread grandpa
Well. That tutorial doesn't really show anything to do with the inline editing you are asking about. Langdon is right, it's not automated but it really isn't that hard to do with cake, using some ajax helpers. I've done this kind of thing, and I'd say it was one of the simpler things to implement

Problem "Cannot redeclare class myclass"

2007-08-06 Thread furqan shaikh
when implement this code " function login() { if (empty($this->data)) { if ($this->Protector->access("login",3)) {

Re: Is it reasonably easy to do this sort of inline editing with CakePHP

2007-08-06 Thread kabturek
nice... or maybe no to nice... isn't backward compat. -> doesn't work when js is disabled ( if it's automatic they should've taken care of it) also i try to stay away from inline js. apart from that - this is JS stuff. doing something like this is a piece of cake ;) greets On Aug 6, 12:52 am, w

Re: i18n and 1.1

2007-08-06 Thread Fran Simó
But... is 1.2 ready to use in high traffic production sites? --~--~-~--~~~---~--~~ 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

How to launch cakephp application

2007-08-06 Thread nirmal
Hello Friends, I am new in this group. Please explain me that how can i launch cakephp application. code: Controller: Model: Thank you, -- Nirmal --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP"